1:- module(conf_lod, []). 2:- use_module(api(lod)). 3:- use_module(library(http/http_dispatch)). 4 5/** <module> Configure Linked Data (LOD) access 6 7Load the linked-data server and the library to register HTTP handlers. 8and then register your LOD areas and/or handlers for locations that are 9redirected from e.g., http://www.purl.org. Multiple handlers can point 10to lod_api/1, but one handler should not be a prefix of another one (as 11in /rdf/ and /rdf/time/). The first example assumes that requests for 12RDF URIs arrive at this server directly or through a proxy. The latter 13assumes that /mydata/ on purl.org is redirected to /purl/rdf/ on this 14server and all RDF URIs start with http://www.purl.org/mydata/ 15 16The bounded_description(cbd) option selects the default Concise Bounded 17Description. The alternative is =scbd= (Symetric Concise Bounded 18Description), which also includes triples that have the target as 19_object_. 20 21@see cliopatria(api/lod) 22*/ 23 24% The bounded_description option is one of `cbd` (Consise Bounded 25% Description) or `scbd` (Symmetric CBD). The latter includes triples 26% that have the target resource as object. 27 28% Use this if the URIs resolve directly to this server 29%:- http_handler('/rdf', 30% lod_api([ bounded_description(cbd) 31% ]), 32% [ prefix ]). 33 34% Use this if the URIs are redirected to this server. 35%:- http_handler('/purl/rdf', 36% lod_api([ redirected_from('http://www.purl.org/mydata'), 37% bounded_description(cbd) 38% ]), 39% [ prefix ]).