SPARQL and API access

8 views
Skip to first unread message

c...@digital-filestore.de

unread,
Dec 1, 2021, 12:48:35 PM12/1/21
to or...@googlegroups.com
Dear all,

I recently discovered the ORKG project an I am quite impressed and
excited. Today, I wanted to play around with the API and SPARQL
interface but got stuck. In particular I have the following two questions:


a) What is the url to which direct api requests?
I have looked in the following places but without success:

- https://www.orkg.org/orkg/help-center/article/24/Data_Access
- https://www.orkg.org/orkg/data
- https://www.orkg.org/orkg/doc/api/

At https://orkg.readthedocs.io/en/stable/examples.html there is an
promising URL in the output (https://orkg.org/api) but it produces a
404. Same holds for other subjectively educated guesses.


b) What is the SPARQL namespace prefix for ORKG properties?

Background: at https://www.orkg.org/orkg/triplestore there is the
example query

select distinct ?Concept where {[] a ?Concept} LIMIT 100

which works as expected. However I want to query for Property e.g.
P37364 (Area of study). The following do not work (Undefined namespace
prefix):

- select distinct ?Concept where {[] P37364 ?Concept} LIMIT 100
- select distinct ?Concept where {[] :P37364 ?Concept} LIMIT 100
- select distinct ?Concept where {[] orkgp:P37364 ?Concept} LIMIT 100

Probably I need to import some iri – but I do not know which one.

Also the four links in the upper right corner (About | Namespace
Prefixes | Inference rules) all result in a 404 error page.


I would be glad if somebody could help me.

Disclaimer: There probably will be another mail from me on this list
today but w.r.t. a different topic.


Best Carsten (Knoll)

(TU Dresden)
Reply all
Reply to author
Forward
0 new messages