I'm trying to get the name of the individuals of a specific type so that i get them in a list for later use . I tried this and the result is in the form of an URI . How o I get for example for
( ?name = <http://www.semanticweb.org/muna/ontologies/2017/2/untitled-ontology-9#Boucles_geometrique> )
Boucles geometrique //as it is the name of the individual .
That is what I tried and it dont work .
String queryString = "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> "
+ "PREFIX owl: <http://www.w3.org/2002/07/owl#> " + "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> "
+ "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> "
+ "PREFIX S: <http://www.semanticweb.org/muna/ontologies/2017/2/untitled-ontology-9#> " +
" SELECT ?name {?name rdf:type S:Mode } ";
Knowing that those individuals , have "HasName" data property .