SWI IO is used in RDF packages.
This commit is contained in:
parent
bfa7285041
commit
0081626e0d
@ -37,6 +37,9 @@
|
|||||||
process_rdf/3 % +File, :OnTriples, :Options
|
process_rdf/3 % +File, :OnTriples, :Options
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
:- expects_dialect(swi).
|
||||||
|
:- assert(system:swi_io).
|
||||||
|
|
||||||
:- meta_predicate
|
:- meta_predicate
|
||||||
load_rdf(+, -, :),
|
load_rdf(+, -, :),
|
||||||
process_rdf(+, :, :).
|
process_rdf(+, :, :).
|
||||||
@ -411,3 +414,5 @@ quote(X) --> [X].
|
|||||||
|
|
||||||
:- multifile prolog:meta_goal/2.
|
:- multifile prolog:meta_goal/2.
|
||||||
prolog:meta_goal(process_rdf(_,G,_), [G+2]).
|
prolog:meta_goal(process_rdf(_,G,_), [G+2]).
|
||||||
|
|
||||||
|
:- retract(system:swi_io). %
|
||||||
|
@ -40,6 +40,9 @@
|
|||||||
:- use_module(library(pairs)).
|
:- use_module(library(pairs)).
|
||||||
:- use_module(library(debug)).
|
:- use_module(library(debug)).
|
||||||
|
|
||||||
|
:- expects_dialect(swi).
|
||||||
|
:- assert(system:swi_io).
|
||||||
|
|
||||||
|
|
||||||
/** <module> Write RDF/XML from a list of triples
|
/** <module> Write RDF/XML from a list of triples
|
||||||
|
|
||||||
@ -634,3 +637,6 @@ to_be_described('http://t-d-b.org?').
|
|||||||
|
|
||||||
ns(Id, Full) :-
|
ns(Id, Full) :-
|
||||||
rdf_db:ns(Id, Full).
|
rdf_db:ns(Id, Full).
|
||||||
|
|
||||||
|
:- retract(system:swi_io).
|
||||||
|
|
||||||
|
@ -315,3 +315,4 @@ show_ok(Test) :-
|
|||||||
new(D, rdf_diagram(string('Ok for %s', File))),
|
new(D, rdf_diagram(string('Ok for %s', File))),
|
||||||
send(D, triples, OkTriples),
|
send(D, triples, OkTriples),
|
||||||
send(D, open).
|
send(D, open).
|
||||||
|
|
||||||
|
@ -52,6 +52,9 @@
|
|||||||
:- use_module(library(semweb/rdf_db)).
|
:- use_module(library(semweb/rdf_db)).
|
||||||
:- use_module(rdf).
|
:- use_module(rdf).
|
||||||
|
|
||||||
|
:- expects_dialect(swi).
|
||||||
|
:- assert(system:swi_io).
|
||||||
|
|
||||||
test_write :-
|
test_write :-
|
||||||
run_tests([ rdf_write
|
run_tests([ rdf_write
|
||||||
]).
|
]).
|
||||||
@ -160,3 +163,4 @@ test(type, true) :-
|
|||||||
:- end_tests(rdf_write).
|
:- end_tests(rdf_write).
|
||||||
|
|
||||||
|
|
||||||
|
:- retract(system:swi_io).
|
||||||
|
Reference in New Issue
Block a user