diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-03-29 11:43:14 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-03-29 11:43:14 +0100 |
commit | 3d08d91b19e8809c19da257e7142322aee264eb1 (patch) | |
tree | 03c4d84d982eef25a85f7e9f62238d71ae7b5149 /a4doc.py | |
parent | e024695157def418e93b0c23d034466d47b27304 (diff) | |
download | ns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.tar.gz ns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.tar.xz ns-a4doc-3d08d91b19e8809c19da257e7142322aee264eb1.zip |
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'a4doc.py')
-rwxr-xr-x | a4doc.py | 29 |
1 files changed, 14 insertions, 15 deletions
@@ -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 |