Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe SPARQL endpoint #46

Open
ddeboer opened this issue Jul 29, 2021 · 0 comments
Open

Describe SPARQL endpoint #46

ddeboer opened this issue Jul 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@ddeboer
Copy link
Member

ddeboer commented Jul 29, 2021

Add example SPARQL and other queries (such as an HTTP URL to an OAI-PMH endpoint) to help users discover the data in the datasets.

For datasets that share a SPARQL endpoint, the information should include the way to select the dataset from that generic endpoint. We may use SPARQL Service Description for this:

[] a sd:Service ;
    sd:endpoint <http://www.example/sparql/> ;
        sd:namedGraph [
            a sd:NamedGraph ;
            sd:name <http://www.example/named-graph> ;
        ]
    ] .

An alternative approach is to use SHACL SPARQL targets:

ex:USCitizenShape
	a sh:NodeShape ;
	sh:target [
		a sh:SPARQLTarget ;
		sh:prefixes ex: ;
		sh:select """
			SELECT ?this
			WHERE {
				?this a ex:Person .
				?this ex:bornIn ex:USA .
			}
			""" ;
	] ;
	...
@ddeboer ddeboer added the enhancement New feature or request label Jul 29, 2021
@ddeboer ddeboer changed the title Add example queries Describe SPARQL endpoint Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant