Skip to content

Commit a8903ac

Browse files
committed
Updates
1 parent 0ba2f6c commit a8903ac

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

sparql/checks/check_prefix_link.rq

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### arq --query=check_prefix_link.rq --data=mtw-trx_2026-01-30.nt.gz > mtw-trx_2026-01-30__prefix_link.txt
2+
SELECT DISTINCT ?term
3+
WHERE {
4+
{
5+
?term ?p ?o .
6+
FILTER(isIRI(?term))
7+
FILTER(STRSTARTS(STR(?term), "http://mesh.inserm.fr/link/"))
8+
}
9+
UNION
10+
{
11+
?s ?p ?term .
12+
FILTER(isIRI(?term))
13+
FILTER(STRSTARTS(STR(?term), "http://mesh.inserm.fr/link/"))
14+
}
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### arq --query=check_prefix_no_link.rq --data=mtw-trx_2026-01-30.nt.gz > mtw-trx_2026-01-30__prefix_no_link.txt
2+
SELECT DISTINCT ?term
3+
WHERE {
4+
{
5+
?term ?p ?o .
6+
FILTER(isIRI(?term))
7+
FILTER(STRSTARTS(STR(?term), "http://mesh.inserm.fr/"))
8+
FILTER(!STRSTARTS(STR(?term), "http://mesh.inserm.fr/link/"))
9+
}
10+
UNION
11+
{
12+
?s ?p ?term .
13+
FILTER(isIRI(?term))
14+
FILTER(STRSTARTS(STR(?term), "http://mesh.inserm.fr/"))
15+
FILTER(!STRSTARTS(STR(?term), "http://mesh.inserm.fr/link/"))
16+
}
17+
}

sparql/checks/count_predicates.rq

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### arq --query=count_predicates.rq --data=mesh.nt.gz > mesh.nt.gz_stats.txt
2+
SELECT ?p (COUNT(*) AS ?count)
3+
WHERE {
4+
?s ?p ?o .
5+
}
6+
GROUP BY ?p
7+
ORDER BY ?p

0 commit comments

Comments
 (0)