7 March 2003
Appendix C. Transformation to OWL in RDF/XML
An XSLT stylesheet (owlxml2rdf.xsl)
is available for the transformation of an OWL document from the XML
presentation syntax to the RDF/XML syntax
[RDF/XML Syntax].
This stylesheet basically follows the
mapping rules
in [OWL Semantics], but tries to achieve
a more legible result that the mere set of triples.
The stylesheet accepts a number of parameters that allows to refine
its behavior:
- var (default value: "oOo") contains the string that is
used for generating new identifiers. This is used when unamed
entities in the XML syntax have to be refered in RDF. It can be
changed to avoid name clashes.
- prefix (default value: "") is used to prefix the names
used in the generated document. The empty string makes the names
implicitely prefixed by the URL of the generated documents.
It could be convienient to use that of the source document.
- import (default value: 0) indicates the depths of
inclusion to be performed by the transformation. The default value (0)
indicate that no inclusion is performed, an integer indicates the depth
of the import tree to be explored, and "*" indicates that the closure
of imports
[OWL Reference] is included in the
generated document.
Currently known limitations of the stylesheet are:
- the stylesheet does hardly declare rdf:id but uses about instead;
- the import feature for values other than 0 have not been implemented;
- too many namespace declaration are generated.
Appendix D. Acknowledgements
The Element Reference
section of this document was written on the basis of the OWL
Reference document [OWL Reference]
edited by Mike Dean and Guus Schreiber.
In addition, Appendix B
was derived from the OWL Guide document [OWL Guide]
authored by Michael K. Smith, Chris Welty, and Deborah L. McGuinness.
This document is the result of extensive discussions within the
Web Ontology Working Group
as a whole. The members of this working group were
Jean-François Baget, James Barnette, Sean Bechhofer, Jonathan
Borden, Frederik Brysse, Stephen Buswell, Peter Crowther, Jos De
Roo, David De Roure, Mike Dean, Larry Eshelman, Jérôme Euzenat,
Dieter Fensel, Tim Finin, Nicholas Gibbins, Pat Hayes, Jeff Heflin,
Ziv Hellman, James Hendler, Bernard Horan, Masahiro Hori, Ian
Horrocks, Francesco Iannuzzelli, Mario Jeckle, Ruediger Klein, Ora
Lassila, Alexander Maedche, Massimo Marchiori, Deborah McGuinness,
Libby Miller, Enrico Motta, Leo Obrst, Laurent Olivry , Peter
Patel-Schneider, Martin Pike, Marwan Sabbouh, Guus Schreiber, Noboru
Shimizu, Michael Sintek, Michael Smith, Ned Smith, John Stanton,
Lynn Andrea Stein, Herman ter Horst, Lynne R. Thompson, David
Trastour, Frank van Harmelen, Raphael Volz, Evan Wallace,
Christopher Welty, and John Yanosy.
Appendix E. References
- [OWL Guide]
-
Web Ontology Language (OWL) Guide Version 1.0.
Michael K. Smith, Chris Welty, and Deborah L. McGuinness.
W3C Working Draft, 10 February 2003,
http://www.w3.org/TR/owl-guide/
- [OWL Reference]
-
Web Ontology Language (OWL) Reference Version 1.0.
Mike Dean and Guus Schreiber (eds.).
W3C Working Draft, 21 February 2003,
http://www.w3.org/TR/owl-ref/
- [OWL Requirement]
-
Web Ontology Language (OWL) Use Cases and Requirements.
Jeff Heflin (ed.). W3C Working Draft, 3 February 2003,
http://www.w3.org/TR/webont-req/
- [OWL Semantics]
-
Web Ontology Language (OWL) Semantics and Abstract Syntax.
Peter F. Patel-Schneider, Patrick Hayes, and Ian Horrocks (eds.).
W3C Working Draft, 3 February 2003,
http://www.w3.org/TR/owl-semantics/
- [RDF Schema]
-
RDF Vocabulary Description Language 1.0: RDF Schema.
W3C Working Draft 23 January 2003,
http://www.w3.org/TR/rdf-schema/
- [RDF/XML Syntax]
-
RDF/XML Syntax Specification (Revised).
W3C Working Draft, 23 January 2003,
http://www.w3.org/TR/rdf-syntax-grammar
- [XHTML m12n]
-
Modularization of XHTML in XML Schema.
W3C Working Draft, 9 December 2002,
http://www.w3.org/TR/xhtml-m12n-schema
- [XMLSchema-1]
-
XML Schema Part 1: Structures.
W3C Recommendation, 2 May 2001,
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
- [XMLSchema-2]
-
XML Schema Part 2: Datatypes.
W3C Recommendation, 2 May 2001,
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
Appendix F. Change Log
- 2003/03/05
- 'xsi:type' attribute of 'DataValue' was changed as 'datatype', because
DataValue is the only element using 'xsi:type' for data typing while
'datatype' is used for all the other cases in DataRestriction/allValuesFrom,
DataRestriction/someValuesFrom, and DatatypeProperty/range.
Note that the QName datatype (used as the value type of 'xsi:type')
requires a namespace declaration to be in scope during the datatype
mapping, and is not suitable for use in RDF. See also http://www.w3.org/TR/2003/WD-rdf-concepts-20030123/#section-Datatypes
and a thread of RDF Core WG's discussions including
http://lists.w3.org/Archives/Public/w3c-rdfcore-wg/2002Oct/0181.html.
- 2003/02/27
- 'Info' element (a child of 'Annotation') was removed, since 'Info'
cannot have any corresponding construct in the RDF/XML syntax
(although 'Info' can directly be mapped to an RDF triple by using
'subject' and 'object' attributes). See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Feb/0362.html.
- 2003/02/26
- 'super' element contained by 'DatatypeProperty' and 'ObjectProperty'
was renamed as 'superProperty', in order to avoid confusion with
another 'super' element contained by 'SubClassOf'.
- 2003/02/24
- The 'subject' attribute of 'Documentation' was removed.
- 2003/02/23
- Miss-spelled element name 'someValueFrom' was corrected to be
'someValuesFrom' for DataRestriction and ObjectRestriction.
- 2003/02/20
- The following changes were made in accordance with the changes in the
OWL semantics document (editor's version of 15 February 2003). See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Feb/0224.html
- The xsd:minOccurs of EquivalentClasses, DisjointClasses,
SameIndividual, and DifferentIndividuals were changed from '1' to '2'.
- The xsd:minOccurs of DatatypeProperty and ObjectProperty
in EquivalentProperties were changed from '1' to '2'.
- 'DeprecatedClass' and 'DeprecatedProperty' were removed,
and 'deprecated' attribute was added to 'Class' (axiom),
'EnumeratedClass', 'DatatypeProperty' and 'ObjectProperty'.
- 2003/02/09
- 'DatatypeRestriction' was renamed back to 'DataRestriction'
because 'DataRestriction' is consistent with 'ObjectRestriction'
(that is not 'ClassRestriction').
- 2003/02/04
- 'xsd:redefine' element was removed from 'owl1-dl-descriptionGroup.xsd'
in order for the XML Schemas not to use xsd:redefine at all.
This change allowed for the Schemas to be usable for more XML
parsers, because it was reported a couple of XML parsers did
not support the 'redefine' construct of XML Schema. See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Feb/0052.html
- 2003/02/03
- 'Type' element (a child of 'Individual') was renamed back to 'type'
because there are several cases of element names beginning with a small
letter (e.g., SubClassOf/super, and ObjectRestriction/allValuesFrom).
There was no strong reason only for 'type' element to be capitalized.
- 2003/01/30
- 'type' element (a child of 'Individual') was renamed as 'Type'
to be consistent with the naming convention for element names
to begin with a capital letter.
- 2003/01/27
- Individuals in 'SameIndividual', 'DifferentIndividual' and
'EnumeratedClass' were changed from individual constructs to
individual IDs, in order to be consistent with the OWL Abstract Syntax.
- 2003/01/26
- 'Annotation' element was extended as a placeholder of additional
metadata (e.g., Dublin Core Metadata) to meet the requirement
R5 Ontology metadata [http://www.w3.org/TR/webont-req/#req-metadata].
'Annotation' may take elements that can be in any namespace other than the
target namespace 'owls' (i.e., "http://www.w3.org/2003/OWL-XMLSchema").
See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0481.html
- 2003/01/25
- 'Label' element was introduced, in order to meet the requiremnet
R18 User-displayable labels [http://www.w3.org/TR/webont-req/#req-user-labels].
See also (2) in
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0464.html.
- In addition, 'xml:lang' attribute was added to 'Label' and 'Documentation'
elements, in order to meet the requirement of I18N (Internationalization)
in R19. Supporting a character model
[http://www.w3.org/TR/webont-req/#req-character-model].
See also
http://www.w3.org/TR/webont-req/#goal-internationalization.
- 2003/01/24
- The maximum occurence of 'Annotation' element in the 'annotated'
complex type was changed to 1, because the content elements of
the 'Annotation' in itself allows unbounded occurence. Note that
multiple 'Annotation' elements are still allowed as immediate
children of the root ('Ontology') element.
- 2003/01/23
- 'VersionInfo' element was added again because there was not any
strong reason for the removal after all. See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0382.html
- 2003/01/12
- 'VersionInfo' element was removed since it was not included in the
versioning identifier. See also
http://lists.w3.org/Archives/Public/www-webont-wg/2002Dec/0075.html
- Child element 'Annotation' was removed from 'DeprecatedClass' and
'DepricatedProperty' and a class ID and a property ID attribute
were added to 'DeprecatedClass' and 'DepricatedProperty' respectively.
- 2003/01/10
- 'type' of individuals was extended to have arbitrary descriptions
in OWL DL/Full. See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0157.html
- 2003/01/09
- Update of the XML Schemas was posted as
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0152.html
- 2003/01/08
- Elements for ontology versioning were added: DeprecatedClass,
DeprecatedProperty, VersionInfo, PriorVersion, BackwardCompatibleWith.
- The element names 'DataRestriction' and 'IndividualRestriction'
were changed respectively to 'DatatypeRestriction' and 'ObjectRestriction'.
See also http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0140.html.
- 2003/01/07
- Copyright notice was included into all the XML Schema source.
- Namespace URI was changed to "http://www.w3.org/2003/OWL-XMLSchema"
- XML Schema URIs were changes to "http://www.w3.org/2003/owl1-lite.xsd" etc.
- 2003/01/06
- Constraints on property type are incorporated into 'SubPropertyOf'
and 'EquivalentProperties'. See also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0112.html and
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0134.html.
- 2003/01/05
- 'EquivalentClasses' for OWL Lite was revised with restricted
type of non-empty class IDs.
- 2003/01/04
- 'domain' and 'range' (DatatypeProperty and ObjectProperty)
for OWL Lite were reivsed with restricted types: ClassIDType
and DatatypeIDType.
- 2003/01/03
- 'allValuesFrom' and 'someValueFrom' for OWL Lite are revised
with restricted types: ClassIDType and DatatypeIDType.
- 2003/01/01
- 'AnnotationType' was extended to have 'Info' and 'Documentation'
children. The Annotation element was made available for all
the elements specified in the OWL Abstract Syntax. See also:
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0090.html.
- 2002/12/30
- Created on the basis of Peter F. Patel-Schneider's XML presentation
syntax Schema
(
http://lists.w3.org/Archives/Public/www-webont-wg/2002Dec/0249.html ).
See also
http://lists.w3.org/Archives/Public/www-webont-wg/2002Dec/0295.html.