Comments (6)
Hi @m1ci,
At the moment this is not supported, but we will do this in the future, once we have support CSVW, which has support for a custom delimiter. See also #20.
from rmlmapper-java.
OK, thanks for the quick response, Pieter! btw, nice to hear from you, long time no see! ;) take care!
from rmlmapper-java.
Hi, our new v4.4.0 release supports CSVW dialects, of which tab-delimiters should be possible, see for example https://github.com/RMLio/rmlmapper-java/tree/master/src/test/resources/test-cases-CSVW/RMLTC0002a_delimiter-CSVW
from rmlmapper-java.
@bjdmeest : I just tried the mapping file using CSVW in RML-mapper v4.5.1 and I found that it errors if the URI of the csvw:Table
instance is <#CSVW_source>
:
org.eclipse.rdf4j.rio.RDFParseException: Not a valid (absolute) IRI: #CSVW_source [line 18]
at org.eclipse.rdf4j.rio.helpers.RDFParserHelper.reportFatalError(RDFParserHelper.java:366)
at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.reportFatalError(AbstractRDFParser.java:761)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.reportFatalError(TurtleParser.java:1313)
at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.createURI(AbstractRDFParser.java:418)
at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.resolveURI(AbstractRDFParser.java:401)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseURI(TurtleParser.java:943)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseValue(TurtleParser.java:575)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObject(TurtleParser.java:461)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:389)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:362)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseImplicitBlank(TurtleParser.java:552)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObject(TurtleParser.java:458)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseObjectList(TurtleParser.java:389)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parsePredicateObjectList(TurtleParser.java:362)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:349)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:216)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:178)
at org.eclipse.rdf4j.rio.turtle.TurtleParser.parse(TurtleParser.java:130)
at org.eclipse.rdf4j.rio.Rio.parse(Rio.java:253)
at be.ugent.rml.Utils.readTurtle(Utils.java:244)
at be.ugent.rml.cli.Main.main(Main.java:136)
at be.ugent.rml.cli.Main.main(Main.java:30)
Caused by: java.lang.IllegalArgumentException: Not a valid (absolute) IRI: #CSVW_source
at org.eclipse.rdf4j.model.impl.SimpleIRI.setIRIString(SimpleIRI.java:74)
at org.eclipse.rdf4j.model.impl.SimpleIRI.<init>(SimpleIRI.java:63)
at org.eclipse.rdf4j.model.impl.AbstractValueFactory.createIRI(AbstractValueFactory.java:86)
at org.eclipse.rdf4j.rio.helpers.AbstractRDFParser.createURI(AbstractRDFParser.java:416)
... 18 more
It works however if it's replaced with <http://example.org#CSVW_source1>
from rmlmapper-java.
Huh, could it be that there's no @base in you mapping file? The error suggests indeed that you need an absolute URI, which you won't have without @base. If you do have one, this feels like it should belong in a new issue :)
from rmlmapper-java.
That's correct! My bad :/
It works with a @base
from rmlmapper-java.
Related Issues (20)
- Example 3.1 from the RML Spec HOT 2
- README: Deduplication option only affects nquads and hdt serialization HOT 3
- Dependency resolution of rmlmapper 6.2.1 fails HOT 9
- Generating and IRI from an email address HOT 1
- Memory usage comparison between 6.2.1 and 6.0.0 HOT 1
- MethodNotFoundException: No suitable method 'lookup' ... HOT 5
- URL-encoded version of email address HOT 7
- Lookup function doesn't use correct datatype HOT 3
- Postgres, table with Float datatype = NULL gives exception HOT 4
- JSON: Join Condition on Array HOT 2
- Feature request: string replace function HOT 3
- Cannot invoke "be.ugent.rml.functions.SingleRecordFunctionExecutor.execute(be.ugent.rml.records.Record)" because "this.functionExecutor" is null HOT 2
- Serialization format http://www.w3.org/ns/formats/TriG not implemented! HOT 2
- Unreproducible results for repeated XML `NUTS` elements with JSON vocabulary mapping
- Unreproducible results for type values from CSV vocabularies with empty first column HOT 5
- Repeated XML `NUTS` elements not creating mapping from JSON vocabulary HOT 3
- JSONL support HOT 1
- JSON parent/child mapping HOT 3
- Function composition in subject URI template HOT 7
- Hashing each object value HOT 3
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 rmlmapper-java.