equal
deleted
inserted
replaced
|
1 """produces some Ontology Web Language schema and views |
|
2 |
|
3 :organization: Logilab |
|
4 :copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
|
5 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
6 """ |
|
7 __docformat__ = "restructuredtext en" |
|
8 |
1 from logilab.mtconverter import TransformError, xml_escape |
9 from logilab.mtconverter import TransformError, xml_escape |
2 |
10 |
3 from cubicweb.common.view import StartupView |
11 from cubicweb.view import StartupView, EntityView |
4 from cubicweb.common.view import EntityView |
|
5 |
12 |
6 _ = unicode |
13 _ = unicode |
7 |
14 |
8 OWL_CARD_MAP = {'1': '<rdf:type rdf:resource="&owl;FunctionalProperty"/>', |
15 OWL_CARD_MAP = {'1': '<rdf:type rdf:resource="&owl;FunctionalProperty"/>', |
9 '?': '<owl:maxCardinality rdf:datatype="&xsd;int">1</owl:maxCardinality>', |
16 '?': '<owl:maxCardinality rdf:datatype="&xsd;int">1</owl:maxCardinality>', |