Comments (9)
The latest is at http://vocab.org/vann/vann-vocab-20100607.rdf
from rdf-vocabularies.
Ah ok, I was just about to say that it would probably be a forbidden character somewhere messing things up.
But good, it's working now :-)
from rdf-vocabularies.
I could not find vann in RDF so far.
from rdf-vocabularies.
Perhaps @iand could point us to the right place? :)
from rdf-vocabularies.
Unfortunately rdfxml-streaming-parser
cannot parse http://vocab.org/vann/vann-vocab-20100607.rdf because of this part:
<cc:Work rdf:about="">
<cc:license rdf:resource="http://creativecommons.org/licenses/by/1.0/"/>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text"/>
</cc:Work>
which throws
ParseError: Invalid URI:
at RdfXmlParser.newParseError (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:140:16)
at RdfXmlParser.uriToNamedNode (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:165:24)
at RdfXmlParser.valueToUri (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:152:21)
at RdfXmlParser.onTagResource (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:334:73)
at RdfXmlParser.onTag (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:230:18)
at SAXStream.emit (events.js:200:13)
at SAXParser.me._parser.<computed> [as onopentag] (/rdf-vocabularies/node_modules/sax/lib/sax.js:258:17)
at emit (/rdf-vocabularies/node_modules/sax/lib/sax.js:624:35)
at emitNode (/rdf-vocabularies/node_modules/sax/lib/sax.js:629:5)
at openTag (/rdf-vocabularies/node_modules/sax/lib/sax.js:825:5)
(see test script)
const fs = require('fs')
const RdfXmlParser = require('rdfxml-streaming-parser').RdfXmlParser
const myParser = new RdfXmlParser()
fs.createReadStream('./vann-vocab-20100607.rdf')
.pipe(myParser)
.on('data', console.log)
.on('error', console.error)
.on('end', () => console.log('All triples were parsed!'))
from rdf-vocabularies.
Ping @rubensworks, any ideas?
from rdf-vocabularies.
@vhf Can you try passing this to the constructor: { baseIRI: 'http://vocab.org/vann/vann-vocab-20100607.rdf ' }
?
from rdf-vocabularies.
Sure, with the same test script as above and your suggestion I get a similar error:
ParseError: Invalid URI: http://vocab.org/vann/vann-vocab-20100607.rdf
at RdfXmlParser.newParseError (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:140:16)
at RdfXmlParser.uriToNamedNode (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:165:24)
at RdfXmlParser.valueToUri (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:152:21)
at RdfXmlParser.onTagResource (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:334:73)
at RdfXmlParser.onTag (/rdf-vocabularies/node_modules/rdfxml-streaming-parser/lib/RdfXmlParser.js:230:18)
at SAXStream.emit (events.js:200:13)
at SAXParser.me._parser.<computed> [as onopentag] (/rdf-vocabularies/node_modules/sax/lib/sax.js:258:17)
at emit (/rdf-vocabularies/node_modules/sax/lib/sax.js:624:35)
at emitNode (/rdf-vocabularies/node_modules/sax/lib/sax.js:629:5)
at openTag (/rdf-vocabularies/node_modules/sax/lib/sax.js:825:5)
from rdf-vocabularies.
Sorry @rubensworks , I got it wrong and your suggestion does indeed solve the issue! 👍
(You cannot see it above but it says that http://vocab.org/vann/vann-vocab-20100607.rdf
is not a valid URI (notice the space at the end of the string 🤦♂ )).
from rdf-vocabularies.
Related Issues (20)
- New ontology: EXIF
- New ontology: EBUCore
- ebucore prefix is wrong
- New ontology: dcmitype HOT 1
- Adjust GS1 source HOT 1
- Make ontologies available in standalone repository, to include with git sub modules HOT 2
- Request for new vocabularies HOT 3
- High-level Strategy for rdf-vocabularies
- Wrong namespace for EARL HOT 1
- New ontology: metadata4ing HOT 1
- Update request: New release for m4i
- Rename dc11 to dc? HOT 1
- DBpedia prefixes HOT 2
- Extract prefix list into its own library HOT 10
- schema.org download location HOT 1
- Overlapping prefixes HOT 1
- Add Bibliographic Ontology (BIBO) HOT 1
- Using expand requires raw-loader HOT 1
- Bug: buildPath returning incorrect path HOT 2
- Extract the code used to generate this package contents (index, etc.) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdf-vocabularies.