-
Notifications
You must be signed in to change notification settings - Fork 62
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
Running failed #13
Comments
Hi @Floryndas, Could you provide us with the files that you are using? Both the data files and the RML rules. |
What are RML rules and how should I get it, please? I do not use any of them |
Using an example available here: http://rml.io/spec.html#example-XML, I have the following issue: Here is the Transport.xml file: , which is also available here: https://www.dropbox.com/s/y8d4qgtu706qxql/Transport.xml?dl=0
Here is the mapping file Transport.rml.ttl: ex:TransportMapping rr:subjectMap [ rr:predicateObjectMap [ rr:predicateObjectMap [ ` |
Hi @Floryndas I had a look and I was able to run the mapping with the following changes:
Hope this helps. |
Hello @pheyvaer , in fact it helps; thank you for that. But I still have errors and I am not able to perform the mapping. Which instruction do you use for the mapping, please? I don't really understand what are the updates to perform for it to work for you. |
You can find the input file and the mapping that work for me here and I execute the following command |
I have got a result now. It is fine. Thanks for your tips. Actually, I was expected "bus" as an OWL class in generated data; but I did not see it. Only "Stop" exists as an OWL class. |
You can change the class if that is needed. Or add another Triples Map that annotates the data with a "bus". Yes, could you send me an email at pheyvaer.heyvaert@ugent.be? |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Dear,
This is what I have when running the rmlmapper-java:
C:\Users\Justine\git\rmlmapper-java\target>java -jar rmlmapper-4.2.0-r66.jar -m GetAllFDESShortData.xml -o output.ttl -v
Looking for file GetAllFDESShortData.xml in basePath C:\Users\Justine\git\rmlmapper-java\target
Registered service class org.eclipse.rdf4j.rio.datatypes.XMLSchemaDatatypeHandler
Registered service class org.eclipse.rdf4j.rio.datatypes.RDFDatatypeHandler
Registered service class org.eclipse.rdf4j.rio.datatypes.DBPediaDatatypeHandler
Registered service class org.eclipse.rdf4j.rio.datatypes.VirtuosoGeometryDatatypeHandler
Registered service class org.eclipse.rdf4j.rio.datatypes.GeoSPARQLDatatypeHandler
Registered service class org.eclipse.rdf4j.rio.languages.RFC3066LanguageHandler
Registered service class org.eclipse.rdf4j.rio.languages.BCP47LanguageHandler
Reading from C:\Users\Justine\git\rmlmapper-java\target\GetAllFDESShortData.xml
Registered service class org.eclipse.rdf4j.rio.binary.BinaryRDFParserFactory
Registered service class org.eclipse.rdf4j.rio.jsonld.JSONLDParserFactory
Registered service class org.eclipse.rdf4j.rio.n3.N3ParserFactory
Registered service class org.eclipse.rdf4j.rio.nquads.NQuadsParserFactory
Registered service class org.eclipse.rdf4j.rio.ntriples.NTriplesParserFactory
Registered service class org.eclipse.rdf4j.rio.rdfjson.RDFJSONParserFactory
Registered service class org.eclipse.rdf4j.rio.rdfxml.RDFXMLParserFactory
Registered service class org.eclipse.rdf4j.rio.trig.TriGParserFactory
Registered service class org.eclipse.rdf4j.rio.trix.TriXParserFactory
Registered service class org.eclipse.rdf4j.rio.turtle.TurtleParserFactory
org.eclipse.rdf4j.rio.RDFParseException: IRI included an unencoded space: '32' [line 1]
at org.eclipse.rdf4j.rio.helpers.RDFParserHelper.reportError(RDFParserHelper.java:322)
at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.reportError(AbstractRDFParser.java:684)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.reportError(TurtleParser.java:1309)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseURI(TurtleParser.java:900)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseValue(TurtleParser.java:588)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseSubject(TurtleParser.java:429)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:370)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:239)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:201)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:143)
at org.eclipse.rdf4j.rio.Rio.parse(Rio.java:298)
at be.ugent.rml.Utils.readTurtle(Utils.java:244)
at be.ugent.rml.Utils.readTurtle(Utils.java:253)
at be.ugent.rml.cli.Main.main(Main.java:126)
Looking for file functions.ttl in basePath C:\Users\Justine\git\rmlmapper-java\target
Reading from C:\Users\Justine\AppData\Local\Temp\file9057145616842695711temp.ttl
Exception in thread "main" java.lang.NullPointerException
at be.ugent.rml.store.RDF4JStore.getQuads(RDF4JStore.java:70)
at be.ugent.rml.Initializer.getAllTriplesMaps(Initializer.java:44)
at be.ugent.rml.Initializer.(Initializer.java:24)
at be.ugent.rml.Executor.(Executor.java:47)
at be.ugent.rml.cli.Main.main(Main.java:186)
How can I correct it, please? Have I missed something?
Thanks for your reply.
The text was updated successfully, but these errors were encountered: