Re: load trig RDF

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 02/07/2014 04:16 PM, nxiao wrote:

> We ran into a need to load RDF in TRIG format in our project. I'm wondering
> if there is a such thing exist for Prolog. If not, could you kindly point
> out what is the quickest way to create one? One way on mind is to modify the
> TTL loading - if you happen to concur that this is a sensible way, I would
> deeply appreciate some details and guidance for the implementation and
> modification.

TRiG processing is supported for a while using rdf_load/2 on a .trig file
or using the option format(trig).  It is implemented (as you suggest) as
an extension of the turtle parser, so you need to load 
library(semweb/turtle).

There are some issues.  The file loads and reports only the number of 
triples
loaded into the default graph of the file.  The other graphs have no 
explicit
relation to the loaded file and rdf_unload/1 does not work.  Feel free to
dig into these issues and propose patches.

	Cheers --- Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.