Skip to content

Instantly share code, notes, and snippets.

@gkellogg
Created February 18, 2011 17:52
Show Gist options
  • Save gkellogg/834074 to your computer and use it in GitHub Desktop.
Save gkellogg/834074 to your computer and use it in GitHub Desktop.
Output from Ruby RDF::RDFXML version 0.3.2 serializer for sample OWL input
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns0="http://www.w3.org/2002/07/owl#" xmlns:ns1="http://example.org/" xmlns:ns2="http://www.w3.org/2000/01/rdf-schema#">
<ns0:AnnotationProperty rdf:about="http://example.org/describe_state"/>
<ns0:Class rdf:about="http://example.org/phenotype1">
<ns1:describe_state>
<ns1:state rdf:about="http://example.org/state1">
<ns2:label>leg has more than 10 and less than 30 setae</ns2:label>
</ns1:state>
</ns1:describe_state>
<ns0:equivalentClass>
<ns0:Class>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
<ns0:onProperty rdf:resource="http://example.org/has_part"/>
<ns0:someValuesFrom rdf:nodeID="g2167903700"/>
</ns0:Class>
</ns0:equivalentClass>
</ns0:Class>
<ns0:Class rdf:about="http://example.org/leg"/>
<ns0:Class rdf:about="http://example.org/state"/>
<ns0:Class rdf:nodeID="g2167903700">
<ns0:intersectionOf rdf:parseType="Collection">
<rdf:Description rdf:about="http://example.org/leg"/>
<ns0:Class>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
<ns0:minQualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">10</ns0:minQualifiedCardinality>
<ns0:onClass>
<ns0:Class rdf:about="http://example.org/seta"/>
</ns0:onClass>
<ns0:onProperty>
<ns0:ObjectProperty rdf:about="http://example.org/has_part"/>
</ns0:onProperty>
</ns0:Class>
<ns0:Class>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Restriction"/>
<ns0:maxQualifiedCardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">30</ns0:maxQualifiedCardinality>
<ns0:onClass rdf:resource="http://example.org/seta"/>
<ns0:onProperty rdf:resource="http://example.org/has_part"/>
</ns0:Class>
</ns0:intersectionOf>
</ns0:Class>
</rdf:RDF>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment