summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-03-19 18:14:35 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-03-19 18:16:22 +0100
commitf2fe05dc9087b1d785e2dedb3b3567f97616e088 (patch)
tree168d2a5fe707eac6bfdc55637e5ec1dec7f59117
downloadontogen-f2fe05dc9087b1d785e2dedb3b3567f97616e088.tar.gz
ontogen-f2fe05dc9087b1d785e2dedb3b3567f97616e088.tar.xz
ontogen-f2fe05dc9087b1d785e2dedb3b3567f97616e088.zip
Use verbatim copy of http://www.kanzaki.com/ns/ns-schema.xsl
Also add an explicit license info as per stylesheet metadata. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--LICENSE1
-rw-r--r--lgpl-2.1.txt502
-rw-r--r--ns-schema.xsl1066
3 files changed, 1569 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..349cae2
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+GNU Lesser General Public License, version 2.1 [see lgpl-2.1.txt]
diff --git a/lgpl-2.1.txt b/lgpl-2.1.txt
new file mode 100644
index 0000000..4362b49
--- /dev/null
+++ b/lgpl-2.1.txt
@@ -0,0 +1,502 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Libraries
+
+ If you develop a new library, and you want it to be of the greatest
+possible use to the public, we recommend making it free software that
+everyone can redistribute and change. You can do so by permitting
+redistribution under these terms (or, alternatively, under the terms of the
+ordinary General Public License).
+
+ To apply these terms, attach the following notices to the library. It is
+safest to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the library's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the library, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+
+ <signature of Ty Coon>, 1 April 1990
+ Ty Coon, President of Vice
+
+That's all there is to it!
diff --git a/ns-schema.xsl b/ns-schema.xsl
new file mode 100644
index 0000000..a6975e6
--- /dev/null
+++ b/ns-schema.xsl
@@ -0,0 +1,1066 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet href="/parts/xsltdoc.xsl" type="text/xsl" media="screen"?>
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
+ <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
+ <!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
+ <!ENTITY dc 'http://purl.org/dc/elements/1.1/'>
+ <!ENTITY ont 'http://purl.org/net/ns/ontology-annot#'>
+ <!ENTITY asserted-class "local-name(.)='Class' or name()='owl:DeprecatedClass' or rdf:type/@rdf:resource='&rdfs;Class' or rdf:type/@rdf:resource='&owl;Class'">
+ <!ENTITY inferred-class "rdfs:subClassOf or parent::rdfs:domain or parent::rdfs:range">
+ <!ENTITY class-cond "&asserted-class; or &inferred-class;">
+ <!ENTITY asserted-prop "contains(local-name(.),'Property') or contains(rdf:type/@rdf:resource,'Property')">
+ <!ENTITY inferred-prop "rdfs:subPropertyOf or rdfs:domain or rdfs:range">
+ <!ENTITY prop-cond "&asserted-prop; or &inferred-prop;">
+]>
+<!--このファイルはUTF-8-->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:rdf="&rdf;"
+ xmlns:rdfs="&rdfs;"
+ xmlns:owl="&owl;"
+ xmlns:h="http://www.w3.org/1999/xhtml"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:dc="&dc;"
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ xmlns:foaf="http://xmlns.com/foaf/0.1/"
+ xmlns:ex="http://purl.org/net/ns/ex#"
+ xmlns:doas="http://purl.org/net/ns/doas#"
+ xmlns:ont="&ont;"
+ xmlns:vs="http://www.w3.org/2003/06/sw-vocab-status/ns#"
+ exclude-result-prefixes="rdf rdfs dc owl dcterms ex doas ont vs"
+>
+
+ <xsl:output indent="yes"/>
+ <xsl:param name="xmlfile"/><!--** target xml file name if the parameter is provided by sysytem -->
+ <!-- avoid Opera error
+ <xsl:variable name="_doas" select="document('')//rdf:Description[1]"/>
+ -->
+
+ <xsl:template name="_doas_description">
+ <rdf:RDF xmlns="http://purl.org/net/ns/doas#">
+ <rdf:Description rdf:about="">
+ <title>RDFS/OWL presentation stylesheet</title>
+ <description>This stylesheet is designed to convert RDF Schema / OWL Ontology file to visible XHTML with structured definition list, with class/property trees as the table of contents.</description>
+ <author rdf:parseType="Resource">
+ <name>Masahide Kanzaki</name>
+ <homepage rdf:resource="http://www.kanzaki.com/"/>
+ </author>
+ <created>2003</created>
+ <release rdf:parseType="Resource">
+ <revision>2.3.8</revision>
+ <created>2010-11-12</created>
+ </release>
+ <rights>(c) 2003-2008 by the author, copyleft under LGPL</rights>
+ <license rdf:resource="http://creativecommons.org/licenses/LGPL/2.1/"/>
+ </rdf:Description>
+ </rdf:RDF>
+ </xsl:template>
+
+
+ <xsl:variable name="classes" select="/rdf:RDF/*[&class-cond;]"/><!--** all class elements -->
+ <xsl:variable name="properties" select="/rdf:RDF/*[&prop-cond;]"/><!--** all property elements -->
+ <!-- find namespace URI -->
+ <xsl:variable name="defns" select="/rdf:RDF/namespace::*[name()='']"/><!--** default namespace URI (Note namespace:: does not work in Mozilla) -->
+
+ <xsl:variable name="nsuri-body"><!--** find namespace uri 'body' (difficult !)-->
+ <xsl:variable name="nstestlen" select="string-length($xmlfile)-9"/><!-- -->
+ <xsl:choose>
+ <!-- if xml:base found, use it -->
+ <xsl:when test="/rdf:RDF/@xml:base">
+ <xsl:value-of select="/rdf:RDF/@xml:base"/>
+ </xsl:when>
+ <!-- if isDefinedBy found, use it -->
+ <xsl:when test="/rdf:RDF/*/rdfs:isDefinedBy">
+ <xsl:value-of select="/rdf:RDF/*/rdfs:isDefinedBy/@rdf:resource"/>
+ </xsl:when>
+ <!-- if $xmlfile provided, use it -->
+ <xsl:when test="$xmlfile != ''">
+ <xsl:choose>
+ <xsl:when test="substring($xmlfile,$nstestlen)='/index.rdf'">
+ <xsl:value-of select="substring($xmlfile,1,$nstestlen)"/>
+ </xsl:when>
+ <!-- otherwise, use xmlfile if possible -->
+ <xsl:otherwise>
+ <xsl:value-of select="$xmlfile"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <!-- if ontology/schema description has non empty rdf:about, use it -->
+ <xsl:when test="starts-with(/rdf:RDF/owl:Ontology/@rdf:about,'http:')">
+ <xsl:value-of select="/rdf:RDF/owl:Ontology/@rdf:about"/>
+ </xsl:when>
+ <!-- if first item of classes or properties has uri with '#', use upto '#' -->
+ <xsl:when test="contains(substring($classes[1]/@rdf:about,2),'#')">
+ <xsl:value-of select="concat(substring-before($classes[1]/@rdf:about,'#'),'#')"/>
+ </xsl:when>
+ <xsl:when test="contains(substring($properties[1]/@rdf:about,2),'#')">
+ <xsl:value-of select="concat(substring-before($properties[1]/@rdf:about,'#'),'#')"/>
+ </xsl:when>
+ <!-- if first item of classes or properties has isDefinedBy, use it -->
+ <xsl:when test="$classes[1]/rdfs:isDefinedBy">
+ <xsl:value-of select="$classes[1]/rdfs:isDefinedBy/@rdf:resource"/>
+ </xsl:when>
+ <xsl:when test="$properties[1]/rdfs:isDefinedBy">
+ <xsl:value-of select="$properties[1]/rdfs:isDefinedBy/@rdf:resource"/>
+ </xsl:when>
+ <!-- if default namespace uri presents, use it -->
+ <xsl:when test="$defns">
+ <xsl:value-of select="$defns"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'unknown'"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="defnspfx">
+ <xsl:choose>
+ <xsl:when test="$defns='&owl;'">owl:</xsl:when>
+ <xsl:when test="$defns='&rdfs;'">rdfs:</xsl:when>
+ <xsl:when test="$defns='&rdf;'">rdf:</xsl:when>
+ </xsl:choose>
+ </xsl:variable>
+
+ <xsl:variable name="termchar" select="substring($nsuri-body,string-length($nsuri-body))"/><!-- length of nsuri-body-->
+ <xsl:variable name="nsuri"><!--** $nsuri-body + '#' if body is not end with '/' -->
+ <!-- <xsl:variable name="nsblen" select="string-length($nsuri-body)"/>length of nsuri-body-->
+ <xsl:choose>
+ <xsl:when test="$termchar='/'">
+ <xsl:choose>
+ <xsl:when test="starts-with($classes[1]/@rdf:about,concat($nsuri-body,'#')) or starts-with($properties[1]/@rdf:about,concat($nsuri-body,'#'))">
+ <!-- case: http://example.org/ns/# -->
+ <xsl:value-of select="concat($nsuri-body,'#')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- case: http://example.org/ns/ -->
+ <xsl:value-of select="$nsuri-body"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="$termchar='#'">
+ <!-- case: http://example.org/ns# -->
+ <xsl:value-of select="$nsuri-body"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- case: http://example.org/ns -->
+ <xsl:value-of select="concat($nsuri-body,'#')"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="localst" select="string-length($nsuri)"/><!--** length of $nsuri -->
+
+ <xsl:variable name="indiv" select="/rdf:RDF/*[not((&class-cond;) or (&prop-cond;) or name(.)='owl:Ontology' or name(.)='ex:Example' or @rdf:about='' or @rdf:about=$nsuri)]"/><!--** all individual elements -->
+
+
+
+ <!--========================== Main processing ==========================-->
+ <xsl:template match="/">
+ <xsl:apply-templates select="rdf:RDF"/>
+ </xsl:template>
+
+ <xsl:template match="rdf:RDF">
+ <!--** to generate root element and common parts, and call main part -->
+ <xsl:variable name="self" select="*[@rdf:about='' or @rdf:about='#' or @rdf:about=$nsuri][*]"/><!--** ontology/schema self description-->
+ <html>
+ <xsl:if test="@xml:lang"><xsl:attribute name="lang"><xsl:value-of select="@xml:lang"/></xsl:attribute></xsl:if>
+ <head>
+ <title><xsl:value-of select="$self/dc:title|$self/rdfs:label"/> - XHTML view</title>
+ <xsl:call-template name="htmlhead"/>
+ </head>
+ <body>
+ <xsl:call-template name="banner"/>
+ <xsl:call-template name="toc"/>
+ <xsl:choose>
+ <xsl:when test="$self">
+ <xsl:apply-templates select="$self" mode="ontelt"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <dl><dt>Namespace</dt><dd><xsl:value-of select="$nsuri"/></dd></dl>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <xsl:call-template name="dummy-for-opera"/>
+ <xsl:call-template name="generalexamples"/>
+
+ <div class="sec">
+ <h2 id="_class_def">Classes</h2>
+ <span class="legend">
+ <span class="owl Class">owl:Class</span>
+ <span class="rdfs Class">rdfs:Class</span>
+ <span class="inferred Class">inferred</span>
+ </span>
+ <xsl:call-template name="cptree">
+ <!-- start with classes that are not subClassOf any other class or subClassOf that is not defined here-->
+ <xsl:with-param name="l" select="$classes[
+ not(rdfs:subClassOf[
+ @rdf:resource = /rdf:RDF/*/@rdf:about or
+ substring(@rdf:resource,2) = /rdf:RDF/*/@rdf:ID or
+ */@rdf:about = /rdf:RDF/*/@rdf:about or
+ substring(*/@rdf:about,2) = /rdf:RDF/*/@rdf:ID
+ ])
+ ]"/>
+ <!--
+ <xsl:with-param name="l" select="$classes[
+ not(rdfs:subClassOf) or
+ (rdfs:subClassOf[ not (
+ owl:Restriction or
+ @rdf:resource = /rdf:RDF/*/@rdf:about or
+ substring(@rdf:resource,2) = /rdf:RDF/*/@rdf:ID or
+ */@rdf:about = /rdf:RDF/*/@rdf:about or
+ substring(*/@rdf:about,2) = /rdf:RDF/*/@rdf:ID)
+ ])
+ ]"/>
+ -->
+ <xsl:with-param name="nest">0</xsl:with-param>
+ <xsl:with-param name="cp">c</xsl:with-param>
+ </xsl:call-template>
+ <dl id="_class_def_list">
+ <xsl:comment>class processing</xsl:comment>
+ <xsl:apply-templates select="$classes" mode="pcproc"/>
+ </dl>
+ </div>
+
+ <div class="sec">
+ <h2 id="_property_def">Properties</h2>
+ <span class="legend">
+ <span class="owl ObjectProperty">Object</span>
+ <span class="owl DatatypeProperty">Datatype</span>
+ <span class="rdf Property">rdf:Prop</span>
+ <span class="inferred Property">inferred</span>
+ </span>
+ <xsl:call-template name="cptree">
+ <xsl:with-param name="l" select="$properties[
+ not(rdfs:subPropertyOf) or
+ (rdfs:subPropertyOf[ not (
+ @rdf:resource = /rdf:RDF/*/@rdf:about or
+ substring(@rdf:resource,2) = /rdf:RDF/*/@rdf:ID or
+ */@rdf:about = /rdf:RDF/*/@rdf:about or
+ substring(*/@rdf:about,2) = /rdf:RDF/*/@rdf:ID)
+ ])
+ ]"/>
+ <xsl:with-param name="nest">0</xsl:with-param>
+ <xsl:with-param name="cp">p</xsl:with-param>
+ </xsl:call-template>
+ <dl id="_prop_def_list">
+ <xsl:comment>property processing</xsl:comment>
+ <xsl:apply-templates select="$properties" mode="pcproc"/>
+ </dl>
+ </div>
+
+ <div class="sec">
+ <xsl:call-template name="findmore">
+ <xsl:with-param name="l" select="$indiv"/>
+ </xsl:call-template>
+ </div>
+
+ <xsl:call-template name="footer">
+ <xsl:with-param name="status">Status: Schema/Ontology updated <xsl:value-of select="owl:Ontology/dcterms:modified"/>. <!--XSLT modified <xsl:value-of select="$_doas/doas:release/doas:created"/>.--> Stylesheet copyleft under GPL.</xsl:with-param>
+ </xsl:call-template>
+ </body>
+ </html>
+ </xsl:template>
+
+ <!--========================== Ontology info processing ==========================-->
+
+ <xsl:template match="*" mode="ontelt">
+ <!--** Description of this ontoloty/schema itself -->
+ <hgroup>
+ <h1><xsl:value-of select="rdfs:label|dc:title|dcterms:title|@dc:title"/></h1>
+ </hgroup>
+ <div class="abstract" id="_descr">
+ <xsl:comment>ontology description</xsl:comment><!--to avoid empty element-->
+ <xsl:apply-templates select="rdfs:comment|dc:description|dcterms:description|@rdfs:comment|@dc:description" mode="ontdesc"/>
+ </div>
+ <script type="text/javascript">
+ var desc = document.getElementById('_descr'); desc.innerHTML= desc.innerHTML.replace(/\n/g,"<br/>"); var pp=desc.getElementsByTagName('p'); for(var i=0; i&lt;desc.length;i++){ pp[i].innerHTML = pp[i].innerHTML.replace(/\n/g,"<br/>"); }
+ </script>
+ <dl>
+ <dt>Namespace</dt>
+ <dd><xsl:value-of select="$nsuri"/></dd>
+ <xsl:apply-templates select="*[not(contains('|comment|description|label|title|',local-name()))]" mode="ontdesc"/>
+<!--
+ <xsl:apply-templates select="ont:created|dcterms:created" mode="ontdesc"/>
+ <xsl:apply-templates select="ont:modified|dcterms:modified" mode="ontdesc"/>
+ <xsl:apply-templates select="dc:date"/>
+ <xsl:apply-templates select="ont:creator|foaf:maker|dc:creator" mode="ontdesc"/>
+ <xsl:apply-templates select="owl:versionInfo" mode="ontdesc"/>
+ <xsl:apply-templates select="owl:priorVersion" mode="ontdesc"/>
+ <xsl:apply-templates select="ont:source|dc:source" mode="ontdesc"/>
+ <xsl:apply-templates select="ont:relation|dc:relation" mode="ontdesc"/>
+-->
+ <xsl:if test="$xmlfile != ''">
+ <dt>Ontology document</dt>
+ <dd><a href="{$xmlfile}"><xsl:value-of select="$xmlfile"/></a></dd>
+ </xsl:if>
+ </dl>
+ </xsl:template>
+
+ <xsl:template match="*" mode="ontdesc">
+ <!--** Annotation properties in ontology/schema description -->
+ <dt title="{name()}"><xsl:value-of select="local-name()"/></dt>
+ <dd><xsl:value-of select="."/></dd>
+ </xsl:template>
+
+ <xsl:template match="*[@rdf:resource]" mode="ontdesc">
+ <!--** source, relation be put hyper link -->
+ <dt title="{name()}"><xsl:value-of select="local-name()"/></dt>
+ <dd>
+ <a href="{@rdf:resource}">
+ <xsl:call-template name="find-label"/>
+ </a>
+ <xsl:apply-templates select="@dc:format"/>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="ont:creator|foaf:maker|dc:creator" mode="ontdesc">
+ <!--** maker (author) of the ontology/schema -->
+ <dt>author</dt>
+ <dd>
+ <xsl:choose>
+ <xsl:when test=".//foaf:homepage">
+ <a href="{.//foaf:homepage/@rdf:resource}"><xsl:call-template name="author-name"/></a>
+ </xsl:when>
+ <xsl:when test=".//rdfs:seeAlso">
+ <a href="{.//rdfs:seeAlso/@rdf:resource}"><xsl:call-template name="author-name"/></a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="author-name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test=".//foaf:mbox">
+ (
+ <xsl:choose>
+ <xsl:when test="starts-with(.//foaf:mbox/@rdf:resource,'mailto:webmaster@kanzaki')">
+ <a href="/info/disclaimer#webmastermail">See contact information</a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href=".//foaf:mbox/@rdf:resource"><xsl:value-of select=".//foaf:mbox/@rdf:resource"/></a>
+ </xsl:otherwise>
+ </xsl:choose>
+ )
+ </xsl:if>
+ </dd>
+ </xsl:template>
+
+ <xsl:template name="author-name">
+ <xsl:choose>
+ <xsl:when test=".//foaf:name">
+ <xsl:value-of select=".//foaf:name[1]"/>
+ <xsl:if test=".//foaf:name[2]">
+ (<xsl:value-of select=".//foaf:name[2]"/>)
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template match="dc:description|rdfs:comment|@rdfs:comment|@dc:description" mode="ontdesc">
+ <!--** Ontology/Schema description property -->
+ <p>
+ <xsl:if test="@xml:lang='ja'"><img src="/parts/ja.png" alt="[ja]"/></xsl:if>
+ <xsl:value-of select="normalize-space(.)"/>
+ </p>
+ </xsl:template>
+
+ <xsl:template match="*[@rdf:parseType='Literal']" mode="ontdesc">
+ <!--** show as literal XML -->
+ <div>
+ <xsl:copy-of select="."/>
+ </div>
+ </xsl:template>
+
+ <!--========================== Common handling ==========================-->
+
+ <xsl:template match="*">
+ <!--** Catch all - general properties handler: displays element name and values as dt/dd, and apply templates for children -->
+ <dt>
+ <xsl:value-of select="name()"/>
+ <xsl:if test="@xml:lang">
+ (@<xsl:value-of select="@xml:lang"/>)
+ </xsl:if>
+ </dt>
+ <dd>
+ <xsl:choose>
+ <xsl:when test="@rdf:parseType='Literal'">
+ <xsl:copy-of select="."/>
+ </xsl:when>
+ <xsl:when test="*|@*[name!='xml:lang']">
+ <dl>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates select="*"/>
+ </dl>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="@*">
+ <!--** Displays attribute name and values as dt/dd-->
+ <dt><xsl:value-of select="name()"/></dt>
+ <dd><xsl:value-of select="."/></dd>
+ </xsl:template>
+
+ <xsl:template match="@rdf:parseType">
+ <!--** ignore parseType-->
+ </xsl:template>
+
+
+ <xsl:template match="@xml:lang">
+ <!--** xml:lang is displayed with element name as (@en) etc. -->
+ </xsl:template>
+
+ <xsl:template match="*[@rdf:resource or @rdf:about]">
+ <!--** If the element has URI ref (rdf:about/rdf:resource), display QName as <dt>, and reference as <dd> by calling href-dispname -->
+ <dt><xsl:value-of select="name()"/></dt>
+ <dd>
+ <xsl:call-template name="href-dispname">
+ <xsl:with-param name="id"><xsl:call-template name="idabout"/></xsl:with-param>
+ <xsl:with-param name="hash" select="'#'"/>
+ </xsl:call-template>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="rdfs:*[@rdf:resource or @rdf:about]" priority="1.0">
+ <!--** RDFS element with URI ref (rdf:about/rdf:resource), display local name as <dt>, and reference as <dd> by calling href-dispname -->
+ <dt><xsl:value-of select="local-name()"/></dt>
+ <dd>
+ <xsl:call-template name="href-dispname">
+ <xsl:with-param name="id"><xsl:call-template name="idabout"/></xsl:with-param>
+ <xsl:with-param name="hash" select="'#'"/>
+ </xsl:call-template>
+ </dd>
+ </xsl:template>
+
+
+ <!--========================== Class/Property processing ==========================-->
+
+ <xsl:template match="rdf:RDF/*[&class-cond; or &prop-cond;]" mode="pcproc">
+ <!--** main temlate: Class and Property definition. Steps: -->
+ <xsl:if test="starts-with(preceding-sibling::node()[2],'****')"> <dt class="group"><xsl:value-of select="normalize-space(translate(preceding-sibling::node()[2],'*',''))"/></dt> </xsl:if> <!--@ get id/about of the term as $id, by calling idabout -->
+ <xsl:variable name="id">
+ <xsl:call-template name="idabout"/>
+ </xsl:variable>
+ <!--@ generates <dt> of the definition by calling elt-dt -->
+ <dt>
+ <xsl:call-template name="elt-dt">
+ <xsl:with-param name="id" select="$id"/>
+ </xsl:call-template>
+ </dt>
+ <!--@ generates <dd> of the definition and shows attributes of definition as sub <dl> -->
+ <dd>
+ <dl>
+ <!--@ _ rdfs:comment of the term -->
+ <xsl:comment><xsl:value-of select="local-name()"/></xsl:comment><!-- to avoid empty <dl/> -->
+ <!--@ _ apply templates for children other than id/about or label or type -->
+ <xsl:apply-templates select="@*[not(name()='rdf:about' or name()='rdf:ID' or name()='rdfs:label')]"/>
+ <xsl:apply-templates select="*[not(name()='rdfs:label' or name()='rdf:type')]"/>
+ <!--@ _ check if in domain/range of any property by calling domain-range -->
+ <xsl:call-template name="domain-range">
+ <xsl:with-param name="nodes" select="$properties[rdfs:domain/@rdf:resource=concat('#',$id) or rdfs:domain/@rdf:resource=concat($nsuri,$id)]"/>
+ <xsl:with-param name="type" select="'domain'"/>
+ </xsl:call-template>
+ <xsl:call-template name="domain-range">
+ <xsl:with-param name="nodes" select="$properties[rdfs:range/@rdf:resource=concat('#',$id) or rdfs:range/@rdf:resource=concat($nsuri,$id)]"/>
+ <xsl:with-param name="type" select="'range'"/>
+ </xsl:call-template>
+ </dl>
+ </dd>
+ </xsl:template>
+
+ <xsl:template name="domain-range">
+ <!--** finds if a class is in-domain-of or in-range-of any property -->
+ <xsl:param name="nodes"/>
+ <xsl:param name="type"/>
+ <xsl:if test="$nodes != ''">
+ <dt>in <xsl:value-of select="$type"/> of</dt>
+ <dd>
+ <xsl:for-each select="$nodes">
+ <xsl:call-template name="href-dispname">
+ <xsl:with-param name="id"><xsl:call-template name="idabout"/></xsl:with-param>
+ <xsl:with-param name="hash" select="'#'"/>
+ </xsl:call-template>
+ ;
+ </xsl:for-each>
+ </dd>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="rdfs:domain[@rdf:resource]|rdfs:range[@rdf:resource]|rdfs:subClassOf[@rdf:resource]|rdfs:subPropertyOf[@rdf:resource]" priority="2.0">
+ <!--** domain, range, subClassOf, subPropertyOf treated specially -->
+ <dt class="essential" title="{name()}"><xsl:value-of select="local-name()"/></dt>
+ <dd class="essential">
+ <xsl:call-template name="href-dispname">
+ <xsl:with-param name="id"><xsl:call-template name="idabout"/></xsl:with-param>
+ <xsl:with-param name="hash" select="'#'"/>
+ </xsl:call-template>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="rdfs:seeAlso[@rdf:resource or */@rdf:about]|ont:relation" priority="2.0">
+ <!--** more info -->
+ <dt title="{name()}"><xsl:value-of select="local-name()"/></dt>
+ <dd>
+ <a href="{@rdf:resource|*/@rdf:about}">
+ <xsl:call-template name="find-label"/>
+ </a>
+ </dd>
+ </xsl:template>
+
+ <xsl:template match="@dc:format">
+ (<xsl:value-of select="."/>)
+ </xsl:template>
+
+ <xsl:template match="*/rdfs:label|*/@rdfs:label" mode="heading">
+ <!--** Labels of class/property will be shown in a [] blacket for heading. -->
+ <span class="label"> [<xsl:value-of select="."/>]</span>
+ </xsl:template>
+
+ <xsl:template match="*/rdfs:label|*/@rdfs:label">
+ <!--** do noting for rdfs:label if not heading mode. -->
+ </xsl:template>
+
+ <xsl:template match="ex:example">
+ <!--** Show examples provided in a term definition. Note general examples (top level ex:Example) are treated by named template 'generalexamples' -->
+ <dt>Example</dt>
+ <dd>
+ <xsl:if test=".//dc:description"><p><xsl:value-of select=".//dc:description"/></p></xsl:if>
+ <div class="example"><pre class="ex {.././@rdf:ID}"><xsl:value-of select=".//ex:code"/></pre></div>
+ </dd>
+ </xsl:template>
+
+
+ <!--=========== named templates ============-->
+
+ <xsl:template name="toc">
+ <!--** head table of contents with number of Classes and /Proprties -->
+ <p>
+ <xsl:if test="/rdf:RDF/ex:Example"><a href="#_ex_usage">Example</a> (<xsl:value-of select="count(/rdf:RDF/ex:Example)"/>) | </xsl:if>
+ <a href="#_class_def">Class</a> (<xsl:value-of select="count($classes)"/>) |
+ <a href="#_property_def">Property</a> (<xsl:value-of select="count($properties)"/>)
+ <xsl:if test="$indiv"> | <a href="#_individual_def">Individuals</a> (<xsl:value-of select="count($indiv)"/>)</xsl:if>
+ </p>
+ <p id="ie-notice">This is an XHTML presentation of an RDF/XML file via XSLT. Internet Explorer user might not be able to view source, but still can save the RDF from file menu. </p>
+ <script type="text/javascript">//<![CDATA[
+if(navigator.userAgent.indexOf('MSIE') != -1) document.getElementById('ie-notice').style.display = 'block';
+ //]]></script>
+ </xsl:template>
+
+ <xsl:template name="find-label">
+ <!--** finds label of a term from rdfs:label, dc:title or just its uri -->
+ <xsl:choose>
+ <xsl:when test="@rdfs:label or @dc:title">
+ <xsl:value-of select="@rdfs:label|@dc:title"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@rdf:resource"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="namespace">
+ <!--** displays namespace information -->
+ <dt>Namespace</dt>
+ <dd>
+ <xsl:choose>
+ <xsl:when test="@xml:base"><xsl:value-of select="@xml:base"/>#</xsl:when>
+ <xsl:when test="$xmlfile"><xsl:value-of select="$xmlfile"/># (guess from source)</xsl:when>
+ <xsl:otherwise>unknown</xsl:otherwise>
+ </xsl:choose>
+ </dd>
+ </xsl:template>
+
+ <xsl:template name="dummy-for-opera">
+ <!--Opera cannot process a template after xsl:choose ??? it ignores generalexample if without this dummy template -->
+ </xsl:template>
+
+ <xsl:template name="generalexamples">
+ <!--** generates example sections from top level ex:Example. Note examples in term definition will be treated by match template. -->
+ <xsl:variable name="ex" select="./*[local-name()='Example']"/>
+ <xsl:variable name="exc" select="count($ex)"/>
+ <xsl:if test="$ex">
+ <div class="sec">
+ <h2 id="_ex_usage">Example<xsl:if test="$exc &gt; 1">s</xsl:if></h2>
+ <xsl:for-each select="$ex">
+ <xsl:if test="$exc &gt; 1"><h3>Example <xsl:value-of select="position()"/></h3></xsl:if>
+ <!--@ description of this example -->
+ <p><xsl:value-of select="rdfs:comment|dc:description"/></p>
+ <p><img src="/parts/ja.png" alt="[ja]"/> <xsl:value-of select="rdfs:comment[@xml:lang='ja']|dc:description[@xml:lang='ja']"/>
+ <xsl:apply-templates select="ex:pfx"/></p>
+
+ <!--@ link to trial example (e.g. web app) -->
+ <xsl:if test="ex:trial">
+ <p>Try example(s) at <a href="{ex:trial/@rdf:resource}"><xsl:value-of select="ex:trial/@rdf:resource"/></a> .</p>
+ </xsl:if>
+ <!--@ h:img comes before code example -->
+ <xsl:if test="h:img">
+ <p><img src="{h:img/@rdf:resource}"/></p>
+ </xsl:if>
+ <!--@ code example -->
+ <div class="example"><pre class="{ex:pfx}"><xsl:value-of select="ex:code"/></pre></div>
+ <!--@ link to related documents -->
+ <xsl:if test="ont:relation">
+ <p>related resouce(s):
+ <xsl:for-each select="ont:relation">
+ <a href="{@rdf:resource}"><xsl:value-of select="@rdfs:label|rdfs:label"/></a>;
+ </xsl:for-each>
+ </p>
+ </xsl:if>
+ <!--@ ex:image comes after code example -->
+ <xsl:if test="ex:image">
+ <p>
+ <xsl:choose>
+ <xsl:when test="ex:image/foaf:Image">
+ See <a href="{ex:image/foaf:Image/@rdf:about}"><xsl:value-of select="ex:image/foaf:Image/@rdfs:label"/></a>.
+ </xsl:when>
+ <xsl:otherwise><img src="{ex:image/@rdf:resource}"/></xsl:otherwise>
+ </xsl:choose>
+ </p>
+ </xsl:if>
+ </xsl:for-each>
+ </div>
+ </xsl:if>
+ </xsl:template>
+
+ <!-- for example prefix -->
+ <xsl:template match="ex:pfx">
+ <br/>(Note: vocabulary of this schema represented with prefix <strong><xsl:value-of select="."/></strong>)
+ </xsl:template>
+
+
+ <xsl:template name="topnode">
+ <!--** TEST for root of class/propety tree that is just referred by @rdf:resource. Steps: -->
+ <xsl:param name="l"/><!--** list of subClassOf/subPropertyOf nodes -->
+ <xsl:param name="cp"/><!--** whether class or property -->
+ <ul>
+ <xsl:for-each select="$l">
+ <xsl:sort select="@rdf:resource"/>
+ <xsl:variable name="p" select="position()"/>
+<!--
+ <xsl:value-of select="$p"/>:<xsl:value-of select="$l[$p]/@rdf:resource"/> (<xsl:value-of select="$p+1"/>):<xsl:value-of select="$l[$p+1]/@rdf:resource"/><br/>
+-->
+ <xsl:if test="$l[$p]/@rdf:resource != $l[$p+1]/@rdf:resource">
+ <!--@@ソートして、次のノードとの比較で同じでなければ処理することで重複を回避できると思ったが、うまくいかない。$pはソート後のコンテキスト位置だが、$l自身の順序は元のままなので、これではソートしていないのと同じこと。ソート後の順序で「次」のノードにアクセスする方法はないものか-->
+ <xsl:variable name="r" select="$l[$p]/@rdf:resource"/>
+ <li>
+ <xsl:value-of select="$r"/>
+ <xsl:choose>
+ <xsl:when test="$cp='c'">
+ <xsl:call-template name="cptree">
+ <xsl:with-param name="l" select="$classes[rdfs:subClassOf/@rdf:resource=$r]"/>
+ <xsl:with-param name="nest" select="1"/>
+ <xsl:with-param name="cp" select="$cp"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="cptree">
+ <xsl:with-param name="l" select="$properties[rdfs:subPropertyOf/@rdf:resource=$r]"/>
+ <xsl:with-param name="nest" select="1"/>
+ <xsl:with-param name="cp" select="$cp"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </xsl:if>
+ </xsl:for-each>
+ </ul>
+
+ </xsl:template>
+
+ <xsl:template name="cptree">
+ <!--** displays Classes/Proprties as a tree with links to their definitions. Starts with those that (1)do not have any subClassOf/subPropertyOf construct with @rdf:ersource or (2)have subClassOf/subPropertyOf whose object is not defined in top level (i.e. external). Steps: -->
+ <xsl:param name="l"/><!--** list of classes/properties -->
+ <xsl:param name="nest"/><!--** nest level to avoid infinit loop -->
+ <xsl:param name="cp"/><!--** whether class or property -->
+ <xsl:if test="count($l)">
+ <!--@ If $l has any class or property, then generate <ul> list.-->
+ <ul>
+ <xsl:for-each select="$l">
+ <!--@ For each member of the list as <li>, -->
+ <xsl:choose>
+ <xsl:when test="not(starts-with(local-name(),'Deprecate'))">
+ <!--<xsl:sort select="@rdf:resource"/>@rdf:resourceだけで上位を参照しているものの整理が必要@@@@-->
+ <xsl:variable name="id">
+ <xsl:call-template name="idabout"/>
+ </xsl:variable>
+ <li>
+ <!--@ _ determine the link target from ID or about, and set hyperlink to the class/property description in this presentation, by calling href-dispname -->
+ <xsl:call-template name="href-dispname">
+ <xsl:with-param name="id" select="$id"/>
+ </xsl:call-template>
+
+ <!--@ _ call this template recursively with parameter of list of classes/properties that are subClassOf/subPropertyOf this item, provided the nest level is within the limit-->
+ <xsl:variable name="myrefid">
+ <xsl:choose>
+ <xsl:when test="substring($id,1,1)='!'"><xsl:value-of select="substring($id,2)"/></xsl:when>
+ <xsl:otherwise>#<xsl:value-of select="$id"/></xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="longrefid" select="concat($nsuri,$id)"/>
+
+ <xsl:choose>
+ <xsl:when test="$nest &gt; 8"></xsl:when>
+ <xsl:when test="$cp='c'">
+ <xsl:call-template name="cptree">
+ <xsl:with-param name="l" select="$classes[rdfs:subClassOf[
+ @rdf:resource=$myrefid or
+ @rdf:resource=$longrefid or
+ */@rdf:about=$myrefid or
+ */@rdf:about=$longrefid]
+ ]"/>
+ <xsl:with-param name="nest" select="$nest + 1"/>
+ <xsl:with-param name="cp" select="$cp"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="cptree">
+ <xsl:with-param name="l" select="$properties[rdfs:subPropertyOf[
+ @rdf:resource=$myrefid or
+ @rdf:resource=$longrefid or
+ */@rdf:about=$myrefid or
+ */@rdf:about=$longrefid]
+ ]"/>
+ <xsl:with-param name="nest" select="$nest + 1"/>
+ <xsl:with-param name="cp" select="$cp"/>
+ </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
+ </li>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:comment><xsl:value-of select="local-name()"/></xsl:comment><!-- avoid blank ul -->
+ </xsl:otherwise>
+ </xsl:choose><!-- end of if not deprecate-->
+ </xsl:for-each>
+ </ul>
+ </xsl:if>
+ </xsl:template>
+
+
+
+ <xsl:template name="findmore">
+ <!--** find and listup definitions with unexpected sytax or individuals -->
+ <xsl:param name="l"/>
+ <xsl:if test="$l">
+ <h2 id="_individual_def">Other Descriptions and Individuals</h2>
+ <dl>
+ <xsl:for-each select="$l">
+ <dt>
+ <xsl:call-template name="elt-dt">
+ <xsl:with-param name="id"><xsl:call-template name="idabout"/></xsl:with-param>
+ <xsl:with-param name="c">more-elt </xsl:with-param>
+ </xsl:call-template>
+ </dt>
+ <dd><dl>
+ <!--
+ <xsl:if test="not(namespace-uri()='&rdf;' and local-name()='Description')">
+ <dt>rdf:type</dt><dd class="rdftype"><xsl:value-of select="name()"/></dd>
+ </xsl:if>
+ -->
+ <xsl:apply-templates select="@*[not(name()='rdf:ID' or name()='rdf:about')]|*"/>
+ </dl></dd>
+ </xsl:for-each>
+ </dl>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template name="idabout">
+ <!--** assign name with local/outer information. Steps: -->
+ <xsl:choose>
+ <!--@ if @rdf:ID presents, use it -->
+ <xsl:when test="@rdf:ID">
+ <xsl:value-of select="@rdf:ID"/>
+ </xsl:when>
+
+ <!--@ else if @rdf:about or @rdf:resource presents, switch: -->
+ <xsl:when test="@rdf:about or @rdf:resource">
+ <xsl:variable name="ref" select="@rdf:about|@rdf:resource"/>
+ <xsl:choose>
+ <!--@ _case: blank uri = self -->
+ <xsl:when test="$ref=''">(self)</xsl:when>
+ <!--@ _case: starts-with '#' = local vocab. trim '#' and return local name only -->
+ <xsl:when test="starts-with($ref,'#')">
+ <xsl:value-of select="substring($ref,2)"/>
+ </xsl:when>
+ <!--@ _case: outside uri or nsuri itself = add ! before uri as a mark -->
+ <xsl:when test="not(contains($ref,$nsuri)) or $ref=$nsuri">
+ <xsl:value-of select="concat('!',$ref)"/>
+ </xsl:when>
+<!--
+ <xsl:when test="contains($ref,'#')">
+ <xsl:value-of select="substring-after($ref,'#')"/>
+ </xsl:when>
+-->
+ <!--@ _otherwise: local vocab. return local name (after nsuri) -->
+ <xsl:otherwise>
+ <xsl:value-of select="substring($ref,$localst + 1)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+
+ <!--@ else if @rdf:nodeID presents, use it with bnode prefix '_:' before nodeID -->
+ <xsl:when test="@rdf:nodeID">
+ <xsl:value-of select="concat('_:',@rdf:nodeID)"/>)
+ </xsl:when>
+
+ <!--@ otherwise, return string (anonymous) -->
+ <xsl:otherwise>(anonymous)</xsl:otherwise>
+ </xsl:choose>
+
+ </xsl:template>
+
+ <xsl:template name="elt-dt">
+ <!--** determines class and id of the node for <dt> element. Steps: -->
+ <xsl:param name="id"/>
+ <xsl:param name="c"/>
+ <!--@ test for the type (asserted Class, inferred Property etc. -->
+ <xsl:variable name="class">
+ <xsl:value-of select="$c"/>
+ <xsl:value-of select="translate(name(),':',' ')"/>
+ <xsl:if test="rdf:type">
+ <xsl:variable name="tns" select="concat(substring-before(rdf:type/@rdf:resource,'#'),'#')"/>
+ <xsl:if test="$tns='&owl;'"> owl</xsl:if>
+ <xsl:if test="$tns='&rdfs;'"> rdfs</xsl:if>
+ <xsl:value-of select="concat(' ',substring-after(rdf:type/@rdf:resource,'#'))"/>
+ </xsl:if>
+ <xsl:if test="(&inferred-class;) and not(&asserted-class;)"> inferred Class</xsl:if>
+ <xsl:if test="(&inferred-prop;) and not(&asserted-prop;)"> inferred Property</xsl:if>
+ <xsl:if test="not(@rdf:ID) and not(starts-with(@rdf:about,$nsuri)) and not(starts-with(@rdf:about,'#'))">
+ <xsl:text> outer</xsl:text>
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="errorclass">
+ <!-- because IE doesn't recognize selector like td.Class.Property-->
+ <xsl:if test="contains($class,'Class') and contains($class,'Property')"> error</xsl:if>
+ </xsl:variable>
+
+ <!--@ and assign the tyep as @class attribute. -->
+ <xsl:attribute name="class"><xsl:value-of select="concat($class,$errorclass)"/></xsl:attribute>
+ <!--@ set @id attribute and display name by calling id-dispname. -->
+ <xsl:call-template name="id-dispname">
+ <xsl:with-param name="id" select="$id"/>
+ </xsl:call-template>
+
+ <!--@ assign label -->
+ <xsl:apply-templates select="rdfs:label|@rdfs:label" mode="heading"/>
+ <!--@ show icon if status is testing or unstable -->
+ <xsl:if test="vs:term_status or @vs:term_status">
+ <xsl:choose>
+ <xsl:when test="vs:term_status='testing' or @vs:term_status='testing'">
+ <img class="term_status" src="/parts/construction.gif" alt="testing term"/>
+ </xsl:when>
+ <xsl:when test="vs:term_status='unstable' or @vs:term_status='unstable'">
+ <img class="term_status" src="/parts/watchout.gif" alt="unstable term"/>
+ </xsl:when>
+ <xsl:when test="vs:term_status='deprecated' or @vs:term_status='deprecated'">
+ <img class="term_status" src="/parts/deprecated.gif" alt="deprecated term"/>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:if>
+ <!--@ and show class/property type -->
+ <xsl:variable name="tpfx">
+ <xsl:choose>
+ <xsl:when test="contains($class,'inferred Class')">rdfs:</xsl:when>
+ <xsl:when test="contains($class,'inferred Property')">rdf:</xsl:when>
+ <xsl:when test="contains($class,'owl')">owl:</xsl:when>
+ <xsl:when test="contains($class,'rdfs')">rdfs:</xsl:when>
+ <xsl:when test="contains($class,'rdf')">rdf:</xsl:when>
+ <xsl:when test="$defnspfx != ''"><xsl:value-of select="$defnspfx"/></xsl:when><!--(Note namespace:: does not work in Mozilla)-->
+ </xsl:choose>
+ </xsl:variable>
+ <span class="cp-type">
+ <xsl:choose>
+ <!--@ _ alert if the term is both Class and Property (inferred) -->
+ <xsl:when test="contains($class,'Class') and contains($class,'Property')">
+ <!-- inconsistent Class/Property -->
+ <span class="error">Class as well as Property ?</span>
+ </xsl:when>
+ <xsl:when test="name()='Class' or name()='Property'">
+ <!-- default ns Class/Property -->
+ <xsl:value-of select="concat($tpfx,name())"/>
+ </xsl:when>
+ <xsl:when test="contains(name(),'Class') or contains(name(),'Property')">
+ <!-- explicit ns Class/Property -->
+ <xsl:value-of select="name()"/>
+ </xsl:when>
+ <xsl:when test="contains($class,'inferred')">
+ <!-- inferred Class/Property -->
+ <span class="inferred">
+ <xsl:choose>
+ <xsl:when test="contains($class,'Class')"><xsl:value-of select="$tpfx"/>Class</xsl:when>
+ <xsl:otherwise>rdf:Property</xsl:otherwise>
+ </xsl:choose>
+ </span>
+ </xsl:when>
+ <xsl:when test="contains($class,'Class')"><xsl:value-of select="$tpfx"/>Class</xsl:when>
+ <xsl:when test="contains($class,'Property')"><xsl:value-of select="$tpfx"/>Property</xsl:when>
+ <xsl:otherwise><xsl:value-of select="name()"/></xsl:otherwise>
+ </xsl:choose>
+ <xsl:call-template name="owltypes"/>
+ </span>
+ </xsl:template>
+
+ <xsl:template name="id-dispname">
+ <!--** gives id attribute and display name. Steps: -->
+ <xsl:param name="id"/>
+
+ <!--@ generate id attribute by calling idhref-attr (attr='id'). -->
+ <xsl:call-template name="idhref-attr">
+ <xsl:with-param name="id" select="$id"/>
+ <xsl:with-param name="attr" select="'id'"/>
+ </xsl:call-template>
+
+ <!--@ and give the name of the term, by calling idhref-term. -->
+ <xsl:call-template name="idhref-term">
+ <xsl:with-param name="id" select="$id"/>
+ </xsl:call-template>
+ </xsl:template>
+
+ <xsl:template name="href-dispname">
+ <!--** gives href attribute and display name. Staps: -->
+ <xsl:param name="id"/>
+ <xsl:param name="hash"/>
+ <!--xsl:value-of select="concat('{',$id,'}')"/-->
+ <xsl:choose>
+ <!--@ if $id starts with '!' or '(', outer reference. Just present uri (no link)-->
+ <xsl:when test="starts-with($id,'!') or starts-with($id,'(')">
+ <xsl:call-template name="idhref-term">
+ <xsl:with-param name="id" select="$id"/>
+ </xsl:call-template>
+ </xsl:when>
+ <!--@ else it is local term. -->
+ <xsl:otherwise>
+ <!--@ _ create a link to local term definition, by calling idhref-attr (attr='href'). -->
+ <a>
+ <xsl:call-template name="idhref-attr">
+ <xsl:with-param name="id" select="$id"/>
+ <xsl:with-param name="attr" select="'href'"/>
+ <xsl:with-param name="hash" select="'#'"/>
+ </xsl:call-template>
+<!--
+ <xsl:if test="starts-with($id,'!')">
+ <xsl:attribute name="class">outer</xsl:attribute>
+ </xsl:if>
+-->
+ <!--@ _ and the name of the term (with $hash before it), by calling idhref-term. -->
+ <xsl:call-template name="idhref-term">
+ <xsl:with-param name="id" select="$id"/>
+ <xsl:with-param name="hash" select="$hash"/>
+ </xsl:call-template>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="idhref-attr">
+ <!--** generates id or href attribute. Steps: -->
+ <xsl:param name="id"/>
+ <xsl:param name="attr"/>
+ <xsl:param name="hash"/>
+
+ <!--@geneates attribute, according to param 'attr', and switch:-->
+ <xsl:attribute name="{$attr}">
+ <xsl:choose>
+ <!--@ _case: starts-with '!' or '(' = not local name, so assing id by generate-id()-->
+ <xsl:when test="starts-with($id,'!') or starts-with($id,'(')">
+ <xsl:value-of select="concat($hash,generate-id(.))"/>
+ </xsl:when>
+ <!--@ _case: starts-with '_:' = blank node. use nodeID as html id -->
+ <xsl:when test="starts-with($id,'_:')">
+ <xsl:value-of select="concat($hash,substring($id,3))"/>
+ </xsl:when>
+ <!--@ _otherwise: use id as html id -->
+ <xsl:otherwise>
+ <xsl:value-of select="concat($hash,$id)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+
+ </xsl:template>
+
+ <xsl:template name="idhref-term">
+ <!--** give a display label to a term based on its id. Steps: -->
+ <xsl:param name="id"/>
+ <xsl:param name="hash"/>
+ <!--@switch:-->
+ <xsl:choose>
+ <!--@ _case: starts-with '!' = not local name, so just use whole uri as label-->
+ <xsl:when test="substring($id,1,1)='!'">
+ <xsl:value-of select="substring($id,2)"/>
+ </xsl:when>
+ <!--@ _case: (self) = document itself, so use $nsuri as label-->
+ <xsl:when test="$id='(self)'">
+ <xsl:value-of select="$nsuri"/>
+ </xsl:when>
+ <!--@ otherwise: local name, so use ($hash +) $id as label-->
+ <xsl:otherwise>
+ <xsl:value-of select="concat($hash,$id)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+ <xsl:template name="owltypes">
+ <!--** find if any of the term's rdf:types comes from owl: namespace -->
+ <xsl:for-each select="./rdf:type/@rdf:resource">
+ <xsl:if test="contains(.,'&owl;')">
+ <xsl:value-of select="concat(', owl:', substring-after(.,'#'))"/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="htmlhead">
+ <!--** Generates some XHTML head elements, especially style sheet and javascript -->
+ <link rel="stylesheet" href="/parts/kan01.css" type="text/css" />
+ <xsl:if test="/rdf:RDF/ex:Example"><link rel="bookmark" href="#_ex_usage" /></xsl:if>
+ <xsl:if test="$classes"><link rel="bookmark" href="#_class_def" /></xsl:if>
+ <xsl:if test="$properties"><link rel="bookmark" href="#_property_def" /></xsl:if>
+ <xsl:if test="$indiv"><link rel="bookmark" href="#_individual_def" /></xsl:if>
+ <style type="text/css">/*<![CDATA[*/
+.Class, .Property, .DatatypeProperty, .ObjectProperty, .AnnotationProperty, .FunctionalProperty, .InverseFunctionalProperty, .more-elt,.DeprecatedClass, .DepricatedProperty {padding:0.4em; width:100%; border-width: 1px; border-style: dashed; position:relative; margin-top: 1.5em}
+
+/* solid border=owl names, dashed border: rdf(s) names */
+.rdfs, .rdf {border-style:dashed}
+.owl {border-style:solid}
+
+.Class {background:#fee; border-color: maroon}
+.Property, .DatatypeProperty, .AnnotationProperty {background:#eef; border-color: navy}
+.ObjectProperty, /*.FunctionalProperty,*/ .InverseFunctionalProperty {background:#cdf; border-color: navy; border:#33c 1px solid}
+.DeprecatedClass, .DeprecatedProperty {color: gray; border:none; background:#eee}
+
+.more-elt {background:#eee; border-color: green; border-style: solid}
+ /*.DatatypeProperty {border:#88f 1px solid}*/
+
+dt.inferred, .legend span.inferred {/*border-color:silver;*/background-color:white}
+/*dt.Class.Property*/ dt.error {border: red 2px solid}
+span.inferred {color: gray}
+.label {font-weight: normal; color: #555}
+.cp-type {font-weight: normal; font-size:90%; color: maroon; position:absolute; right:20px}
+.outer .cp-type {color: gray}
+dd dt {font-weight: normal; color: #060}
+dt.essential {font-weight:bold}
+dd.rdftype {color:maroon}
+.abstract {border: dotted 1px gray; padding: 0 1em}
+.abstract p {line-height: 1.4}
+pre b {color:#b00; font-weight:normal}
+pre .comment {color:#3a3}
+dt.outer {border:none; color:gray; font-weight:normal}
+a.outer {color: #66a}
+img.term_status {position:absolute; right:1px}
+/*dd.dr {color:#00c}*/
+#ie-notice {background: #efe; padding: 0.5em; display:none}
+div.sec {border-top: silver 1px dashed; margin-top: 3em}
+div.sec h2 {margin-top: 1em; font-size:1.75em}
+p {line-height: 1.3}
+dt.group {font-size:1.6em; color: navy; margin-top:1.5em}
+span.legend {font-size:0.7em; float:right; line-height:1; } span.legend span {display:block; float:left; margin:2px; width:4em; height:1em}
+/* ]]>*/</style>
+ <script type="text/javascript" src="/ns/ns-schema.js">//</script>
+ </xsl:template>
+
+
+ <xsl:include href="../parts/banner-footer.xsl"/>
+
+</xsl:stylesheet>