Closed dr0i closed 9 years ago
Maybe this contradicts lobid/lodmill#463 ? What do you think @fsteeg ?
Deployed to staging.
Standard request (no scroll
), wraps into <docs>
:
curl -L --header "Accept: application/rdf+xml" "http://test.lobid.org/resource?q=ehrenfeld" > rdf.xml
xmllint rdf.xml
rapper -i rdfxml rdf.xml
scroll
request, additionally wrapped into <root>
:
curl -L --header "Accept: application/rdf+xml" "http://test.lobid.org/resource?q=ehrenfeld&scroll=20100701" > rdf.xml
xmllint rdf.xml
rapper -i rdfxml rdf.xml
Note that with scroll
, subsets of the documents are wrapped into <docs>
.
Deployed to production. Let's wait what Werner says to this solution.
We got an OK, thus closing.
@dr0i asked me to put my observations to here. In rdf4j lib I get an error when consuming rdf+xml data from lobid (e.g. http://lobid.org/resource/HT017612594/about) Cause of Error: org.openrdf.rio.RDFParseException: rdf:RDF not allowed as property element [line 15, column 76]
Example in curl: curl -H"accept: application/rdf+xml" http://lobid.org/resource/HT017612594/about
Example in rapper: rapper -i rdfxml http://lobid.org/resource/HT017612594/about
Rapper also gives a warning but proceeds: rapper: Parsing URI http://lobid.org/resource/HT017612594/about with parser rdfxml rapper: Serializing with serializer ntriples rapper: Warning - URI http://lobid.org/resource/HT017612594/about:1 - Using node element 'docs' without a namespace is forbidden.
Reported by Werner Greßhoff:
Getting multiple records every rdf xml resource should be wrapped in a tag for easier parsing.