equal
deleted
inserted
replaced
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
33 '+': '<owl:minCardinality rdf:datatype="&xsd;int">1</owl:minCardinality>', |
33 '+': '<owl:minCardinality rdf:datatype="&xsd;int">1</owl:minCardinality>', |
34 '*': '' |
34 '*': '' |
35 } |
35 } |
36 |
36 |
37 OWL_TYPE_MAP = {'String': 'xsd:string', |
37 OWL_TYPE_MAP = {'String': 'xsd:string', |
38 'Datetime': 'xsd:dateTime', |
|
39 'Bytes': 'xsd:byte', |
38 'Bytes': 'xsd:byte', |
40 'Float': 'xsd:float', |
39 'Password': 'xsd:byte', |
|
40 |
41 'Boolean': 'xsd:boolean', |
41 'Boolean': 'xsd:boolean', |
42 'Int': 'xsd:int', |
42 'Int': 'xsd:int', |
|
43 'Float': 'xsd:float', |
|
44 'Decimal' : 'xsd:decimal', |
|
45 |
43 'Date':'xsd:date', |
46 'Date':'xsd:date', |
|
47 'Datetime': 'xsd:dateTime', |
|
48 'TZDatetime': 'xsd:dateTime', |
44 'Time': 'xsd:time', |
49 'Time': 'xsd:time', |
45 'Password': 'xsd:byte', |
50 'TZTime': 'xsd:time', |
46 'Decimal' : 'xsd:decimal', |
|
47 'Interval': 'xsd:duration' |
51 'Interval': 'xsd:duration' |
48 } |
52 } |
49 |
53 |
50 OWL_OPENING_ROOT = u'''<?xml version="1.0" encoding="UTF-8"?> |
54 OWL_OPENING_ROOT = u'''<?xml version="1.0" encoding="UTF-8"?> |
51 <!DOCTYPE rdf:RDF [ |
55 <!DOCTYPE rdf:RDF [ |