[semantics-public] IC3D 2019 paper - queries adapted

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Thu Nov 14 09:10:59 PST 2019


[cc: semantics-public]

Thanks for steady efforts Jakub.  I was able to copy/adapt the queries in the paper and add them to our archive.

	X3D Ontology for Semantic Web: Queries
	https://www.web3d.org/x3d/content/semantics/semantics.html#Queries

https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_01.rq
https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_01.rq.txt

----------------
| numberShapes |
================
| 14           |
----------------

https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_02.rq
https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_02.rq.txt

-------------------------------------------------------------------------------------------------------------------------------------------
| appearanceNode   | textureUrl                                                                                                           |
===========================================================================================================================================
| "WoodAppearance" | "\"images/Wood.jpg\" \"https://x3dgraphics.com/examples/X3dForAdvancedModeling/SanCarlosCathedral/images/Wood.jpg\"" |
-------------------------------------------------------------------------------------------------------------------------------------------

https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_03.rq
https://www.web3d.org/x3d/content/semantics/queries/X3dSanCarlosCathedralAltarQuery_03.rq.txt

[...]
> # Note special handling of RDF lists:
> 
> # Bob DuCharme's weblog, 21 April 2014, "RDF lists and SPARQL"
> # http://www.snee.com/bobdc.blog/2014/04/rdf-lists-and-sparql.html
> 
> SELECT ?backgroundNode ?skyColorListValues
> 
> WHERE
> {
>     ?background rdf:type                          x3do:Background ;
>                 x3do:skyColor/rdf:rest*/rdf:first ?skyColorListValues .
> 
>     BIND (strafter(xsd:string(?background),"#") AS ?backgroundNode)
> 
>     # TODO re-aggregate skyColor list values into list of tuples
> }

###############################################
-----------------------------------------
| backgroundNode   | skyColorListValues |
=========================================
| "Background_2_2" | 0.7216             |
| "Background_2_2" | 0.8                |
| "Background_2_2" | 0.9922             |
-----------------------------------------

Note that query #3 is quite a bit different from yours, in order to retrive the (now) numeric values of skyColor rdf:list elements.

There is still more work to do on list queries:
- aggregating individual values back into numeric arrays (or displaying a full list),
- confirming/coping if Bob Ducharme's claim is correct that list outputs are not guaranteed to be ordered.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman


More information about the semantics-public mailing list