11 June 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]
-
OWL Web Ontology Language Guide.
Michael K. Smith, Chris Welty, and Deborah L. McGuinness.
W3C Working Draft, 31 March 2003,
http://www.w3.org/TR/owl-guide/
- [OWL Reference]
-
OWL Web Ontology Language Reference.
Mike Dean and Guus Schreiber (eds.).
W3C Working Draft, 31 March 2003,
http://www.w3.org/TR/owl-ref/
- [OWL Requirement]
-
Web Ontology Language (OWL) Use Cases and Requirements.
Jeff Heflin (ed.). W3C Working Draft, 31 March 2003,
http://www.w3.org/TR/webont-req/
- [OWL Semantics]
-
OWL Web Ontology Language Semantics and Abstract Syntax.
Peter F. Patel-Schneider, Patrick Hayes, and Ian Horrocks (eds.).
W3C Working Draft, 31 March 2003,
http://www.w3.org/TR/owl-semantics/
- [RDF Schema]
-
RDF Vocabulary Description Language 1.0: RDF Schema. Dan Brickley and R.V. Guha.
W3C Working Draft 23 January 2003,
http://www.w3.org/TR/rdf-schema/
- [RDF/XML Syntax]
-
RDF/XML Syntax Specification (Revised).
Dave Beckett (ed.).
W3C Working Draft, 23 January 2003,
http://www.w3.org/TR/rdf-syntax-grammar
- [XHTML m12n]
-
Modularization of XHTML in XML Schema.
Daniel Austin, Shane McCarron, and Masayasu Ishikawa (eds.).
W3C Working Draft, 9 December 2002,
http://www.w3.org/TR/xhtml-m12n-schema
- [XMLSchema-1]
-
XML Schema Part 1: Structures.
Henry S. Thompson, David Beech, Murray Maloney, and Noah Mendelsohn (eds.).
W3C Recommendation, 2 May 2001,
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
- [XMLSchema-2]
-
XML Schema Part 2: Datatypes.
Henry S. Thompson, David Beech, Murray Maloney, and Noah Mendelsohn (eds.).
W3C Recommendation, 2 May 2001,
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/
Appendix F. Change Log
- 2003/06/01
- Abstract of this document was revised to clarify this document is to
provide OWL's XML Presentation Syntax rather that serialization syntax.
See also http://lists.w3.org/Archives/Public/www-webont-wg/2003May/0370.html.
In addition, the convention of a namespace prefix for the XML Presentation
Syntax was changed from 'owls' to 'owlx'.
- 2003/05/07
- Details of document style have been corrected to follow the
W3C's publication rules.
- 2003/03/27
- 'value' element, which corresponds to 'owl:hasValue', was
renamed 'hasValue', so that the declarations of cardinality
restrictions can be fully compatible with the RDF/XML syntax.
- 2003/03/25
- 'cardinality' element (with 'minValue', 'maxValue' and 'value'
attributes) was removed, and 'minCardinality', 'maxCardinality'
and 'cardinality' (all solely with 'value' attribute) was added
so that multiple cardinality values can be appropriately
prohibited for OWL Lite.
- 2003/03/17
- 'cardinality' element and its 'minValue', 'maxValue' and 'value'
attributes were introduced; and 'minCardinality', 'maxCardinality' and
'cardinality' attributes of 'DataRestriction' and 'ObjectRestriction'
were removed instead. On the basis of these revisions, syntax of
content elements for 'DataRestriction' and 'ObjectRestriction' was
revised in accordance with the changes in the OWL Abstract Syntax (see also
http://lists.w3.org/Archives/Public/www-webont-wg/2003Mar/0064.html).
That is, the restrections for OWL Lite was changed to eliminate to
have exactly one component, while those for OWL DL and Full were changed
to allow to have at least one component.
- 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, since
it cannot be mapped on any construct in the RDF/XML syntax.
- 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/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'. 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.
- 2003/01/25
- '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.
- 2003/01/12
- 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,
including an XSLT stylesheet that transforms OWL in XML syntax to
RDF/XML syntax. The stylesheet was created by Jérôme Euzenat
(
http://lists.w3.org/Archives/Public/www-webont-wg/2003Jan/0125.html).
- 2003/01/08
- Elements for ontology versioning were added: DeprecatedClass,
DeprecatedProperty, VersionInfo, PriorVersion, BackwardCompatibleWith.
- 2003/01/08
- 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/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
- On the basis of the XML presentation syntax schema created by
Peter F. Patel-Schneider
(
http://lists.w3.org/Archives/Public/www-webont-wg/2002Dec/0249.html),
the XML schema was modularized for OWL Lite/DL/Full by Masahiro Hori
(
http://lists.w3.org/Archives/Public/www-webont-wg/2002Dec/0295.html).