semsol / arc2

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

RDF/XML Blank node not parsing properly. #22

Closed muninn closed 12 years ago

muninn commented 12 years ago

When loading rdf/xml like:

...

documents:date_published 1920/time:before /documents:date_published ...

with

$parser->parse(the_file.rdf);

generates

...

<ns0:date_published rdf:nodeID="arce720b1"/>

/rdf:Description

/rdf:Description The '1920' and gdate are lost lost. Interestingly, parsing of "rdf:parseType" is case sensitive and the parsers drops information unless 'parsetype' is in lower case: 20120215/documents:date_retrieved /documents:Image get munged to /rdf:Description but 20120215/documents:date_retrieved /documents:Image gives ns0:date_retrieved20120215/ns0:date_retrieved /rdf:Description I haven't tracked down what makes the date datatype disappear but that seems to be another issue.
semsol commented 12 years ago

rdf:parseType is a reserved attribute that can take the values "Resource", "Literal", or "Collection". Do you perhaps mean rdf:datatype?

muninn commented 12 years ago

Had Brain Fart, sorry about this.

bnowack commented 12 years ago

heh, no worries :)