Hi all, 

just an update. The method performs as it is supposed when we have multiple 
domains after all. The problem is caused when the domain is an expression such 
as: ClassA or ClassB. I will try to find how I can  get the classes in this 
case.

Regards,
Tasos




________________________________
 Απο: tasos martidis <[email protected]>
Προς: "[email protected]" <[email protected]> 
Στάλθηκε: 11:16 π.μ. Τρίτη, 15 Οκτωβρίου 2013
Θέμα: Jena listDomain method
 

Dear all,


I am working with Jena for a project in my university. I read an ontology into 
an OntModel and I use Jena methods to retrieve information.

The problemI face is, that when a property has multiple domains, the 
listDomains method does not return the names of the OntClasses. It returns a 
result such as : -26ae10e7:141bb413933:-7fbb.

I use SPARQL to query my OntModel and the results are the same. I only guess 
that this is an anonymous node and the multiple Classes that are domains, are 
under this "-26ae10e7:141bb413933:-7fbb"?

Can I get the names/URIs of the classes?

I am sorry if this issue is discussed earlier, I searched the archive a bit, 
but did not find anything similar.


Regards,
Tasos

Reply via email to