-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoci.json
executable file
·109 lines (109 loc) · 6.23 KB
/
oci.json
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
99
100
101
102
103
104
105
106
107
108
109
{
"services": [
{
"name": "Wikidata",
"query": "SELECT ?citing ?cited ?citing_date ?cited_date WHERE { BIND(wd:Q[[CITING]] AS ?citing) BIND(wd:Q[[CITED]] AS ?cited) ?citing wdt:P2860 ?cited . OPTIONAL { ?citing wdt:P577 ?citing_date } OPTIONAL { ?cited wdt:P577 ?cited_date } } LIMIT 1",
"prefix": ["010"],
"tp": "https://query.wikidata.org/sparql",
"use_it": "yes",
"id_type": "wikidata",
"id_shape": "http://www.wikidata.org/entity/(Q[[XXX]])",
"citation_type": "reference"
},
{
"name": "COCI",
"query": "PREFIX cito: <http://purl.org/spar/cito/> SELECT ?citing ?cited ?creation ?timespan WHERE { GRAPH <https://w3id.org/oc/index/coci/> { BIND(<http://dx.doi.org/[[CITING]]> AS ?citing) BIND(<http://dx.doi.org/[[CITED]]> AS ?cited) ?citing ^cito:hasCitingEntity ?citation . ?citation cito:hasCitedEntity ?cited . OPTIONAL { ?citation cito:hasCitationCreationDate ?creation } OPTIONAL { ?citation cito:hasCitationTimeSpan ?timespan } } } LIMIT 1",
"prefix": ["020"],
"tp": "http://opencitations.net/index/sparql",
"use_it": "no",
"preprocess": ["decode", "encode"],
"id_type": "doi",
"id_shape": "http://dx.doi.org/([[XXX__decode]])",
"citation_type": "reference"
},
{
"name": "Crossref",
"query": {
"citing": ["message::DOI->shape(http://dx.doi.org/)"],
"cited": ["message::reference::[DOI==[[CITED]]]::DOI->shape(http://dx.doi.org/)"],
"citing_date": ["message::issued::date-parts::[0]->datestrings()->join(-)"],
"cited_date": [
"api(https://api.crossref.org/works/[[CITED]])::message::issued::date-parts::[0]->datestrings()->join(-)",
"message::reference::[DOI==[[CITED]]]::year->normdate()"]
},
"prefix": ["020"],
"api": "https://api.crossref.org/works/[[CITING]]",
"use_it": "yes",
"preprocess": ["decode", "encode"],
"id_type": "doi",
"id_shape": "http://dx.doi.org/([[XXX__decode]])",
"citation_type": "reference"
},
{
"name": "OpenCitations Corpus",
"query": "PREFIX cito: <http://purl.org/spar/cito/> PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/> SELECT ?citing ?cited ?citing_date ?cited_date WHERE { BIND(<https://w3id.org/oc/corpus/br/[[CITING]]> AS ?citing) BIND(<https://w3id.org/oc/corpus/br/[[CITED]]> AS ?cited) ?citing cito:cites ?cited . OPTIONAL { ?citing prism:publicationDate ?citing_date } OPTIONAL { ?cited prism:publicationDate ?cited_date } } LIMIT 1",
"prefix": ["030"],
"tp": "http://opencitations.net/sparql",
"use_it": "no",
"id_type": "occ",
"id_shape": "https://w3id.org/oc/corpus/(br/[[XXX]])",
"citation_type": "reference"
},
{
"name": "Dryad",
"query": {
"citing": ["DryadDataPackage::identifier->remove(https://doi.org/)->shape(http://dx.doi.org/)"],
"cited": ["DryadDataPackage::references->remove(https://doi.org/)->shape(http://dx.doi.org/)"],
"citing_date": ["DryadDataPackage::available->normdate()"],
"cited_date": ["api(https://api.crossref.org/works/[[CITED]])::message::issued::date-parts::[0]->datestrings()->join(-)"]
},
"prefix": ["040"],
"api": "http://api.datadryad.org/mn/object/doi:[[CITING]]",
"use_it": "yes",
"preprocess": ["decode", "encode"],
"id_type": "doi",
"id_shape": "http://dx.doi.org/([[XXX__decode]])",
"citation_type": "reference"
},
{
"name": "CROCI",
"query": "PREFIX cito: <http://purl.org/spar/cito/> SELECT ?citing ?cited ?creation ?timespan WHERE { GRAPH <https://w3id.org/oc/index/croci/> { BIND(<http://dx.doi.org/[[CITING]]> AS ?citing) BIND(<http://dx.doi.org/[[CITED]]> AS ?cited) ?citing ^cito:hasCitingEntity ?citation . ?citation cito:hasCitedEntity ?cited . OPTIONAL { ?citation cito:hasCitationCreationDate ?creation } OPTIONAL { ?citation cito:hasCitationTimeSpan ?timespan } } } LIMIT 1",
"prefix": ["050"],
"tp": "http://opencitations.net/index/sparql",
"use_it": "no",
"preprocess": ["decode", "encode"],
"id_type": "doi",
"id_shape": "http://dx.doi.org/([[XXX__decode]])",
"citation_type": "reference"
},
{
"name": "OpenCitations Citations in Context Corpus",
"query": "PREFIX cito: <http://purl.org/spar/cito/> PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/> SELECT ?citing ?cited ?citing_date ?cited_date WHERE { BIND(<https://w3id.org/oc/ccc/br/070[[CITING]]> AS ?citing) BIND(<https://w3id.org/oc/ccc/br/070[[CITED]]> AS ?cited) ?citing cito:cites ?cited . OPTIONAL { ?citing prism:publicationDate ?citing_date } OPTIONAL { ?cited prism:publicationDate ?cited_date } } LIMIT 1",
"prefix": ["070"],
"tp": "http://opencitations.net/ccc/sparql",
"use_it": "no",
"id_type": "occ",
"id_shape": "https://w3id.org/oc/ccc/(br/070[[XXX]])",
"citation_type": "reference"
},
{
"name": "Index",
"query": {
"citing": ["[0]::citing->startswith(omid:)->remove(omid:)->shape(https://w3id.org/oc/meta/)"],
"cited": ["[0]::cited->startswith(omid:)->remove(omid:)->shape(https://w3id.org/oc/meta/)"],
"creation": ["[0]::creation"],
"timespan": ["[0]::timespan"],
"journal_sc": ["[0]::journal_sc"],
"author_sc": ["[0]::author_sc"]
},
"prefix": ["06[1-9]+0"],
"keep_prefix": "yes",
"api": "https://w3id.org/oc/index/api/v2/citation/[[CITING]]-[[CITED]]",
"use_it": "yes",
"id_type": "omid",
"add_type": "yes",
"id_shape": "https://w3id.org/oc/meta/(br/[[XXX]])",
"citation_type": "reference"
}
]
}