Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Web Ontology Language
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Examples=== * The W3C OWL 2 Web Ontology Language provides syntax examples.<ref name="owl2.primer">{{cite web |url=http://www.w3.org/TR/2009/REC-owl2-primer-20091027/ |title=OWL 2 Web Ontology Language Primer |last1=Hitzler |first1=Pascal |author-link1=Pascal Hitzler |last2=Krötzsch |first2=Markus |author-link2=Markus Krötzsch |last3=Parsia |first3=Bijan |last4=Patel-Schneider |first4=Peter F. |last5=Rudolph |first5=Sebastian |author-link5=Sebastian Rudolph |date=2009-10-27 |work=OWL 2 Web Ontology Language |publisher=World Wide Web Consortium |access-date=15 October 2013}}</ref> ====Tea ontology==== Consider an ontology for tea based on a Tea class. First, an ontology identifier is needed. Every OWL ontology must be identified by a [[URI]]{{Citation needed|date=December 2024}} (<nowiki>http://www.example.org/tea.owl</nowiki>, say). This example provides a sense of the syntax. To save space below, preambles and prefix definitions have been skipped. ;OWL2 Functional Syntax: <syntaxhighlight lang="turtle"> Ontology(<http://example.org/tea.owl> Declaration( Class( :Tea ) ) ) </syntaxhighlight> ;OWL2 XML Syntax: <syntaxhighlight lang="xml"> <Ontology ontologyIRI="http://example.org/tea.owl" ...> <Prefix name="owl" IRI="http://www.w3.org/2002/07/owl#"/> <Declaration> <Class IRI="Tea"/> </Declaration> </Ontology> </syntaxhighlight> ;Manchester Syntax: <syntaxhighlight lang="turtle"> Ontology: <http://example.org/tea.owl> Class: Tea </syntaxhighlight> ;RDF/XML syntax:<syntaxhighlight lang="xml"> <rdf:RDF ...> <owl:Ontology rdf:about="http://www.example.org/tea.owl"/> <owl:Class rdf:about="#Tea"/> </rdf:RDF> </syntaxhighlight> ;RDF/[[Turtle (syntax)|Turtle]]: <syntaxhighlight lang="turtle"> <http://example.org/tea.owl> rdf:type owl:Ontology . :Tea rdf:type owl:Class . </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)