NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 27 forks source link

NamedNode URI must be absolute + parsing errors #704

Open amoeba opened 6 years ago

amoeba commented 6 years ago

I see some errors in the Chrome console when I visit https://search-demo.dataone.org/view/doi:10.18739/A2T43J24K (which is running dev-2.1 from ~ last week)

Warning: NamedNode URI must be absolute. Relative URIs will fail in future versions

Error: Error trying to parse <undefinedresource_map_doi%3A10.18739%2FA2T43J24K> as application/rdf+xml:

Full trace ``` Error: RDF/XML syntax error: No namespace for html in undefinedresource_map_doi%3A10.18739%2FA2T43J24K: Error: RDF/XML syntax error: No namespace for html in undefinedresource_map_doi%3A10.18739%2FA2T43J24K at i. (rdflib.min.js?v=2.0.0:2620) at i.parseDOM (rdflib.min.js?v=2.0.0:2623) at i.parse (rdflib.min.js?v=2.0.0:2619) at Object.n [as parse] (rdflib.min.js?v=2.0.0:2437) at n.parse (DataPackage.js?v=2.0.0:367) at n.set (backbone.js:830) at Object.t.success (backbone.js:1050) at c (jquery-1.9.1.min.js?v=2.0.0:3) at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js?v=2.0.0:3) at k (jquery-1.9.1.min.js?v=2.0.0:5) at i. (rdflib.min.js?v=2.0.0:2620) at i.parseDOM (rdflib.min.js?v=2.0.0:2623) at i.parse (rdflib.min.js?v=2.0.0:2619) at Object.n [as parse] (rdflib.min.js?v=2.0.0:2437) at n.parse (DataPackage.js?v=2.0.0:367) at n.set (backbone.js:830) at Object.t.success (backbone.js:1050) at c (jquery-1.9.1.min.js?v=2.0.0:3) at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js?v=2.0.0:3) at k (jquery-1.9.1.min.js?v=2.0.0:5) at rdflib.min.js?v=2.0.0:2443 at Object.n [as parse] (rdflib.min.js?v=2.0.0:2444) at n.parse (DataPackage.js?v=2.0.0:367) at n.set (backbone.js:830) at Object.t.success (backbone.js:1050) at c (jquery-1.9.1.min.js?v=2.0.0:3) at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js?v=2.0.0:3) at k (jquery-1.9.1.min.js?v=2.0.0:5) at XMLHttpRequest.r (jquery-1.9.1.min.js?v=2.0.0:5) ```

@gothub notes that the resource map is valid according to https://www.w3.org/RDF/Validator/

Full resource map RDF/XML here:

Full RM ```rdf/xml doi:10.18739/A2T43J24K DataONE R Client resource_map_doi:10.18739/A2T43J24K urn:uuid:f004ff15-82f5-4a25-be47-15a9b3b6fd52 urn:uuid:521fd869-e07f-4464-bebc-5baca50ee30a 2018-07-19T18:13:32Z DataONE Aggregation ```
amoeba commented 6 years ago

Here's the Turtle for that RM:

```turtle @prefix cito: . @prefix dc: . @prefix dcterms: . @prefix foaf: . @prefix ore: . @prefix prov: . @prefix provone: . @prefix rdf: . @prefix rdfs: . @prefix xml: . @prefix xsd: . a ore:ResourceMap ; dc:creator [ a dcterms:Agent ; foaf:name "DataONE R Client"^^xsd:string ] ; dcterms:identifier "resource_map_doi:10.18739/A2T43J24K"^^xsd:string ; dcterms:modified "2018-07-19T18:13:32+00:00"^^xsd:dateTime ; ore:describes . dcterms:identifier "urn:uuid:521fd869-e07f-4464-bebc-5baca50ee30a"^^xsd:string ; cito:isDocumentedBy ; ore:isAggregatedBy . dcterms:identifier "urn:uuid:f004ff15-82f5-4a25-be47-15a9b3b6fd52"^^xsd:string ; cito:isDocumentedBy ; ore:isAggregatedBy . a ore:Aggregation ; dc:title "DataONE Aggregation" ; ore:aggregates , , . dcterms:identifier "doi:10.18739/A2T43J24K"^^xsd:string ; cito:documents , , ; cito:isDocumentedBy ; ore:isAggregatedBy . ```