OnObject will be passed a list of triples something like this
on_object(TripleList, Graph:LineNo)
:-
TripleList would be a list of terms like rdf(S,P,O)
(or possibly
rdf(S,P,O,G)
, apparently)
This from reading code, YMMV.
Did you know ... | Search Documentation: |
Predicate rdf_process_turtle/3 |
:- use_module(library(semweb/turtle)).
rdf(S,P,O)
terms for a normal Turtle file or rdf(S,P,O,G)
terms if the GRAPH
keyword is used to associate a set of
triples in the document with a particular graph. The Graph
argument provides the default graph for storing the triples and Line
is the line number where the statement started.
call(OnObject, ListOfTriples, Graph:Line)
This predicate supports the same Options as rdf_load_turtle/3.
Errors encountered are sent to print_message/2, after which the parser tries to recover and parse the remainder of the data.
OnObject will be passed a list of triples something like this
on_object(TripleList, Graph:LineNo)
:-
TripleList would be a list of terms like rdf(S,P,O)
(or possibly
rdf(S,P,O,G)
, apparently)
This from reading code, YMMV.