-
Notifications
You must be signed in to change notification settings - Fork 4
/
alignements ERUDIT_en_continu
98 lines (88 loc) · 2.49 KB
/
alignements ERUDIT_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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
select * where {
graph <http://data.idref.fr/erudit>
{?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/erudit>
{?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/erudit>
{?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/erudit>
{?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"))
}}
-- les orcid alignés à IdRef pour les dépôts Erudit
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?orcid ?idref ?doc
WHERE {
{
SELECT ?idref ?doc
FROM <http://data.idref.fr/erudit>
WHERE {
?doc dcterms:bibliographicCitation ?citation.
FILTER(STRSTARTS(STR(?doc), "http://id.erudit.org"))
?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"))
}
}
}
-- les alignements orcid-idref uniques
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT DISTINCT(?idref), ?orcid
WHERE {
{
SELECT ?doc ?idref
FROM <http://data.idref.fr/erudit>
WHERE {
?doc dcterms:bibliographicCitation ?citation.
FILTER(STRSTARTS(STR(?doc), "http://id.erudit.org"))
?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"))
}
}
}