Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of RDF files depends on XML structure #551

Open
jamesamcl opened this issue Jun 19, 2018 · 1 comment
Open

Parsing of RDF files depends on XML structure #551

jamesamcl opened this issue Jun 19, 2018 · 1 comment
Labels
Milestone

Comments

@jamesamcl
Copy link
Member

jamesamcl commented Jun 19, 2018

While testing some things with GenericTopLevels I found that this file validates:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:cheese="http://wiki.synbiohub.org/Terms/cheese#"
   xmlns:dcterms="http://purl.org/dc/terms/"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:sbol="http://sbols.org/v2#">
  <cheese:Cheese rdf:about="http://cheese/camembert/1">
    <dcterms:description>Camembert is a moist, soft, creamy, surface-ripened cow's milk cheese. It was first made in the late 18th century at Camembert, Normandy, in northern France.</dcterms:description>
    <dcterms:title>Camembert</dcterms:title>
    <sbol:displayId>camembert</sbol:displayId>
    <sbol:persistentIdentity rdf:resource="http://cheese/camembert"/>
    <sbol:version>1</sbol:version>
  </cheese:Cheese>
</rdf:RDF>

While this file throws an error:

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:cheese="http://wiki.synbiohub.org/Terms/cheese#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sbol="http://sbols.org/v2#">
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <rdf:type rdf:resource="http://wiki.synbiohub.org/Terms/cheese#Cheese"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <sbol:persistentIdentity rdf:resource="http://cheese/camembert"/>
  </rdf:Description>
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <sbol:displayId>camembert</sbol:displayId>
  </rdf:Description>
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <sbol:version>1</sbol:version>
  </rdf:Description>
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <dcterms:title>Camembert</dcterms:title>
  </rdf:Description>
  <rdf:Description rdf:about="http://cheese/camembert/1">
    <dcterms:description>Camembert is a moist, soft, creamy, surface-ripened cow's milk cheese. It was first made in the late 18th century at Camembert, Normandy, in northern France.</dcterms:description>
  </rdf:Description>
</rdf:RDF>

The error is:

[/tmp/UnGkrJiMDSKL2wpsu-NWZkfY.xml] sbol-12302: The rdfType property of a GenericTopLevel object is REQUIRED and MUST contain a QName.
Reference: SBOL Version 2.2.0 Section 7.14.2 on page 55
: http://cheese/camembert/1

sbol-12302: The rdfType property of a GenericTopLevel object is REQUIRED and MUST contain a QName.
Reference: SBOL Version 2.2.0 Section 7.14.2 on page 55
: http://cheese/camembert/1

sbol-12302: The rdfType property of a GenericTopLevel object is REQUIRED and MUST contain a QName.
Reference: SBOL Version 2.2.0 Section 7.14.2 on page 55
: http://cheese/camembert/1

sbol-12302: The rdfType property of a GenericTopLevel object is REQUIRED and MUST contain a QName.
Reference: SBOL Version 2.2.0 Section 7.14.2 on page 55
: http://cheese/camembert/1

sbol-12302: The rdfType property of a GenericTopLevel object is REQUIRED and MUST contain a QName.
Reference: SBOL Version 2.2.0 Section 7.14.2 on page 55
: http://cheese/camembert/1

Validation failed.

The two files are different representations of exactly the same RDF.

@jamesamcl jamesamcl added the bug label Jun 19, 2018
@cjmyers
Copy link
Contributor

cjmyers commented Jun 19, 2018 via email

@cjmyers cjmyers added this to the SBOL 2.5 milestone Apr 7, 2019
@cjmyers cjmyers added feature and removed bug labels Apr 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants