annotation_service/commit
move ns decl into library file for explicit inclusion
author | Jacco van Ossenbruggen |
---|---|
Tue Jun 19 15:38:13 2012 +0200 | |
committer | Jacco van Ossenbruggen |
Tue Jun 19 15:38:13 2012 +0200 | |
commit | f4a26112b2e4fad98d97ccd983fdd936cf54ba41 |
tree | 5a5531902dd8e6b9de1c16f9f83cc2a5909f4b38 |
parent | 25f0c3fb1c23592a8a0adc53b6a4fa512633888e |
Diff style: patch stat
diff --git a/api/annotation.pl b/api/annotation.pl index 954b97a..70075f4 100644 --- a/api/annotation.pl +++ b/api/annotation.pl @@ -10,16 +10,7 @@ :- use_module(library(graph_version)). :- use_module(components(label)). :- use_module(user(user_db)). - -% Namespace for package-specific extensions: -:- rdf_register_ns(an, 'http://semanticweb.cs.vu.nl/annotate/'). - -% Namespace for old open annotation model: -:- rdf_register_ns(oac, 'http://www.openannotation.org/ns/'). - -% Namespaces for new open annotation model. Warning: under development! -:- rdf_register_ns(oa, 'http://www.w3.org/ns/openannotation/core/'). % The core Open Annotation model -:- rdf_register_ns(oax, 'http://www.w3.org/ns/openannotation/extension/'). % Interoperable extensions to the core model +:- use_module(library(oa_schema)). :- setting(login, boolean, true, 'Require login'). :- setting(user_restrict, boolean, false, diff --git a/config-available/oac_graphviz.pl b/config-available/oac_graphviz.pl index ba3878c..264f722 100644 --- a/config-available/oac_graphviz.pl +++ b/config-available/oac_graphviz.pl @@ -1,6 +1,5 @@ :- module(oac_graphviz, []). - :- use_module(cliopatria(hooks)). :- use_module(library(semweb/rdf_db)). :- use_module(library(semweb/rdfs)). @@ -8,7 +7,7 @@ % Need these modules solely for their namespace declarations: :- use_module(library(graph_version)). -:- use_module(api(annotation)). +:- use_module(library(oa_schema)). :- rdf_meta graph_context_triple(r, t). diff --git a/lib/oa_schema.pl b/lib/oa_schema.pl new file mode 100644 index 0000000..82ad2c8 --- /dev/null +++ b/lib/oa_schema.pl @@ -0,0 +1,23 @@ +:- module(oa_schema, []). +:- use_module(library(semweb/rdf_db)). +:- use_module(library(semweb/rdf_library)). + +/** <module> Provide Open Annotation schema, namespace and visualization hooks. + +This module provides the OA schema and the prefix =oa= and =oax= for use in +Prolog. +*/ + +% Namespace for package-specific extensions: +:- rdf_register_ns(an, 'http://semanticweb.cs.vu.nl/annotate/'). + +% Namespace for old open annotation model: +:- rdf_register_ns(oac, 'http://www.openannotation.org/ns/'). + +% Namespaces for new open annotation model. Warning: under development! +:- rdf_register_ns(oa, 'http://www.w3.org/ns/openannotation/core/'). +:- rdf_register_ns(oax, 'http://www.w3.org/ns/openannotation/extension/'). + +:- rdf_attach_library(annotation_service(rdf)). +% :- rdf_load_library(oa). +