I have created a simple ontology using Protege and now I want to retrieve data from the RDF file of that ontology. I have an object property like below:
<JavaOntology:sameQuestionAs rdf:resource="http://www.semanticweb.org/jeny/ontologies/2018/8/JavaOntology#What_is_the_purpose_of_Class_in_java"/>
I want to retrieve only the part after #
. For example, I want the output as What_is_the_purpose_of_Class_in_java
. But when I receive the RDF file I get the output as this
http://www.semanticweb.org/jeny/ontologies/2018/8/JavaOntology#What_is_the_purpose_of_Class_in_java
How can I do this?