- From: Paul Groth <p.t.groth@vu.nl>
- Date: Thu, 25 Oct 2012 16:54:24 +0200
- To: Stian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
- Cc: "public-prov-wg@w3.org" <public-prov-wg@w3.org>
- Message-ID: <CAJCyKRoYPNLJzkNSrkATODE0FKWYEd5OdmVfX2+c2n-WxEsR_A@mail.gmail.com>
I think we changed the PROV document not use trig, so I guess the trig examples can go.... Paul On Thu, Oct 25, 2012 at 4:45 PM, Stian Soiland-Reyes < soiland-reyes@cs.manchester.ac.uk> wrote: > I checked again the Turtle examples for PROV-O, and fixed a few minor bugs. > > There are still two files which are not Turtle format, but TriG. > > stain@ralph-ubuntu > :~/src/prov/examples/eg-24-prov-o-html-examples/rdf/create$ > ./check-examples.bash > /dev/null > > Failed to parse > > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_asInBundle.ttl > > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_asInBundle.ttl > swap.notation3.BadSyntax: at line 18 of > > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_asInBundle.ttl>: > Bad syntax (expected '.' or '}' or ']' at end of statement) at ^ in: > "... prov:wasAssociatedWith :bob; > . > } > > tool:analysis_01 ^{ > tool:bob-2011-11-17 > a prov:Agent; > prov:ment..." > > > Failed to parse > > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_mentionOf.ttl > > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_mentionOf.ttl > //.. > swap.notation3.BadSyntax: at line 18 of > > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_mentionOf.ttl>: > Bad syntax (expected '.' or '}' or ']' at end of statement) at ^ in: > "... prov:wasAssociatedWith :bob; > . > } > > tool:analysis_01 ^{ > tool:bob-2011-11-17 > a prov:Agent; > prov:ment..." > > stain@ralph-ubuntu > :~/src/prov/examples/eg-24-prov-o-html-examples/rdf/create$ > > I guess these are in TriG format because they talk about bundles.. > should we just leave them like that? > > > I guess it should be noted as a different syntax on their sections of > PROV-O: > * > https://dvcs.w3.org/hg/prov/raw-file/default/ontology/Overview.html#asInBundle > * > https://dvcs.w3.org/hg/prov/raw-file/default/ontology/Overview.html#mentionOf > > .. perhaps just as a comment? > > # Note: This example uses the proposed syntax TriG to represent both > bundles > # as named graphs. > # This prov property does not require the use of named graphs to > represent bundles. > # See http://www.w3.org/2010/01/Turtle/Trig for details about the syntax > > > > Importing with 4store revealed one further error as it is stricter > with Turtle parsing: > > stain@ralph-ubuntu > :~/src/prov/examples/eg-24-prov-o-html-examples/rdf/create$ > 4s-import -v test rdf/* | grep -v Pass.1 > 4store[6515]: 4s-client.c:129 kb=test getaddrinfo failed for > “fe80::222:fbff:fe79:d61c%wlan0” with error: Address family for > hostname not supported > 4store[6515]: 4s-client.c:129 kb=test getaddrinfo failed for > “fe80::21d:baff:fe68:5f0b%eth0” with error: Address family for > hostname not supported > removing old data > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_ActivityInfluence.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Activity.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_AgentInfluence.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Agent.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Association.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Attribution.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl> > raptor error - The namespace prefix in ":Bob" was not declared. > URI > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl:11 > raptor fatal error - turtle_qname_to_uri failed > URI > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl:11 > raptor error - syntax error > 4store[6515]: import.c:397 failed to parse file > > “file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Bundle.ttl” > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Collection.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Communication.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Delegation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Derivation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EmptyCollection.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_End.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_EntityInfluence.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Entity.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Generation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Influence.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_InstantaneousEvent.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Invalidation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Location.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Organization.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Person.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Plan.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_PrimarySource.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Quotation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Revision.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Role.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_SoftwareAgent.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Start.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/class_Usage.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_actedOnBehalfOf.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_activity.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_agent.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_alternateOf.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_asInBundle.ttl> > URI > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_asInBundle.ttl:9 > raptor error - { ... } is not allowed in Turtle > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_atLocation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_atTime.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_endedAtTime.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_entity.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_generatedAtTime.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_generated.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadActivity.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadGeneration.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadMember.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadPlan.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadPrimarySource.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadQuoted.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadQuoter.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadRole.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hadUsage.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_hasAnchor.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_influenced.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_influencer.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_invalidatedAtTime.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_invalidated.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_mentionOf.ttl> > URI > file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_mentionOf.ttl:9 > raptor error - { ... } is not allowed in Turtle > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedAssociation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedAttribution.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedCommunication.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDelegation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedDerivation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedEnd.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedGeneration.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedInfluence.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedInvalidation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedPrimarySource.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedQuotation.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedRevision.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedStart.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_qualifiedUsage.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_removed.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_specializationOf.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_startedAtTime.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_used.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAssociatedWith.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasAttributedTo.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasDerivedFrom.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasEndedBy.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasGeneratedBy.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInfluencedBy.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInformedBy.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasInvalidatedBy.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasQuotedFrom.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasRevisionOf.ttl> > Reading > <file:///home/stain/src/prov/examples/eg-24-prov-o-html-examples/rdf/create/rdf/property_wasStartedBy.ttl> > Pass 2, processed 846 triples, 30240 triples/s > Updating index > Index update took 0.047553 seconds > Imported 846 triples, average 10276 triples/s > stain@ralph-ubuntu > :~/src/prov/examples/eg-24-prov-o-html-examples/rdf/create$ > 4s-import -v test rdf/* | grep -v Pass.1 > > I fixed class_Bundle.ttl as well. The reason it failed is because in > Turtle (unlike N3) the @prefix : must be explicitly defined. > > > With this I close this action. > > -- > Stian Soiland-Reyes, myGrid team > School of Computer Science > The University of Manchester > > -- -- Dr. Paul Groth (p.t.groth@vu.nl) http://www.few.vu.nl/~pgroth/ Assistant Professor - Knowledge Representation & Reasoning Group | Artificial Intelligence Section | Department of Computer Science - The Network Institute VU University Amsterdam
Received on Thursday, 25 October 2012 14:54:54 UTC