From 3d08d91b19e8809c19da257e7142322aee264eb1 Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Fri, 29 Mar 2013 11:43:14 +0100 Subject: Utilize the "ontology can derive some properties from module" feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- a4doc.py | 29 ++++++++++++++--------------- 1 file 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ý +"""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('''\ # Jan Pokorný''') - creator = u'Jan Pokorný' + pass @ontologies.include -- cgit