Skip to content
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

Support rdf* #24

Open
cmungall opened this issue Oct 15, 2020 · 0 comments
Open

Support rdf* #24

cmungall opened this issue Oct 15, 2020 · 0 comments

Comments

@cmungall
Copy link

@prefix : <http://example.org/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <http://example.org/> .

    :bob :knows :alice .
<< :bob :knows :alice >> :source :fred .

riot from jena is fine with this:

$ riot --version
Jena:       VERSION: 3.16.0
Jena:       BUILD_DATE: 2020-07-09T16:13:45+0000
$ riot tests/rdfstar.ttl 
<http://example.org/bob> <http://example.org/knows> <http://example.org/alice> .
<< <http://example.org/bob> <http://example.org/knows> <http://example.org/alice> >> <http://example.org/source> <http://example.org/fred> .

but when I try bg-load I get:

Caused by: org.openrdf.rio.RDFParseException: IRI included an unencoded space: '32' [line 10]
        at org.openrdf.rio.helpers.RDFParserHelper.reportFatalError(RDFParserHelper.java:440)
        at org.openrdf.rio.helpers.RDFParserBase.reportFatalError(RDFParserBase.java:685)
        at org.openrdf.rio.turtle.TurtleParser.reportFatalError(TurtleParser.java:1366)
        at org.openrdf.rio.turtle.TurtleParser.parseURI(TurtleParser.java:948)
        at org.openrdf.rio.turtle.TurtleParser.parseValue(TurtleParser.java:613)
        at org.openrdf.rio.turtle.TurtleParser.parseSubject(TurtleParser.java:448)
        at org.openrdf.rio.turtle.TurtleParser.parseTriples(TurtleParser.java:382)
        at org.openrdf.rio.turtle.TurtleParser.parseStatement(TurtleParser.java:260)
        at org.openrdf.rio.turtle.TurtleParser.parse(TurtleParser.java:215)
        at com.bigdata.rdf.rio.BasicRioLoader.loadRdf2(BasicRioLoader.java:236)
        at com.bigdata.rdf.rio.BasicRioLoader.loadRdf(BasicRioLoader.java:176)
        at com.bigdata.rdf.store.DataLoader.loadData4_ParserErrors_Not_Trapped(DataLoader.java:1595)
        at com.bigdata.rdf.store.DataLoader.loadFiles(DataLoader.java:1359)

note: would be nice to also have an option to set rdr in bg without specifying a whole properties file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant