Hi,
Thanks for the direction.
Could I please request you to provide a pseudo query if possible ??

Cheers.

On Wed, Mar 7, 2018 at 3:09 PM, Lorenz Buehmann <
buehm...@informatik.uni-leipzig.de> wrote:

> > I want a query which could automatically tell me that the Coke-Can has
> > radius 0.1 and height 1
> >
> > Something like this  :-
> >
> > SELECT ?property ?value WHERE {
> > Coke-Can ...........
> > }
> look into the OWL to RDF graph mapping [1] and check how your
> restriction is encoded in RDF
>
> _:x rdf:type owl:Restriction .
> _:x owl:onProperty y .
> _:x owl:hasValue lt .
>
> Reflect this in your query to get property y and value lt
>
> [1] https://www.w3.org/TR/owl2-mapping-to-rdf/
>
> On 07.03.2018 10:28, Amar Banerjee wrote:
> > Hi folks !!
> >
> > I have been trying to create a sparql query to get the restrictions
> imposed
> > on a class for the individuals of that class.
> > However, I am not sure what exactly has to be done.
> >
> > I have a :
> >
> > Class SmallCan:
> >           subClass Of : radius value 0.1
> >           subClassOf : height value 1
> >
> > Now for this class, I have an individual -
> >
> > Coke-Can :
> >      type: SmallCan
> >
> > I want a query which could automatically tell me that the Coke-Can has
> > radius 0.1 and height 1
> >
> > Something like this  :-
> >
> > SELECT ?property ?value WHERE {
> > Coke-Can ...........
> > }
> >
> > and I get a result like :-
> > ----------------------------------
> > Property      |       Value
> > -----------------------------------
> > radius          |     0.3
> > height          |      1
> > ------------------------------------
> >
> > Looking for your help.
> >
> > Cheers.
> >
>
>

Reply via email to