annotate jamendo/sparql-archived/rdf_dump.pl @ 27:d95e683fbd35 tip

Enable CORS on urispace redirects as well
author Chris Cannam
date Tue, 20 Feb 2018 14:52:02 +0000
parents df9685986338
children
rev   line source
Chris@0 1 :- module(rdf_dump,[rdf_dump/1,rdf_dump/0]).
Chris@0 2
Chris@0 3 /**
Chris@0 4 * A module providing a way to dump all available
Chris@0 5 * RDF information, through p2r_entailement
Chris@0 6 */
Chris@0 7
Chris@0 8 :- use_module(library(rdf_write)).
Chris@0 9 :- use_module(p2r_entailment).
Chris@0 10
Chris@0 11 rdf_dump :-
Chris@0 12 rdf_dump('rdf_dump.rdf').
Chris@0 13
Chris@0 14 rdf_dump(File) :-
Chris@0 15 open(File,write,Id,[]),
Chris@0 16 bagof(rdf(A,B,C),p2r_entailment:rdf(A,B,C),Bag),
Chris@0 17 rdf_write_xml(Id,Bag).
Chris@0 18