diff options
-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 |