Giter VIP home page Giter VIP logo

rdf-parser-rdfxml's People

Contributors

bergos avatar ktk avatar nicola avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rdf-parser-rdfxml's Issues

Library actualization, compatibility with new RDFJS interface

It is good to know that rdf-ext is developing. Thanks for your efforts! We’ve been using this library in our project, and it’s very exciting for us to know that the latest version has more powerful parsers such as N3-parser and JSONLD-parser, which work excellent with data represented in relevant formats.
However, we would not like to lose an opportunity to work with RDF-XML after migration to the new version. We are just wondering, whether you are still working on it and not yet included it in the latest version or your intention is to drop the support for RDF-XML entirely.
Since we are greatly interested in keeping this feature, we might as well create a pull request for having this support back in the library or follow your alternative advice about it. Please let us know how you’d like us to proceed with our possible contribution.

Error(s) parsing RDF/XML Collection

Attempting to parse a Collection in an RDF/XML document causes error:
[TypeError: this.store.collection is not a function]

I've tracked this down to line 135 of index.js

I think the change is from:
this.node = this.store.collection()
To:
this.node = this.store.collection

But then when I attempt to parse the file I get a different error:
[TypeError: Cannot read property 'toString' of undefined]

Environment details:
Library version: [email protected]
Node version: 4.4.7

Get the file to reproduce the problem:
curl http://spinrdf.org/spl --output spinspl.rdf

Error parsing install.rdf: "RDF/XML syntax error: No namespace for about in "

Hi, I'm trying to use rdf-parser-rdfxml to parse install.rdf for a mozilla addon but the parser seems to blow up on the unqualified about attribute.

This is the line I'm hitting: https://github.com/rdf-ext/rdf-parser-rdfxml/blob/master/index.js#L259

According to the spec [1] specific local-names including about should be allowed to be unqualified.

If ·namespace-name· is present, set to a string value of the concatenation of the value of the ·namespace-name· accessor and the value of the ·local-name· accessor. Otherwise if ·local-name· is ID, about, resource, parseType or type, set to a string value of the concatenation of the ·RDF namespace URI reference· and the value of the ·local-name· accessor. Other non-namespaced ·local-name· accessor values are forbidden.

[1] https://www.w3.org/TR/REC-rdf-syntax/#eventterm-attribute-URI

Here's an example install.rdf for testing purposes:

<?xml version="1.0"?>

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:em="http://www.mozilla.org/2004/em-rdf#">

  <Description about="urn:mozilla:install-manifest">
  <em:id>{Themes_UUID}</em:id>
    <em:version>Themes_Version</em:version>

<!-- Target Application this extension can install into,
         with minimum and maximum supported versions. -->

<em:targetApplication>
    <Description>
      <!-- Firefox's UUID -->
      <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
      <em:minVersion>Min_FF_Version</em:minVersion>
      <em:maxVersion>Max_FF_Version</em:maxVersion>
    </Description>
  </em:targetApplication>

  <!-- Front End MetaData -->
  <!-- My_Theme -->
  <em:name>My_Theme</em:name>
  <em:description>My_Theme</em:description>
  <em:creator>Your_Name</em:creator>
  <em:contributor>Contributors_Names</em:contributor>
  <em:homepageURL>Themes_HomePage</em:homepageURL>
  <em:updateURL> Url_of_Update_Location </em:updateURL>
  <em:aboutURL> Url_of_About_Page </em:aboutURL>

  <!-- Front End Integration Hooks (used by Theme Manager)-->
    <em:internalName>My_Theme</em:internalName>
  </Description>

</RDF>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.