Hi,
You get it right, you need to pass the Class object, not its name. I'm adding such an example in the doc.
With "*", it returns any entity that has at least one "is-a" relation, thus you get individual but also classes and properties. This is normal; in some circonstancies it is usefull to search classes and not individuals.
Kind regards,
Jean-Baptiste Lamy
MCF, LIMICS, Université Paris 13
> Hi!
>
> I found out the "trick".
>
> I don't have to give the class name as a string but the instance.
> The answer to onto.search(type = onto.Class) is exactly the list of
> individuals of class Class.
>
> Cheers,
> -Elena
>
>
>
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
>
http://owlready.8326.n8.nabble.com/use-of-search-for-typed-elements-tp6p7.html> To start a new topic under Owlready, email
[hidden email]
> To unsubscribe from Owlready, visit