Re: Loading dataset with relative IRIs

2017-11-21 Thread ajs6f
> BUT if you get relative URIs into the dataset, don't expect everything else > to work seamlessly. e.g. SPARQL - in syntax, relative URIs are resolved. Amen. For example, if you serve this data via Fuseki you may find that clients have problems because their requests are getting resolved with

Re: Loading dataset with relative IRIs

2017-11-21 Thread Andy Seaborne
As Martynas says, RDF is defined in terms of absolute URIs. It is MUCH better to invent a base like "http://myBase/;. For Trig, IRI resolution relative the base is always done and there is always a base, RIOT will insert http://base reading from an input stream for TriG. The only bypass is

Re: Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
The link you gave I didn't, I was checking the RDFParser ( http://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFParser.html ), thanks for the link, ‌ On Tue, Nov 21, 2017 at 4:03 PM, Martynas Jusevičius wrote: > Yes. Did you look at the JavaDoc?

Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
Yes. Did you look at the JavaDoc? https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/riot/RDFDataMgr.html#read-org.apache.jena.query.Dataset-java.lang.String-java.lang.String-org.apache.jena.riot.Lang- On Tue, Nov 21, 2017 at 3:54 PM, Mohammad Noorani Bakerally <

Re: Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
is it possible to explicitly set a base when loading the dataset ? ‌ On Tue, Nov 21, 2017 at 3:46 PM, Martynas Jusevičius wrote: > You cannot. RDF data model is based on absolute URIs. > > On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally < >

Re: Loading dataset with relative IRIs

2017-11-21 Thread Martynas Jusevičius
You cannot. RDF data model is based on absolute URIs. On Tue, Nov 21, 2017 at 3:35 PM, Mohammad Noorani Bakerally < noorani.bakera...@gmail.com> wrote: > I have a dataset in a trig file with resources having relative iris, when > loading them with the method RDFDataMgr.loadDataset, all the

Loading dataset with relative IRIs

2017-11-21 Thread Mohammad Noorani Bakerally
I have a dataset in a trig file with resources having relative iris, when loading them with the method RDFDataMgr.loadDataset, all the relative IRIs are converted to absolute iris, how can I prevent this, I want them to retain their relative IRIs ? ‌