Project

General

Profile

Task #4108

Story #3944: DataONE Python products

ResourceMapGenerator generates invalid resource maps (?)

Added by Roger Dahl about 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
Start date:
2013-10-20
Due date:
% Done:

100%

Estimated time:
0.00 h
Story Points:
Sprint:

Description

data_package.ResourceMapGenerator() generates resource maps that do not parse correctly with data_package.ResourceMapParser().

The bug may be caused by the change to a new version of rdflib because a unit test that uses the two classes to generate a resource map and then parse it to verify that the information is preserved, used to work.

The bug also affects Dave's oaiore.py example code that generates a resource map.

I don't know if the generated resource map is valid. So I don't know if the problem is in the generator or the parser. By comparing the generated resource map with resource maps from other sources that the parser is able to handle, I've found a simple modification that causes the document to parse ok.

If I generate a resource map with "./oaiore.py abc def ghi jkl", one of the lines is:

<ore:describes rdf:resource="aggregation_id"/>

If I change it to:

<ore:describes rdf:resource="aggregation_id_something"/>

The document parses. Basically, the string in "describes" must not match the other use of
the string, which is in the line:

(The group of strings that describe the aggregates).

The full resource map generated by the oaiore.py example code (is it valid?):

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:cito="http://purl.org/spar/cito/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:ore="http://www.openarchives.org/ore/terms/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs1="http://www.w3.org/2001/01/rdf-schema#"

dcterms:modified2013-10-20T19:10:17Z/dcterms:modified
dcterms:created2013-10-20T19:10:17Z/dcterms:created


dc:formatapplication/rdf+xml/dc:format

dcterms:identifierabc/dcterms:identifier
/rdf:Description

foaf:nameForesite Toolkit (Python)/foaf:name
foaf:mboxforesite@googlegroups.com/foaf:mbox
/rdf:Description





/rdf:Description

dcterms:identifierdef/dcterms:identifier


/rdf:Description

rdfs1:isDefinedByhttp://www.openarchives.org/ore/terms//rdfs1:isDefinedBy
rdfs1:labelResourceMap/rdfs1:label
/rdf:Description

rdfs1:isDefinedByhttp://www.openarchives.org/ore/terms//rdfs1:isDefinedBy
rdfs1:labelAggregation/rdfs1:label
/rdf:Description


dcterms:identifierjkl/dcterms:identifier
/rdf:Description


dcterms:identifierghi/dcterms:identifier
/rdf:Description
/rdf:RDF


Related issues

Related to Member Nodes - Task #6985: Create resource map documents for each package Closed 2015-04-01

History

#1 Updated by Roger Dahl about 11 years ago

  • Status changed from New to Closed
  • translation missing: en.field_remaining_hours set to 0.0

#2 Updated by Rob Nahf over 9 years ago

  • Related to Task #6985: Create resource map documents for each package added

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)