From: Dario R. <d4...@gm...> - 2013-03-22 09:29:19
|
Dear Ignazio, thanks for your reply, I have to build a parser but I would like to use the library as much as possible. For example, I have a datarange with getDataRangeType() that returns: DataUnionOf(DataOneOf("NULL" ) DataRangeRestriction(xsd:integer facetRestriction(minInclusive "0"^^xsd:integer) facetRestriction(maxInclusive "1"^^xsd:integer)) ) If I get the DataRangeType it returns me "DATA_UNION_OF" and it's ok. Now I expect to have a way to get a Set<OWLDataRange> of 2 elements with "DataOneOf" and "DataRangeRetriction" but I can't find how to do that. The only function that appears to be useful is "OWLDataRange::getOperands()" but it returns me only an element with the same value of getDataRangeType(). Have I to get a look to "accept()" and "visit()" functions? It seems they are not documented in the javadoc. Thanks. Dario. Il giorno mer, 20/03/2013 alle 15.41 +0000, Ignazio Palmisano ha scritto: > > On Mar 20, 2013 3:36 PM, "Dario R." <d4...@gm...> wrote: > > > > Dear all, > > > > Is it possible to obtain a list of all possible values of a > > OWLDataRange? > > > > I have defined in Protege a DataProperty range as: > > ({"NULL"} or integer[>= 0 ,<= 1]). > > I would like a function that returns me a set or a collection like > > {"NULL", "0", "1"} > > . > > I'm able to find the corresponding OWLDataRange: > > DataUnionOf(DataOneOf("NULL" ) DataRangeRestriction(xsd:integer > > facetRestriction(maxInclusive "1"^^xsd:integer) > > facetRestriction(minInclusive "0"^^xsd:integer)) ) > > > > but I'm wondering if there is a way to get what I want without > > programming by myself a parser function. > > > > You'd need something to enumerate the elements of a data range - I > don't think there is any code to do this in the owl api. > I. > > > Thanks. > > > > Dario > > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > Owlapi-developer mailing list > > Owl...@li... > > https://lists.sourceforge.net/lists/listinfo/owlapi-developer > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ Owlapi-developer mailing list Owl...@li... https://lists.sourceforge.net/lists/listinfo/owlapi-developer |