[Semantics-public] [Semantics] Successful install of Apache Jena & ARQ

John Carlson yottzumm at gmail.com
Sat Oct 12 20:43:07 PDT 2019


Maybe we can create SPARQL queries that can identify problems?
Kind of like a schematron for X3D Turtle Models

Everyone, if you’re not on semantics-public at web3d.org, please sign up!

http://web3d.org/mailman/listinfo/semantics-public_web3d.org

John
Sent from Mail for Windows 10

From: Brutzman, Donald (Don) (CIV)
Sent: Friday, October 11, 2019 1:09 PM
To: John Carlson
Cc: semantics at web3d.org
Subject: Re: [Semantics] Successful install of Apache Jena & ARQ

On 10/9/2019 12:59 PM, John Carlson wrote:

> Perhaps move “Basic/development” into a separate test case?
> 
> Thinking aloud.

I found another tweak this morning similar to this... hopeful that specific error is now fixed for you. You can maintain current version via subversion.

It also revealed an issue in some of the ConformanceNIST STEP CAD examples, have removed references to "localhost://" there and plan to add further localhost warnings elsewhere.

Meanwhile am still thinking that we are best served by keeping troublesome development scenes visible and annoying as way to keep incrementally improving our tests and handling.

Thanks John.

On 10/9/2019 1:06 PM, John Carlson wrote:
> This appears related:
> 
> BEGIN C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/UnquotedTokensNavigationInfoAndFontStyle.x3d > ttl, Type error evaluating ((descendant::meta[xs:string(@name) eq "identifier"])/@content) in xsl:when/@test on line 36 column 87 of X3dToTurtle.xslt:
> 
>    XPTY0004: A sequence of more than one item is not allowed as the first argument of
> 
>    fn:string-length() ("http://www.web3d.org/x3d/content/ex...",
> 
>    "http://www.web3d.org/x3d/content/ex...")
> 
> A sequence of more than one item is not allowed as the first argument of fn:string-length() ("http://www.web3d.org/x3d/content/ex...", "http://www.web3d.org/x3d/content/ex...")
> 
> FATAL C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/UnquotedTokensNavigationInfoAndFontStyle.x3d > C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/UnquotedTokensNavigationInfoAndFontStyle.ttl
> 
> net.coderextreme.RunSaxon$ExitException: There is no escape! 2
> 
>          at net.coderextreme.RunSaxon$NoExitSecurityManager.checkExit(RunSaxon.java:58)
> 
>          at java.lang.Runtime.exit(Unknown Source)
> 
>          at java.lang.System.exit(Unknown Source)
> 
>          at net.sf.saxon.Transform.quit(Transform.java:922)
> 
>          at net.sf.saxon.Transform.doTransform(Transform.java:822)
> 
>          at net.sf.saxon.Transform.main(Transform.java:80)
> 
>          at net.coderextreme.RunSaxon.main(RunSaxon.java:152)
> 
> John
> 
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
> *From: *John Carlson <mailto:yottzumm at gmail.com>
> *Sent: *Wednesday, October 9, 2019 2:59 PM
> *To: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> *Cc: *semantics at web3d.org <mailto:semantics at web3d.org>
> *Subject: *RE: [Semantics] Successful install of Apache Jena & ARQ
> 
> Perhaps move “Basic/development” into a separate test case?
> 
> Thinking aloud.
> 
> 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: *Wednesday, October 9, 2019 12:57 PM
> *To: *John Carlson <mailto:yottzumm at gmail.com>
> *Cc: *semantics at web3d.org <mailto:semantics at web3d.org>
> *Subject: *Re: [Semantics] Successful install of Apache Jena & ARQ
> 
> Yes... I converted a few thousand .x3d models to .ttl representations as a unit test last night and got this error too.
> 
> Will do some more refinements tonight.  Thanks for trouble/success reports.
> 
> On 10/9/2019 10:41 AM, John Carlson wrote:
> 
>  > With my local data, I got the following data when running the stylesheet.
> 
>  >
> 
>  > X3D attached. I previously (Sept 18^th ) produced a ttl file from attached example.
> 
>  >
> 
>  > Please let me know your success on translating the file. I will look into validating the X3D file.
> 
>  >
> 
>  > John
> 
>  >
> 
>  > BEGIN ../data/CameraExamples.x3d > ttl, Type error evaluating ((descendant::meta[xs:string(@name) eq "identifier"])/@content) in xsl:when/@test on line 36 column 87 of X3dToTurtle.xslt:
> 
>  >
> 
>  >    XPTY0004: A sequence of more than one item is not allowed as the first argument of
> 
>  >
> 
>  >    fn:string-length() ("http://www.web3d.org/x3d/content/ex...",
> 
>  >
> 
>  >    "http://sourceforge.net/p/x3d/code/H...")
> 
>  >
> 
>  > A sequence of more than one item is not allowed as the first argument of fn:string-length() ("http://www.web3d.org/x3d/content/ex...", "http://sourceforge.net/p/x3d/code/H...")
> 
>  >
> 
>  > FATAL ../data/CameraExamples.x3d > ../data/CameraExamples.ttl
> 
>  >
> 
>  > net.coderextreme.RunSaxon$ExitException: There is no escape! 2
> 
>  >
> 
>  >          at net.coderextreme.RunSaxon$NoExitSecurityManager.checkExit(RunSaxon.java:58)
> 
>  >
> 
>  >          at java.lang.Runtime.exit(Unknown Source)
> 
>  >
> 
>  >          at java.lang.System.exit(Unknown Source)
> 
>  >
> 
>  >          at net.sf.saxon.Transform.quit(Transform.java:922)
> 
>  >
> 
>  >          at net.sf.saxon.Transform.doTransform(Transform.java:822)
> 
>  >
> 
>  >          at net.sf.saxon.Transform.main(Transform.java:80)
> 
>  >
> 
>  >          at net.coderextreme.RunSaxon.main(RunSaxon.java:152)
> 
>  >
> 
>  > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
>  >
> 
>  > *From: *John Carlson <mailto:yottzumm at gmail.com>
> 
>  > *Sent: *Wednesday, October 9, 2019 12:28 PM
> 
>  > *To: *Brutzman, Donald (Don) (CIV) <mailto:brutzman at nps.edu>
> 
>  > *Cc: *semantics at web3d.org <mailto:semantics at web3d.org>
> 
>  > *Subject: *RE: [Semantics] Successful install of Apache Jena & ARQ
> 
>  >
> 
>  > I have not confirmed the stylesheet changes, but I did confirm the query returned two rows on the changed HelloWorld.ttl
> 
>  >
> 
>  > I will work integrating X3dToTurtle.xslt into X3DJSONLD some today.
> 
>  >
> 
>  > 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: *Wednesday, October 9, 2019 12:21 PM
> 
>  > *To: *John Carlson <mailto:yottzumm at gmail.com>
> 
>  > *Cc: *semantics at web3d.org <mailto:semantics at web3d.org>
> 
>  > *Subject: *Re: [Semantics] Successful install of Apache Jena & ARQ
> 
>  >
> 
>  > Great to hear of your success John.
> 
>  >
> 
>  > On 10/7/2019 6:45 PM, John Carlson wrote:
> 
>  >
> 
>  >  > If you’re wondering why I’m successful, and others aren’t, examine the lines in the X3dToTurtle.xslt file:
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > coderextreme at DESKTOP-DOPK2VD MINGW64 /c/x3d-code/www.web3d.org/x3d/stylesheets
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > $ grep -n anonymous *.*
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > X3dToTurtle.xslt:50:                                            <xsl:text>-anonymous</xsl:text>
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > X3dToTurtle.xslt:65:                            <xsl:text>-anonymous</xsl:text>
> 
>  >
> 
>  > Latest build and examples have fixed this issue, see related recent emails.  All names are now unique.
> 
>  >
> 
>  >  > If you need help translating X3D XML models to Turtle w/o XSLT, I should be able to help, but will need some time to convert the PythonSerializer.js to TurtleSerializer.js
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > It may be good to have a second implementation.
> 
>  >
> 
>  > Sure, sounds great.  Might want to wait a week while we "dial in" and confirm and document syntax details.
> 
>  >
> 
>  >  > There is still an issue of nodes identifying their parent or children nodes.  I think we may require this for full round tripping.
> 
>  >
> 
>  > hmmm yes further investigation/experimentation warranted
> 
>  >
> 
>  >  > Who is roundtripping the Turtle back to XML?  That will reveal the problems, I think.
> 
>  >
> 
>  > interesting
> 
>  >
> 
>  >  > Is there a standard Turtle parser as a JavaScript API?
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > John
> 
>  >
> 
>  > "the answer to your question is the response to the query" - in this case, searching.   8)
> 
>  >
> 
>  >  > Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > *From: *John Carlson <mailto:yottzumm at gmail.com>
> 
>  >
> 
>  >  > *Sent: *Monday, October 7, 2019 7:54 PM
> 
>  >
> 
>  >  > *To: *semantics at web3d.org <mailto:semantics at web3d.org>
> 
>  >
> 
>  >  > *Subject: *RE: Successful install of Apache Jena & ARQ
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > Successfully query of objects with same type, changed name from anonymous to a number.
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > $ ./arq.bat --data /c/x3d-code/www.web3d.org/semantics/examples/HelloWorld2.ttl  --query /c/x3d-code/www.web3d.org/semantics/queries/X3dHelloWorldQuery_01.rq
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > -------------
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > | shapeNode |
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > =============
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > | "Shape-9" |
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > | "Shape-5" |
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > (no change in query).
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > Attached HelloWorld2.ttl
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > Diff follows.
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > $ diff /c/x3d-code/www.web3d.org/semantics/examples/HelloWorld*.ttl
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 10,11c10,11
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Scene-anonymous rdf:type owl:NamedIndividual , x3d:Scene .
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :WorldInfo-anonymous rdf:type owl:NamedIndividual , x3d:WorldInfo ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Scene-1 rdf:type owl:NamedIndividual , x3d:Scene .
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :WorldInfo-2 rdf:type owl:NamedIndividual , x3d:WorldInfo ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 14c14
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Group-anonymous rdf:type owl:NamedIndividual , x3d:Group ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Group-3 rdf:type owl:NamedIndividual , x3d:Group ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 27c27
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Transform-anonymous rdf:type owl:NamedIndividual , x3d:Transform ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Transform-4 rdf:type owl:NamedIndividual , x3d:Transform ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 36c36
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Shape-anonymous rdf:type owl:NamedIndividual , x3d:Shape ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Shape-5 rdf:type owl:NamedIndividual , x3d:Shape ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 40c40
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Sphere-anonymous rdf:type owl:NamedIndividual , x3d:Sphere ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Sphere-6 rdf:type owl:NamedIndividual , x3d:Sphere ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 44c44
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Appearance-anonymous rdf:type owl:NamedIndividual , x3d:Appearance ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Appearance-7 rdf:type owl:NamedIndividual , x3d:Appearance ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 59c59
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Transform-anonymous rdf:type owl:NamedIndividual , x3d:Transform ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Transform-8 rdf:type owl:NamedIndividual , x3d:Transform ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 68c68
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Shape-anonymous rdf:type owl:NamedIndividual , x3d:Shape ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Shape-9 rdf:type owl:NamedIndividual , x3d:Shape ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 77,78c77,78
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :TextMessage x3d:hasFontStyle :FontStyle-anonymous .
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :FontStyle-anonymous rdf:type owl:NamedIndividual , x3d:FontStyle ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :TextMessage x3d:hasFontStyle :FontStyle-10 .
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :FontStyle-10 rdf:type owl:NamedIndividual , x3d:FontStyle ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 88c88
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Appearance-anonymous rdf:type owl:NamedIndividual , x3d:Appearance ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Appearance-11 rdf:type owl:NamedIndividual , x3d:Appearance ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > 90c90
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > < :Material-anonymous rdf:type owl:NamedIndividual , x3d:Material ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > ---
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  >  > :Material-12 rdf:type owl:NamedIndividual , x3d:Material ;
> 
>  >
> 
>  >  >
> 
>  >
> 
>  >  > John
> 
>  >
> 
>  > 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
> 
>  >
> 
> 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
> 


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/semantics-public_web3d.org/attachments/20191012/2b6f530f/attachment-0001.html>


More information about the semantics-public mailing list