I have multiple resources like A, B, C
.
I want to know these resources exist in my database or not.
Here is a sample of query for one of them:
ASK { <http://fkg.iust.ac.ir/resource/A> ?p ?o }
This query returns true
or false
.
It's better to use one query, and I need to get 2 columns, resource
& existing
.
Here is my sample response:
---------------------------------------------------
| resource | existing |
|========================|========================|
| :A | true |
|------------------------|------------------------|
| :B | false |
|------------------------|------------------------|
| :C | true |
---------------------------------------------------
I know ASK
and UNION
, but how can I put them together for this sample?
wdt:P361
in your sample? @StanislavKralin – Nystromwdt:P361
is 'part of'. – Outspread