[semantics-public] SEMANTICS QUERY SOLUTION How to run arq
yottzumm at gmail.com
yottzumm at gmail.com
Thu Dec 5 00:38:24 PST 2019
I would be happy to create such a script, say
"gitbashquerytests.win10.sh"
Would that make it specific enough?
I don't particularly like pawing through my emails for the invocation I've forgotten.
Thanks,
John
-----Original Message-----
From: Brutzman, Donald (Don) (CIV) <brutzman at nps.edu>
Sent: Thursday, November 14, 2019 1:24 PM
To: yottzumm at gmail.com
Cc: Jakub Flotyński <flotynski at kti.ue.poznan.pl>; X3D Semantic Web Working Group <semantics-public at web3d.org>
Subject: Re: SEMANTICS QUERY SOLUTION How to run arq
Thanks for question and progress support. Additional details:
Because users might invoke arq via different OS, there is a property for it. That simplifies modification of the ant build.xml file.
<property name="arq" location="${env.JENA_HOME}/bat/arq.bat" description="executable invocation, bat/arq.bat or bin/arq"/>
As an assist, you can find a full record of output on my machine in the following log files. This is important enough to include in the sourceforge archive so that we can track progress or failures.
https://www.web3d.org/x3d/content/semantics/build.all.log.txt
https://www.web3d.org/x3d/content/semantics/build.SPARQL.query.tests.log.txt
p.s. Ant is up to version 1.10.7 now, tested satisfactorily here.
https://ant.apache.org
On 11/14/2019 11:09 AM, yottzumm at gmail.com wrote:
> After discovering the real arq was a bat file, I proceeded with the following:
>
> $ cd /c/x3d-code/www.web3d.org/semantics/
>
> $ export JENA_HOME=~/Downloads/apache-jena-3.13.0/apache-jena-3.13.0/
>
> $ export PATH=${PATH}:${JENA_HOME}/bat
>
> $ ~/apache-ant-1.10.5/bin/ant SPARQL.query.tests
>
> SUCCESS!
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
> *From: *yottzumm at gmail.com <mailto:yottzumm at gmail.com>
> *Sent: *Thursday, November 14, 2019 12:50 PM
> *To: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>; Jakub Flotyński <mailto:flotynski at kti.ue.poznan.pl>
> *Cc: *X3D Semantic Web Working Group <mailto:semantics-public at web3d.org>; Leslie SIKOS <mailto:l.sikos at ecu.edu.au>
> *Subject: *RE: [semantics-public] IC3D 2019 paper - queries adapted
>
> Found queries here:
>
> /c/x3d-code/www.web3d.org/semantics/queries
>
> $ ls *rq
>
> X3dHelloWorldQuery_01.rq X3dOntologyQuery_02.rq
>
> X3dHelloWorldQuery_02.rq X3dOntologyQuery_03.rq
>
> X3dHelloWorldQuery_03.rq X3dSanCarlosCathedralAltarQuery_01.rq
>
> X3dHelloWorldQuery_04.rq X3dSanCarlosCathedralAltarQuery_02.rq
>
> X3dHelloWorldQuery_05.rq X3dSanCarlosCathedralAltarQuery_03.rq
>
> X3dOntologyQuery_01.rq
>
> But ….
>
> $ arq --data=ontologies/X3dOntology4.0.ttl --query=queries/X3dSanCarlosCathedralAltarQuery_03.rq --graph=examples/Altar.ttl
>
> Error: Could not find or load main class arq.arq
>
> What do you recommend for a classpath? My jena libs are in ~/Downloads/apache-jena-3.13.0/apache-jena-3.13.0/lib
>
> I figured this out once before, but must have not kept notes?
>
> Will search my email.
>
> Thanks,
>
> John.
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
>
> *From: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> *Sent: *Thursday, November 14, 2019 12:06 PM
> *To: *Jakub Flotyński <mailto:flotynski at kti.ue.poznan.pl>
> *Cc: *X3D Semantic Web Working Group <mailto:semantics-public at web3d.org>; Leslie SIKOS <mailto:l.sikos at ecu.edu.au>
> *Subject: *[semantics-public] IC3D 2019 paper - queries adapted
>
> [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
>
> --
>
> semantics-public mailing list
>
> semantics-public at web3d.org
>
> http://web3d.org/mailman/listinfo/semantics-public_web3d.org
>
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