corese icon indicating copy to clipboard operation
corese copied to clipboard

Get only infered triples with Corese

Open rac021 opened this issue 6 years ago • 6 comments

Hi ,

is there a way to get only infered triples with corese ?

Thank's

R

rac021 avatar Sep 24 '17 00:09 rac021

Hi,

On 09/24/2017 02:48 AM, Yahiaoui Rachid wrote:

is there a way to get only infered triples with corese ?

Yes

rdfs entailment :

select * from kg:entailment where { ?x ?p ?y }

inference rules entailment:

select * from kg:rule where { ?x ?p ?y }

Best regards,

Olivier Corby

ocorby avatar Sep 25 '17 06:09 ocorby

Thank you @ocorby

I'll try this

Best regards

R

rac021 avatar Oct 14 '17 13:10 rac021

This exactly what I'm looking for.

Thank you @ocorby

R

rac021 avatar Oct 21 '17 12:10 rac021

When I try to obtain only inferred triples using SELECT * FROM kg:entailment WHERE { ?x ?p ?y }

This gives me also already loaded triples. Is this the expected behavior ?

Thank you

R

rac021 avatar Oct 21 '17 18:10 rac021

Hi,

Some existing triples may be also inferred. You can select infered triples :

select * where { graph kg:entailment { ?x ?p ?y } filter not exists { graph ?g { ?x ?p ?y } filter (?g != kg:entailment) } }

Olivier

----- Mail original -----

De: "Yahiaoui Rachid" [email protected] À: "Wimmics/corese" [email protected] Cc: "ocorby" [email protected], "Mention" [email protected] Envoyé: Samedi 21 Octobre 2017 20:04:17 Objet: Re: [Wimmics/corese] Get only infered triples with Corese (#28)

When I try to obtain only inferred triples using SELECT * FROM kg:entailment WHERE { ?x ?p ?y }

This gives me also already loaded triples. Is this the expected behavior ?

Thank you

R

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub , or mute the thread .

ocorby avatar Oct 24 '17 06:10 ocorby

Great !

Thank you @ocorby

R

rac021 avatar Oct 24 '17 18:10 rac021