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

Handle BNode object type #35

Closed
samuell opened this issue Apr 24, 2017 · 3 comments
Closed

Handle BNode object type #35

samuell opened this issue Apr 24, 2017 · 3 comments

Comments

@samuell
Copy link
Member

samuell commented Apr 24, 2017

This happens when trying to import certain RDF/XML constructs:

selection_195

(Relevant piece of code)

Some links with relevant info:

@samuell
Copy link
Member Author

samuell commented Apr 24, 2017

After adding a switch case for bnode (adfe9de), one can now see how badly RDF/XML import works.

Trying to import this:

<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:ns0="http://www.recshop.fake/cd#"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

  <rdf:Description rdf:about="http://www.recshop.fake/cd/Empire Burlesque">
    <ns0:artist>Bob Dylan</ns0:artist>
    <ns0:country>
      <rdf:Description rdf:about="http://www.countries.org/onto/USA">
        <rdfs:label>USA</rdfs:label>
      </rdf:Description>
    </ns0:country>

    <ns0:company>Columbia</ns0:company>
    <ns0:price>10.90</ns0:price>
    <ns0:year>1985</ns0:year>
    <rdf:type>Album</rdf:type>
  </rdf:Description>

  <rdf:Description rdf:about="http://www.recshop.fake/cd/Hide your heart">
    <ns0:artist>Bonnie Tyler</ns0:artist>
    <ns0:country>UK</ns0:country>
    <ns0:company>CBS Records</ns0:company>
    <ns0:price>9.90</ns0:price>
    <ns0:year>1988</ns0:year>
    <rdf:type>Album</rdf:type>
  </rdf:Description>

  <rdf:Description rdf:about="http://www.countries.org/onto/Albums">
    <rdfs:subClassOf rdf:resource="http://www.countries.org/onto/MediaCollections"/>
  </rdf:Description>

</rdf:RDF>

... results in this:

selection_196

@samuell
Copy link
Member Author

samuell commented Aug 4, 2017

@zidama It seems this was easier to fix than I thought! Need to test a bit more though. Will get back with more info as soon as I have tested a bit more.

@samuell
Copy link
Member Author

samuell commented Aug 8, 2017

This is now fixed in v2.3.0. (Ping @zidama)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant