From: Luka <lu...@gm...> - 2011-07-28 14:38:50
|
It was obviously my mistake. I thought I was using a specific property but in fact I was using other. Thank you for the swift answer! Luís Braga On Thu, Jul 28, 2011 at 3:22 PM, Ignazio Palmisano < ipa...@gm...> wrote: > 2011/7/28 Luka <lu...@gm...>: > > Hi, > > I'm trying to check if a property is an ObjectProperty or a > > DataTypeProperty. > > I'm using the following piece of code: > > OWLOntology ont; > > IRI propertyIRI; > > if(ont.containsDataPropertyInSignature(propertyIRI)) > > propertyType = "Data"; > > else if(ont.containsObjectPropertyInSignature(propertyIRI)) > > propertyType = "Object"; > > Despite I'm being using an IRI of a DataTypeProperty, I'm always getting > > propertyType = "Object". > > That's strange, the code you show seems correct. I believe it's the > best way to check; you may want to print all the datatypes properties > and the object properties and doublecheck manually. > I. > > > There are another method for checking if and IRI represents as > > ObjectProperty or a DataTypeProperty? > > Thanks, > > Luís Braga > > > ------------------------------------------------------------------------------ > > Got Input? Slashdot Needs You. > > Take our quick survey online. Come on, we don't ask for help often. > > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > > http://p.sf.net/sfu/slashdot-survey > > _______________________________________________ > > Owlapi-developer mailing list > > Owl...@li... > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > > > > > ------------------------------------------------------------------------------ > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > _______________________________________________ > Owlapi-developer mailing list > Owl...@li... > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > |