instanceof applies to Java classes. It is a feature of the programming
language.
To see if an instance is of data-declared class, which is a separate
concept, use getOntClass, hasOntClass or listOntClass methods on Individual.
On 02/10/16 21:55, tina sani wrote:
I have Employee class and
I have Employee class and "Managers" and "Technicals" as two sub classes of
Employee.
Bob is instance of sub class Technical, how can I get like this:
If Bob instance of Technicals, then do something:
OntClass mgr = model.getOntClass(ns + "Managers");
OntClass tech =
Thanks a lot sir Lorenz.
On Sun, Oct 2, 2016 at 5:30 AM, Lorenz B. <
buehm...@informatik.uni-leipzig.de> wrote:
> Yes, but according to Javadoc only if there is at most one value,
> otherwise you get one of the values randomly. For multiple values you
> would have to use listPropertyValues
>
>
Yes, but according to Javadoc only if there is at most one value,
otherwise you get one of the values randomly. For multiple values you
would have to use listPropertyValues
> Is it the right way to get int value from a property?
>
> RDFNode intValue =team1.getPropertyValue(wins);
>
> On Sun, Oct
Is it the right way to get int value from a property?
RDFNode intValue =team1.getPropertyValue(wins);
On Sun, Oct 2, 2016 at 4:27 AM, Lorenz B. <
buehm...@informatik.uni-leipzig.de> wrote:
>
>
> > "You have to get the "wins" value for "team1" first"
> > This is the basic problem I do not know
> "You have to get the "wins" value for "team1" first"
> This is the basic problem I do not know how to get the int value from
> "wins"?
Not from "wins" but from the resource "team1" which is related by the
property "wins" to an integer value. If you do not understand this, you
will never be