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

Wikibot to update triple count #128

Open
kvistgaard opened this issue Feb 27, 2023 · 0 comments
Open

Wikibot to update triple count #128

kvistgaard opened this issue Feb 27, 2023 · 0 comments
Assignees

Comments

@kvistgaard
Copy link

As agreed today with @D063520 , here's a description of this enhancement.

For all items, instances of SPARQL endpoint with valid values for URL - EU Knowledge Graph,
The bot should query once a day the endpoint. In case there is a result, it should update the value of the property "number of triples"1 with the retrieved count and update the date qualifier with the current date. In case there is no result, the last successfully updated value should left. Optionally the last case can update an appropriate operational status direct property or qualifier.

It should be decided how to count. Most triple stores will give all accesible triples with SELECT COUNT (*) {?s ?p ?o} but for some the correct count needs to be retrieved with 2 :

SELECT ?g ?s ?p ?o
WHERE
{
	{ ?s ?p ?o }
	UNION
	{ GRAPH ?g { ?s ?p ?o } }
}

Footnotes

  1. To be imported as EIKG match of number of triples - Wikidata

  2. For example, Fuseki and RDF4J treat the default graph differently. Some triple stores support FROM DEFAULT, others not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants