semsol / arc2

ARC RDF Classes for PHP
Other
332 stars 89 forks source link

Fixes odd bug where a bnode gets a datatype due to it not being cleared from previous triple. #56

Closed cgutteridge closed 11 years ago

cgutteridge commented 11 years ago

Example Data which failed to parse currectly: (the bnodes for dsp:statementTemplate got a datatype)

@prefix skos: http://www.w3.org/2004/02/skos/core# . @prefix owl: http://www.w3.org/2002/07/owl# . @prefix dcterms: http://purl.org/dc/terms/ . @prefix oo: http://purl.org/openorg/ . @prefix foaf: http://xmlns.com/foaf/0.1/ . @prefix vcard: http://www.w3.org/2006/vcard/ns# . @prefix org: http://www.w3.org/ns/org# .

@prefix xsd: http://www.w3.org/2001/XMLSchema# . @prefix dsp: http://purl.org/dc/dsp/ . @prefix : http://purl.org/oo/opd-profile/ .

oo:OrganizationProfileDocument rdfs:label "Organization Profile Document" .

:OrganizationProfileDocument a dsp:DescriptionTemplate ; rdfs:label "Organization Profile Document Top-Level Template" ; dsp:standalone "true"^^xsd:boolean ; dsp:resourceClass oo:OrganizationProfileDocument ; dsp:minOccur "1"^^xsd:nonNegativeInteger ; dsp:maxOccur "1"^^xsd:nonNegativeIntegerY ; dsp:statementTemplate [ a dsp:nonLiteralStatementTemplate ; dsp:minOccur "1"^^xsd:nonNegativeInteger ; dsp:maxOccur "1"^^xsd:nonNegativeIntegerX ; dsp:property foaf:primaryTopic ; dsp:nonLiteralConstraint [ a dsp:NonLiteralConstraint ; dsp:descriptionTemplate :Organization . ] . ] ; dsp:statementTemplate [ a dsp:nonLiteralStatementTemplate ; dsp:minOccur "0"^^xsd:nonNegativeInteger ; dsp:maxOccur "1"^^xsd:nonNegativeInteger ; dsp:property dcterms:license . ] .

:Organization a dsp:DescriptionTemplate ; dsp:standalone "false"^^xsd:boolean ; dsp:resourceClass foaf:Organization, org:Organization .