Hi I'm following the http://owlapi.sourceforge.net/owled2011_tutorial.pdf to understand and attempt to parse an ontology in OWL2/RDF. I'm wondering how to obtain restrictions provided within a class and the code example in the tutorial as well as that in the github code https://github.com/owlcs/owlapi/blob/version4/contract/src/test/java/uk/ac/manchester/owl/owlapi/tutorialowled2011/TutorialSnippetsTestCase.java don't seem to show a working example. The PDF seems to have older logic and the example in the github seems to have commented out code. Any idea I'd be able to obtain and print the properties for a class - also how would I do this for the complex properties i.e. if i had the following kind of restriction within the class:
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty rdf:resource="AAA"/>
<owl:someValuesFrom>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Restriction>
<owl:onProperty rdf:resource="BBB"/>
<owl:someValuesFrom rdf:resource="111"/>
</owl:Restriction>
<owl:Restriction>
<owl:onProperty rdf:resource="CCC"/>
<owl:hasValue rdf:datatype="xsd;string">SOME VALUE</owl:hasValue>
</owl:Restriction>
</owl:intersectionOf>
</owl:Class>
</owl:someValuesFrom>
</owl:Restriction>
</rdfs:subClassOf>
How would I parse this programmatically. I'm trying to see what methods/classes of the API I should be looking at since I'm new to the jargon in OWL and linked data.