Is Ontology File created in Protege with RDF/XML Format a RDF file or the OWL file? -
i have created ontology file in protege , save in rdf/xml format. contains owl tag.
so, ontology file created protege , saved rdf/xml format rdf files or rdf form of owl files or owl format containing rdf or else ?
class="lang-xml prettyprint-override"><?xml version="1.0"?> <!doctype rdf:rdf [ <!entity owl "http://www.w3.org/2002/07/owl#" > <!entity xsd "http://www.w3.org/2001/xmlschema#" > <!entity rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!entity rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <rdf:rdf xmlns="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#" xml:base="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/xmlschema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <owl:ontology rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13"/> <!-- /////////////////////////////////////////////////////////////////////////////////////// // // classes // /////////////////////////////////////////////////////////////////////////////////////// --> <!-- http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#student --> **<owl:class rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#student"/>** <!-- http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#university --> **<owl:class rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#university"/> </rdf:rdf>** <!-- generated owl api (version 3.4.2) http://owlapi.sourceforge.net -->
it's rdf/xml serialization of rdf mapping of owl ontology.
an owl ontology set of axioms. can serialized straight in number ways: manchester syntax, owl/xml standard, , functional syntax options. owl ontology can mapped set of rdf triples, described in owl 2 web ontology language mapping rdf graphs (second edition). now, rdf can serialized in bunch of different formats, too, e.g., rdf/xml, turtle, n3, , n-triples.
so, you've got rdf/xml serialization of rdf mapping of owl ontology. is rdf file, because it's serialization of rdf graph. also makes sense phone call owl file, because it's owl ontology. in fact, many of owl files you'll find online rdf/xml serializations of rdf mappings of owl ontologies.
examplesyour owl ontology can written in number of ways. instance, in functional syntax:
class="lang-none prettyprint-override">prefix(xsd:=<http://www.w3.org/2001/xmlschema#>) prefix(owl:=<http://www.w3.org/2002/07/owl#>) prefix(:=<http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#>) prefix(xml:=<http://www.w3.org/xml/1998/namespace>) prefix(rdf:=<http://www.w3.org/1999/02/22-rdf-syntax-ns#>) prefix(rdfs:=<http://www.w3.org/2000/01/rdf-schema#>) ontology(<http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13> declaration(class(:student)) declaration(class(:university)) ) in owl/xml serialization:
class="lang-xml prettyprint-override"><?xml version="1.0"?> <!doctype ontology [ <!entity xsd "http://www.w3.org/2001/xmlschema#" > <!entity xml "http://www.w3.org/xml/1998/namespace" > <!entity rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!entity rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <ontology xmlns="http://www.w3.org/2002/07/owl#" xml:base="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/xmlschema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xml="http://www.w3.org/xml/1998/namespace" ontologyiri="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13"> <prefix name="xsd" iri="http://www.w3.org/2001/xmlschema#"/> <prefix name="owl" iri="http://www.w3.org/2002/07/owl#"/> <prefix name="" iri="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#"/> <prefix name="rdf" iri="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/> <prefix name="rdfs" iri="http://www.w3.org/2000/01/rdf-schema#"/> <declaration> <class iri="#student"/> </declaration> <declaration> <class iri="#university"/> </declaration> </ontology> <!-- generated owl api (version 3.2.5.1912) http://owlapi.sourceforge.net --> these different serializations of same owl ontology. because they're serializations of owl ontology, makes sense phone call them owl files.
one more way serialize owl ontology rdf graph. rdf graph abstract thing though; it's set of triples. owl 2 web ontology language mapping rdf graphs (second edition) describes rdf mapping of owl ontologies. owl ontology, can generate set of rdf triples, i.e., rdf graph. rdf graph can written in number of different formats, too, though. here's rdf graph owl ontology in few different rdf serializations. of next same rdf graph. since of these rdf serializations, makes sense phone call of them rdf files. since they're rdf encodings of owl ontology, makes sense phone call them owl files.
in turtle rdf serialization:
class="lang-none prettyprint-override">@prefix : <http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xsd: <http://www.w3.org/2001/xmlschema#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . <http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13> owl:ontology . :university owl:class . :student owl:class . in n-triples serialization (one triple per line):
<http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ontology> . <http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#university> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#class> . <http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#student> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#class> . in rdf/xml no "shortcuts":
class="lang-xml prettyprint-override"><rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/xmlschema#" > <rdf:description rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13"> <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ontology"/> </rdf:description> <rdf:description rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#university"> <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#class"/> </rdf:description> <rdf:description rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#student"> <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#class"/> </rdf:description> </rdf:rdf> in rdf/xml using of shortcuts:
class="lang-xml prettyprint-override"><rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/xmlschema#"> <owl:ontology rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13"/> <owl:class rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#university"/> <owl:class rdf:about="http://www.semanticweb.org/q49f318b/ontologies/2014/5/untitled-ontology-13#student"/> </rdf:rdf> rdf owl ontology protege
No comments:
Post a Comment