-
Notifications
You must be signed in to change notification settings - Fork 4
/
alignements LIBRA_en_continu
71 lines (62 loc) · 1.7 KB
/
alignements LIBRA_en_continu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
select * where {
graph <http://data.idref.fr/libra>
{?doc dcterms:bibliographicCitation ?citation.
?doc ?role ?idref.
OPTIONAL{?doc dc:date ?datePub.}
OPTIONAL{?doc bibo:doi ?doi.}
FILTER(regex(str(?idref), "http://www.idref.fr"))
}}
select count(*) where {
graph <http://data.idref.fr/libra>
{?doc dcterms:bibliographicCitation ?citation.
?doc ?role ?idref.
OPTIONAL{?doc dc:date ?datePub.}
OPTIONAL{?doc bibo:doi ?doi.}
FILTER(regex(str(?idref), "http://www.idref.fr"))
}}
-- nombre de documents distincts
select
COUNT(DISTINCT(?doc))
where {
graph <http://data.idref.fr/libra>
{?doc dcterms:bibliographicCitation ?citation.
?doc ?role ?idref.
OPTIONAL{?doc dc:date ?datePub.}
OPTIONAL{?doc bibo:doi ?doi.}
FILTER(regex(str(?idref), "http://www.idref.fr"))
}}
-- nombre de personnes distinctes
select
COUNT(DISTINCT(?idref))
where {
graph <http://data.idref.fr/libra>
{?doc dcterms:bibliographicCitation ?citation.
?doc ?role ?idref.
OPTIONAL{?doc dc:date ?datePub.}
OPTIONAL{?doc bibo:doi ?doi.}
FILTER(regex(str(?idref), "http://www.idref.fr"))
}}
-- nombre d'alignements idref-orcid distincts
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT count(DISTINCT(?idref))
WHERE {
{
SELECT ?doc ?idref
FROM <http://data.idref.fr/libra>
WHERE {
?doc dcterms:bibliographicCitation ?citation.
?doc ?role ?idref.
FILTER(STRSTARTS(STR(?role), "http://id.loc.gov/vocabulary/relators"))
FILTER(STRSTARTS(STR(?idref), "http://www.idref.fr"))
}
}
{
SELECT ?orcid ?idref
FROM <http://data.idref.fr/orcid_idref>
WHERE {
?orcid owl:sameAs ?idref.
FILTER(STRSTARTS(STR(?orcid), "http://orcid.org"))
FILTER(STRSTARTS(STR(?idref), "http://www.idref.fr"))
}
}
}