Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

Wikibot to update triple count #128

Description

@kvistgaard

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions