Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Deferring setting the base of a model

$
0
0
Hi,

I know I can set the base when building from a model with RDF data (and the
serialization of RDF has relative URIs).

Model#read(InputStream in, String base, String lang)::Model

According to the Javadoc "If the base is the empty string, then relative
URIs will be retained in the model. This is typically unwise and will
usually generate errors when writing the model back out.".

I was wondering whether it is possible to defer setting the base such that
when the model is read they retain as relative URIs in the model but later
on (but before writing the model) I can set the correct base so that when
they are written they will be serialized correctly?

Best Regards,
Nandana

Viewing all articles
Browse latest Browse all 5648

Trending Articles