[tracker/wip/carlosg/domain-ontologies: 59/93] docs: Generate documentation for internal ontology in libtracker-sparql



commit 1b26ec52543ca2f03ef5c30ea8b8126ebf4fbb17
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 15 20:58:07 2017 +0200

    docs: Generate documentation for internal ontology in libtracker-sparql

 docs/reference/libtracker-sparql/Makefile.am       |   11 +++++++++++
 .../libtracker-sparql/libtracker-sparql-docs.sgml  |    9 +++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/libtracker-sparql/Makefile.am b/docs/reference/libtracker-sparql/Makefile.am
index 1dfeb8b..f3d7ef8 100644
--- a/docs/reference/libtracker-sparql/Makefile.am
+++ b/docs/reference/libtracker-sparql/Makefile.am
@@ -1,5 +1,13 @@
 AUTOMAKE_OPTIONS = 1.6
 
+# Generation of the base ontology XML files.
+ontology-doc.stamp:
+       $(MKDIR_P) xml
+       $(top_builddir)/docs/tools/ttl2sgml -d $(top_srcdir)/src/ontologies/ -o xml/
+       $(AM_V_GEN) touch $@
+
+version.xml: ontology-doc.stamp
+
 # The name of the module.
 DOC_MODULE = libtracker-sparql
 
@@ -62,3 +70,6 @@ include $(top_srcdir)/gtk-doc.make
 EXTRA_DIST += \
        version.xml.in \
        meson.build
+
+CLEANFILES += \
+       ontology-doc.stamp
diff --git a/docs/reference/libtracker-sparql/libtracker-sparql-docs.sgml 
b/docs/reference/libtracker-sparql/libtracker-sparql-docs.sgml
index 8e628ba..bedea92 100644
--- a/docs/reference/libtracker-sparql/libtracker-sparql-docs.sgml
+++ b/docs/reference/libtracker-sparql/libtracker-sparql-docs.sgml
@@ -38,6 +38,15 @@
     <xi:include href="xml/tracker-version.xml"/>
   </part>
 
+  <part id="base-ontology">
+    <title>Base ontology</title>
+    <xi:include href="xml/dc-ontology.xml"/>
+    <xi:include href="xml/xsd-ontology.xml"/>
+    <xi:include href="xml/rdf-ontology.xml"/>
+    <xi:include href="xml/nrl-ontology.xml"/>
+    <xi:include href="xml/nao-ontology.xml"/>
+  </part>
+
   <xi:include href="ontologies.sgml"/>
   <xi:include href="examples.sgml"/>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]