summaryrefslogtreecommitdiffstats
path: root/a4doc.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-03-29 11:43:14 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-03-29 11:43:14 +0100
commit3d08d91b19e8809c19da257e7142322aee264eb1 (patch)
tree03c4d84d982eef25a85f7e9f62238d71ae7b5149 /a4doc.py
parente024695157def418e93b0c23d034466d47b27304 (diff)
downloadns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.tar.gz
ns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.tar.xz
ns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.zip
Utilize the "ontology can derive some properties from module" featureHEADmaster
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'a4doc.py')
-rwxr-xr-xa4doc.py29
1 files changed, 14 insertions, 15 deletions
diff --git a/a4doc.py b/a4doc.py
index 6467fe6..63f961c 100755
--- a/a4doc.py
+++ b/a4doc.py
@@ -2,6 +2,18 @@
# vim: set fileencoding=UTF-8:
# Copyright 2013 Red Hat, Inc.
# Author: Jan Pokorný <jpokorny at redhat dot com>
+"""Documentation vocabulary for semantic highlights of eligible properties
+
+This vocabulary serves a purpose of annotating specific notable semantic
+properties accompanied with (optional) textual details or just standalone
+hints connected with annotated entity, both of which are typically reflected
+in some form of documentation (hence a4doc as typical prefix).
+
+Primarily created for custom RELAX NG schema annotations via elements and
+attributes in the external namespace (see the example).
+"""
+__author__ = u"Jan Pokorný"
+
from sys import argv
#from genshi.input import XML
@@ -12,7 +24,7 @@ from ontogen.ontogen import Property, Class, Example, OntologyWithFigure, \
#from ontogen.ontogen import log
#log.setLevel('DEBUG')
-BASE = 'http://purl.org/net/a4doc'
+base_uri = 'http://purl.org/net/a4doc'
#
@@ -160,23 +172,10 @@ ontologies = Ontologies()
class a4doc(OntologyWithFigure):
- """Documentation vocabulary for semantic highlights of eligible properties
-
- This vocabulary serves a purpose of annotating specific notable
- semantic properties accompanied with (optional) textual details
- or just standalone hints connected with annotated entity, both
- of which are typically reflected in some form of documentation
- (hence a4doc as typical prefix).
-
- Primarily created for custom RELAX NG schema annotations
- via elements and attributes in the external namespace (see
- the example).
- """
- base_uri = BASE
#creator = XML('''\
# <dc:foo xmlns:dc="http://purl.org/dc/elements/1.1/"
# >Jan Pokorný</dc:foo>''')
- creator = u'Jan Pokorný'
+ pass
@ontologies.include