rdf-ext-archive / rdf-parser-rdfxml Goto Github PK
View Code? Open in Web Editor NEWDeprecated - RDF/XML parser that follows the RDF Interface specification
Deprecated - RDF/XML parser that follows the RDF Interface specification
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.
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>
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.