-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeta_v1.hf
893 lines (877 loc) · 48.2 KB
/
meta_v1.hf
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
#url /api/v1
#type api
#base https://w3id.org/oc/meta
#title REST API for OpenCitations Meta
#description This is the REST API for OpenCitations Meta, the OpenCitations dataset containing bibliographic metadata associated with the documents involved in the citations stored in the OpenCitations Indexes. All the present operations return either a JSON document (default) or a CSV document according to the mimetype specified in the `Accept` header of the request. If you would like to suggest an additional operation to be included in this API, please use the [issue tracker](https://github.com/opencitations/api/issues) of the OpenCitations APIs available on GitHub.
#version Version 1.1.1 (2022-12-22)
#contacts [contact@opencitations.net](mailto:contact@opencitations.net)
#license This document is licensed with a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode), while the REST API itself has been created using [RAMOSE](https://github.com/opencitations/ramose), the *Restful API Manager Over SPARQL Endpoints* created by [Silvio Peroni](https://orcid.org/0000-0003-0530-4305), which is licensed with an [ISC license](https://opensource.org/licenses/ISC).
#endpoint http://test.opencitations.net/meta/sparql
#method post
#addon metaapi
#url /metadata/{ids}
#type operation
#ids str((doi|issn|isbn|omid|openalex|pmid|pmcid):.+?(__(doi|issn|isbn|omid|openalex|pmid|pmcid):.+?)*$)
#preprocess generate_id_search(ids)
#postprocess create_metadata_output()
#method get
#description This operation retrieves the bibliographic metadata for each of the bibliographic entities identified by one or more input IDs
Each ID is built as follows: ID abbreviation + ":" = ID value. For example, For example "doi:10.3233/ds-170012" indicates a DOI identifier with value "10.3233/ds-170012"
The ID abbreviations currently supported in this operation are "doi", "issn", "isbn", and "omid"
It is possible to specify one or more IDs as input of this operation. In this case, the IDs should be separated with a double underscore ("\_\_") – e.g. "doi:10.1108/jd-12-2013-0166\_\_doi:10.1016/j.websem.2012.08.001". The fields returned by this operation are:
* *id*: the IDs of the bibliographic entity
* *title*: the title of the bibliographic entity
* *author*: the semicolon-separated list of authors of the bibliographic entity
* *pub_date*: the date of publication of the bibliographic entity
* *venue*: the title of the venue where the bibliographic entity has been published, followed by the list of identifiers referring that venue
* *volume*: the number of the volume in which the bibliographic entity has been published
* *issue*: the number of the issue in which the bibliographic entity has been published
* *page*: the starting and ending pages of the bibliographic entity in the context of the venue where it has been published
* *type*: the type of the bibliographic entity
#call /metadata/doi:10.1007/978-1-4020-9632-7
#field_type str(id) str(title) str(author) datetime(pub_date) str(issue) str(volume) str(venue) str(page) str(type) str(publisher) str(editor)
#output_json [
{
"id": "doi:10.1007/978-1-4020-9632-7 isbn:9781402096327 isbn:9789048127108 openalex:W4249829199 omid:br/0612058700",
"title": "Adaptive Environmental Management",
"author": "",
"pub_date": "2009",
"page": "",
"issue": "",
"volume": "",
"venue": "",
"type": "book",
"publisher": "Springer Science And Business Media Llc [crossref:297 omid:ra/0610116006]",
"editor": "Allan, Catherine [orcid:0000-0003-2098-4759 omid:ra/069012996]; Stankey, George H. [omid:ra/061808486861]"
}
]
#sparql PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX pro: <http://purl.org/spar/pro/>
PREFIX literal: <http://www.essepuntato.it/2010/06/literalreification/>
PREFIX datacite: <http://purl.org/spar/datacite/>
PREFIX dcterm: <http://purl.org/dc/terms/>
PREFIX frbr: <http://purl.org/vocab/frbr/core#>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
PREFIX oco: <https://w3id.org/oc/ontology/>
SELECT DISTINCT
?id
(STR(?title) AS ?title)
(GROUP_CONCAT(DISTINCT ?author_info; SEPARATOR="|") AS ?author)
(STR(?pub_date) AS ?pub_date)
(STR(?issue) AS ?issue)
(STR(?volume) AS ?volume)
?venue
?type
?page
(GROUP_CONCAT(DISTINCT ?publisher_info; SEPARATOR="|") AS ?publisher)
(GROUP_CONCAT(DISTINCT ?combined_editor_info; SEPARATOR="|") AS ?editor)
WHERE {
{
SELECT ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?pub_date ?page ?issue ?volume ?venueName ?venueMetaid
(GROUP_CONCAT(DISTINCT ?id ; SEPARATOR=" ") AS ?ids)
(GROUP_CONCAT(DISTINCT ?venue_ids_; SEPARATOR=' ') AS ?venue_ids)
WHERE {
[[ids]]
OPTIONAL {
?res datacite:hasIdentifier ?allIdentifiers.
?allIdentifiers datacite:usesIdentifierScheme ?allSchemes;
literal:hasLiteralValue ?allLiteralValues.
BIND(CONCAT(STRAFTER(STR(?allSchemes), "http://purl.org/spar/datacite/"), ":", ?allLiteralValues) AS ?id)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arAuthor.
?arAuthor pro:withRole pro:author;
pro:isHeldBy ?raAuthor.
OPTIONAL {
?arAuthor oco:hasNext ?nextAuthorRole .
}
BIND(STRAFTER(STR(?arAuthor), "https://w3id.org/oc/meta/ar/") AS ?roleUri)
BIND(STRAFTER(STR(?nextAuthorRole), "https://w3id.org/oc/meta/ar/") AS ?nextRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raAuthor), "/ra/")) AS ?author_metaid)
OPTIONAL {?raAuthor foaf:familyName ?familyName.}
OPTIONAL {?raAuthor foaf:givenName ?givenName.}
OPTIONAL {?raAuthor foaf:name ?name.}
OPTIONAL {
?raAuthor datacite:hasIdentifier ?authorIdentifier.
?authorIdentifier datacite:usesIdentifierScheme ?authorIdSchema;
literal:hasLiteralValue ?authorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?authorIdSchema), "http://purl.org/spar/datacite/"), ":", ?authorIdLiteralValue) AS ?author_id)
}
BIND(
IF(
STRLEN(STR(?familyName)) > 0 && STRLEN(STR(?givenName)) > 0,
CONCAT(?familyName, ", ", ?givenName),
IF(
STRLEN(STR(?familyName)) > 0,
CONCAT(?familyName, ","),
?name
)
)
AS ?authorName)
BIND(
IF(
STRLEN(STR(?author_id)) > 0,
CONCAT(?authorName, " [", ?author_id, " ", ?author_metaid, "]"),
CONCAT(?authorName, " [", ?author_metaid, "]")
)
AS ?author_)
BIND(CONCAT(?author_, ":", ?roleUri, ":", COALESCE(?nextRoleUri, "")) AS ?author_info)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arEditor.
?arEditor pro:withRole pro:editor;
pro:isHeldBy ?raEditor.
OPTIONAL {
?arEditor oco:hasNext ?nextEditorRole .
}
BIND(STRAFTER(STR(?arEditor), "https://w3id.org/oc/meta/ar/") AS ?editorRoleUri)
BIND(STRAFTER(STR(?nextEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raEditor), "/ra/")) AS ?editor_metaid)
OPTIONAL {?raEditor foaf:familyName ?editorFamilyName.}
OPTIONAL {?raEditor foaf:givenName ?editorGivenName.}
OPTIONAL {?raEditor foaf:name ?editor_name.}
OPTIONAL {
?raEditor datacite:hasIdentifier ?editorIdentifier.
?editorIdentifier datacite:usesIdentifierScheme ?editorIdSchema;
literal:hasLiteralValue ?editorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?editorIdSchema), "http://purl.org/spar/datacite/"), ":", ?editorIdLiteralValue) AS ?editor_id)
}
BIND(
IF(
STRLEN(STR(?editorFamilyName)) > 0 && STRLEN(STR(?editorGivenName)) > 0,
CONCAT(?editorFamilyName, ", ", ?editorGivenName),
IF(
STRLEN(STR(?editorFamilyName)) > 0,
CONCAT(?editorFamilyName, ","),
?editor_name
)
)
AS ?editorName)
BIND(
IF(
STRLEN(STR(?editor_id)) > 0,
CONCAT(?editorName, " [", ?editor_id, " ", ?editor_metaid, "]"),
CONCAT(?editorName, " [", ?editor_metaid, "]")
)
AS ?editor_)
BIND(CONCAT(?editor_, ":", ?editorRoleUri, ":", COALESCE(?nextEditorRoleUri, "")) AS ?editor_info)
}
OPTIONAL {
?res frbr:partOf ?container.
?container pro:isDocumentContextFor ?arContainerEditor.
?arContainerEditor pro:withRole pro:editor;
pro:isHeldBy ?raContainerEditor.
OPTIONAL {
?arContainerEditor oco:hasNext ?nextContainerEditorRole .
}
BIND(STRAFTER(STR(?arContainerEditor), "https://w3id.org/oc/meta/ar/") AS ?containerEditorRoleUri)
BIND(STRAFTER(STR(?nextContainerEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextContainerEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raContainerEditor), "/ra/")) AS ?container_editor_metaid)
OPTIONAL {?raContainerEditor foaf:familyName ?containerEditorFamilyName.}
OPTIONAL {?raContainerEditor foaf:givenName ?containerEditorGivenName.}
OPTIONAL {?raContainerEditor foaf:name ?container_editor_name.}
OPTIONAL {
?raContainerEditor datacite:hasIdentifier ?containerEditorIdentifier.
?containerEditorIdentifier datacite:usesIdentifierScheme ?containerEditorIdSchema;
literal:hasLiteralValue ?containerEditorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?containerEditorIdSchema), "http://purl.org/spar/datacite/"), ":", ?containerEditorIdLiteralValue) AS ?container_editor_id)
}
BIND(
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0 && STRLEN(STR(?containerEditorGivenName)) > 0,
CONCAT(?containerEditorFamilyName, ", ", ?containerEditorGivenName),
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0,
CONCAT(?containerEditorFamilyName, ","),
?container_editor_name
)
)
AS ?containerEditorName)
BIND(
IF(
STRLEN(STR(?container_editor_id)) > 0,
CONCAT(?containerEditorName, " [", ?container_editor_id, " ", ?container_editor_metaid, "]"),
CONCAT(?containerEditorName, " [", ?container_editor_metaid, "]")
)
AS ?container_editor_)
BIND(CONCAT(?container_editor_, ":", ?containerEditorRoleUri, ":", COALESCE(?nextContainerEditorRoleUri, "")) AS ?container_editor_info)
}
BIND(
IF(BOUND(?editor_info),
IF(BOUND(?container_editor_info),
CONCAT(?editor_info, "|", ?container_editor_info),
?editor_info),
IF(BOUND(?container_editor_info),
?container_editor_info,
"")
)
AS ?combined_editor_info)
OPTIONAL {
?res pro:isDocumentContextFor ?arPublisher.
?arPublisher pro:withRole pro:publisher;
pro:isHeldBy ?raPublisher.
OPTIONAL {
?arPublisher oco:hasNext ?nextPublisherRole .
}
BIND(STRAFTER(STR(?arPublisher), "https://w3id.org/oc/meta/ar/") AS ?publisherRoleUri)
BIND(STRAFTER(STR(?nextPublisherRole), "https://w3id.org/oc/meta/ar/") AS ?nextPublisherRoleUri)
?raPublisher foaf:name ?publisherName_.
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raPublisher), "/ra/")) AS ?publisher_metaid)
?raPublisher foaf:name ?publisher_name.
OPTIONAL {
?raPublisher datacite:hasIdentifier ?publisherIdentifier__.
?publisherIdentifier__ datacite:usesIdentifierScheme ?publisherIdSchema;
literal:hasLiteralValue ?publisherIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?publisherIdSchema), "http://purl.org/spar/datacite/"), ":", ?publisherIdLiteralValue) AS ?publisher_id)
}
BIND(
IF(
STRLEN(STR(?publisher_id)) > 0,
CONCAT(?publisher_name, " [", ?publisher_id, " ", ?publisher_metaid, "]"),
CONCAT(?publisher_name, " [", ?publisher_metaid, "]")
)
AS ?publisher_)
BIND(CONCAT(?publisher_, ":", ?publisherRoleUri, ":", COALESCE(?nextPublisherRoleUri, "")) AS ?publisher_info)
}
OPTIONAL {
{
?res a fabio:JournalArticle;
frbr:partOf+ ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
?journal a fabio:Journal.
} UNION {
?res frbr:partOf ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
}
?journal dcterm:title ?venueName.
OPTIONAL {
?journal datacite:hasIdentifier ?journalIdentifier__.
?journalIdentifier__ datacite:usesIdentifierScheme ?journalIdScheme;
literal:hasLiteralValue ?journalIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?journalIdScheme), "http://purl.org/spar/datacite/"), ":", ?journalIdLiteralValue) AS ?venue_ids_)
}
}
OPTIONAL {?res a ?type. FILTER (?type != fabio:Expression)}
OPTIONAL {?res dcterm:title ?title.}
OPTIONAL {?res prism:publicationDate ?pub_date.}
OPTIONAL {
?res frbr:embodiment ?re.
?re prism:startingPage ?startingPage;
prism:endingPage ?endingPage.
BIND(IF(STR(?startingPage) = STR(?endingPage), STR(?startingPage), CONCAT(?startingPage, '-', ?endingPage)) AS ?page)
}
OPTIONAL {
?res frbr:partOf ?resIssue.
?resIssue a fabio:JournalIssue;
fabio:hasSequenceIdentifier ?issue.
}
OPTIONAL {
?res frbr:partOf+ ?resVolume.
?resVolume a fabio:JournalVolume;
fabio:hasSequenceIdentifier ?volume.
}
} GROUP BY ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?issue ?volume ?pub_date ?page ?venueName ?venueMetaid
}
BIND(CONCAT(?ids, IF(STR(?ids) != "", " ", ""), "omid:br/", STRAFTER(STR(?res), "/br/")) AS ?id)
BIND(
IF(BOUND(?venueMetaid),
IF(STR(?venue_ids) != "",
CONCAT(" [", ?venue_ids, " ", ?venueMetaid, "]"),
CONCAT(" [", ?venueMetaid, "]")
),
""
)
AS ?venueIdentifiers)
BIND(CONCAT(?venueName, ?venueIdentifiers) AS ?venue)
} GROUP BY ?id ?title ?type ?issue ?volume ?venue ?pub_date ?page
#url /author/{id}
#type operation
#id str(((orcid:)?([0-9]{4}-){3}[0-9]{3}[0-9X])|(omid:ra\/06[1-9]*0\d+))
#preprocess generate_ra_search(id)
#postprocess create_metadata_output()
#method get
#description This operation retrieves the bibliographic metadata for each bibliographic entity authored by the person identified by the given ORCID or OpenCitations Meta Identifier.
Both ORCID and OMID must be specified preceded by a prefix that makes explicit the identifier scheme, i.e. <code>orcid:</code> for ORCID (e.g., <code>orcid:0000-0003-1572-6747</code>) and <code>omid:</code> for OMID (e.g., <code>omid:ra/0601</code>).
The fields returned by this operation are:
* *id*: the IDs of the bibliographic entity
* *title*: the title of the bibliographic entity
* *author*: the semicolon-separated list of authors of the bibliographic entity
* *pub_date*: the date of publication of the bibliographic entity
* *venue*: the title of the venue where the bibliographic entity has been published, followed by the list of identifiers referring that venue
* *volume*: the number of the volume in which the bibliographic entity has been published
* *issue*: the number of the issue in which the bibliographic entity has been published
* *page*: the starting and ending pages of the bibliographic entity in the context of the venue where it has been published
* *type*: the type of the bibliographic entity
#call /author/orcid:0000-0002-8420-0696
#field_type str(id) str(title) str(author) datetime(pub_date) str(issue) str(volume) str(venue) str(page) str(type) str(publisher) str(editor)
#output_json [
{
"id": "doi:10.1007/s11192-022-04367-w openalex:W3214893238 omid:br/061202127149",
"title": "Identifying And Correcting Invalid Citations Due To DOI Errors In Crossref Data",
"author": "Cioffi, Alessia [orcid:0000-0002-9812-4065 omid:ra/061206532419]; Coppini, Sara [orcid:0000-0002-6279-3830 omid:ra/061206532420]; Massari, Arcangelo [orcid:0000-0002-8420-0696 omid:ra/06250110138]; Moretti, Arianna [orcid:0000-0001-5486-7070 omid:ra/061206532421]; Peroni, Silvio [orcid:0000-0003-0530-4305 omid:ra/0614010840729]; Santini, Cristian [orcid:0000-0001-7363-6737 omid:ra/067099715]; Shahidzadeh, Nooshin [orcid:0000-0003-4114-074X omid:ra/06220110984]",
"pub_date": "2022-06",
"issue": "6",
"volume": "127",
"venue": "Scientometrics [issn:0138-9130 issn:1588-2861 openalex:S148561398 omid:br/0626055628]",
"type": "journal article",
"page": "3593-3612",
"publisher": "Springer Science And Business Media Llc [crossref:297 omid:ra/0610116006]",
"editor": ""
},
{
"id": "doi:10.5334/johd.178 omid:br/06404693975",
"title": "The Integration Of The Japan Link Center\u2019s Bibliographic Data Into OpenCitations",
"author": "Heibi, Ivan [orcid:0000-0001-5366-5194 omid:ra/064013186642]; Massari, Arcangelo [orcid:0000-0002-8420-0696 omid:ra/064013186643]; Moretti, Arianna [orcid:0000-0001-5486-7070 omid:ra/061206532421]; Peroni, Silvio [orcid:0000-0003-0530-4305 omid:ra/064013186644]; Rizzetto, Elia [orcid:0009-0003-7161-9310 omid:ra/064013186645]; Soricetti, Marta [orcid:0009-0008-1466-7742 omid:ra/064013186641]",
"pub_date": "2024",
"issue": "",
"volume": "10",
"venue": "Journal Of Open Humanities Data [issn:2059-481X openalex:S4210240912 omid:br/06160186133]",
"type": "journal article",
"page": "",
"publisher": "Ubiquity Press, Ltd. [crossref:3285 omid:ra/0610116010]",
"editor": ""
},
{
"id": "doi:10.1007/978-3-031-16802-4_36 openalex:W4295990858 omid:br/061603442625",
"title": "Enabling Portability And Reusability Of Open Science Infrastructures",
"author": "Grieco, Giuseppe [orcid:0000-0001-5439-4576 omid:ra/061609362356]; Heibi, Ivan [orcid:0000-0001-5366-5194 omid:ra/063011864088]; Massari, Arcangelo [orcid:0000-0002-8420-0696 omid:ra/06250110138]; Moretti, Arianna [orcid:0000-0001-5486-7070 omid:ra/061206532421]; Peroni, Silvio [orcid:0000-0003-0530-4305 omid:ra/0614010840729]",
"pub_date": "2022",
"issue": "",
"volume": "",
"venue": "Linking Theory And Practice Of Digital Libraries [isbn:9783031168017 isbn:9783031168024 omid:br/061603442934]",
"type": "book chapter",
"page": "379-385",
"publisher": "Springer Science And Business Media Llc [crossref:297 omid:ra/0610116006]",
"editor": ""
}
]
#sparql PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX pro: <http://purl.org/spar/pro/>
PREFIX literal: <http://www.essepuntato.it/2010/06/literalreification/>
PREFIX datacite: <http://purl.org/spar/datacite/>
PREFIX dcterm: <http://purl.org/dc/terms/>
PREFIX frbr: <http://purl.org/vocab/frbr/core#>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
PREFIX oco: <https://w3id.org/oc/ontology/>
SELECT DISTINCT
?id
(STR(?title) AS ?title)
(GROUP_CONCAT(DISTINCT ?author_info; SEPARATOR="|") AS ?author)
(STR(?pub_date) AS ?pub_date)
(STR(?issue) AS ?issue)
(STR(?volume) AS ?volume)
?venue
?type
?page
(GROUP_CONCAT(DISTINCT ?publisher_info; SEPARATOR="|") AS ?publisher)
(GROUP_CONCAT(DISTINCT ?combined_editor_info; SEPARATOR="|") AS ?editor)
WHERE {
{
SELECT ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?pub_date ?page ?issue ?volume ?venueName ?venueMetaid
(GROUP_CONCAT(DISTINCT ?id ; SEPARATOR=" ") AS ?ids)
(GROUP_CONCAT(DISTINCT ?venue_ids_; SEPARATOR=' ') AS ?venue_ids)
WHERE {
{
SELECT DISTINCT ?res
WHERE {
[[id]]
?knownRole pro:withRole pro:author.
?res pro:isDocumentContextFor ?knownRole;
a fabio:Expression.
} LIMIT 1000
}
OPTIONAL {
?res datacite:hasIdentifier ?identifier.
?identifier datacite:usesIdentifierScheme ?scheme;
literal:hasLiteralValue ?literalValue.
BIND(CONCAT(STRAFTER(STR(?scheme), "http://purl.org/spar/datacite/"), ":", ?literalValue) AS ?id)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arAuthor.
?arAuthor pro:withRole pro:author;
pro:isHeldBy ?raAuthor.
OPTIONAL {
?arAuthor oco:hasNext ?nextAuthorRole .
}
BIND(STRAFTER(STR(?arAuthor), "https://w3id.org/oc/meta/ar/") AS ?roleUri)
BIND(STRAFTER(STR(?nextAuthorRole), "https://w3id.org/oc/meta/ar/") AS ?nextRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raAuthor), "/ra/")) AS ?author_metaid)
OPTIONAL {?raAuthor foaf:familyName ?familyName.}
OPTIONAL {?raAuthor foaf:givenName ?givenName.}
OPTIONAL {?raAuthor foaf:name ?name.}
OPTIONAL {
?raAuthor datacite:hasIdentifier ?authorIdentifier.
?authorIdentifier datacite:usesIdentifierScheme ?authorIdSchema;
literal:hasLiteralValue ?authorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?authorIdSchema), "http://purl.org/spar/datacite/"), ":", ?authorIdLiteralValue) AS ?author_id)
}
BIND(
IF(
STRLEN(STR(?familyName)) > 0 && STRLEN(STR(?givenName)) > 0,
CONCAT(?familyName, ", ", ?givenName),
IF(
STRLEN(STR(?familyName)) > 0,
CONCAT(?familyName, ","),
?name
)
)
AS ?authorName)
BIND(
IF(
STRLEN(STR(?author_id)) > 0,
CONCAT(?authorName, " [", ?author_id, " ", ?author_metaid, "]"),
CONCAT(?authorName, " [", ?author_metaid, "]")
)
AS ?author_)
BIND(CONCAT(?author_, ":", ?roleUri, ":", COALESCE(?nextRoleUri, "")) AS ?author_info)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arEditor.
?arEditor pro:withRole pro:editor;
pro:isHeldBy ?raEditor.
OPTIONAL {
?arEditor oco:hasNext ?nextEditorRole .
}
BIND(STRAFTER(STR(?arEditor), "https://w3id.org/oc/meta/ar/") AS ?editorRoleUri)
BIND(STRAFTER(STR(?nextEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raEditor), "/ra/")) AS ?editor_metaid)
OPTIONAL {?raEditor foaf:familyName ?editorFamilyName.}
OPTIONAL {?raEditor foaf:givenName ?editorGivenName.}
OPTIONAL {?raEditor foaf:name ?editor_name.}
OPTIONAL {
?raEditor datacite:hasIdentifier ?editorIdentifier.
?editorIdentifier datacite:usesIdentifierScheme ?editorIdSchema;
literal:hasLiteralValue ?editorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?editorIdSchema), "http://purl.org/spar/datacite/"), ":", ?editorIdLiteralValue) AS ?editor_id)
}
BIND(
IF(
STRLEN(STR(?editorFamilyName)) > 0 && STRLEN(STR(?editorGivenName)) > 0,
CONCAT(?editorFamilyName, ", ", ?editorGivenName),
IF(
STRLEN(STR(?editorFamilyName)) > 0,
CONCAT(?editorFamilyName, ","),
?editor_name
)
)
AS ?editorName)
BIND(
IF(
STRLEN(STR(?editor_id)) > 0,
CONCAT(?editorName, " [", ?editor_id, " ", ?editor_metaid, "]"),
CONCAT(?editorName, " [", ?editor_metaid, "]")
)
AS ?editor_)
BIND(CONCAT(?editor_, ":", ?editorRoleUri, ":", COALESCE(?nextEditorRoleUri, "")) AS ?editor_info)
}
OPTIONAL {
?res frbr:partOf ?container.
?container pro:isDocumentContextFor ?arContainerEditor.
?arContainerEditor pro:withRole pro:editor;
pro:isHeldBy ?raContainerEditor.
OPTIONAL {
?arContainerEditor oco:hasNext ?nextContainerEditorRole .
}
BIND(STRAFTER(STR(?arContainerEditor), "https://w3id.org/oc/meta/ar/") AS ?containerEditorRoleUri)
BIND(STRAFTER(STR(?nextContainerEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextContainerEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raContainerEditor), "/ra/")) AS ?container_editor_metaid)
OPTIONAL {?raContainerEditor foaf:familyName ?containerEditorFamilyName.}
OPTIONAL {?raContainerEditor foaf:givenName ?containerEditorGivenName.}
OPTIONAL {?raContainerEditor foaf:name ?container_editor_name.}
OPTIONAL {
?raContainerEditor datacite:hasIdentifier ?containerEditorIdentifier.
?containerEditorIdentifier datacite:usesIdentifierScheme ?containerEditorIdSchema;
literal:hasLiteralValue ?containerEditorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?containerEditorIdSchema), "http://purl.org/spar/datacite/"), ":", ?containerEditorIdLiteralValue) AS ?container_editor_id)
}
BIND(
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0 && STRLEN(STR(?containerEditorGivenName)) > 0,
CONCAT(?containerEditorFamilyName, ", ", ?containerEditorGivenName),
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0,
CONCAT(?containerEditorFamilyName, ","),
?container_editor_name
)
)
AS ?containerEditorName)
BIND(
IF(
STRLEN(STR(?container_editor_id)) > 0,
CONCAT(?containerEditorName, " [", ?container_editor_id, " ", ?container_editor_metaid, "]"),
CONCAT(?containerEditorName, " [", ?container_editor_metaid, "]")
)
AS ?container_editor_)
BIND(CONCAT(?container_editor_, ":", ?containerEditorRoleUri, ":", COALESCE(?nextContainerEditorRoleUri, "")) AS ?container_editor_info)
}
BIND(
IF(BOUND(?editor_info),
IF(BOUND(?container_editor_info),
CONCAT(?editor_info, "|", ?container_editor_info),
?editor_info),
IF(BOUND(?container_editor_info),
?container_editor_info,
"")
)
AS ?combined_editor_info)
OPTIONAL {
?res pro:isDocumentContextFor ?arPublisher.
?arPublisher pro:withRole pro:publisher;
pro:isHeldBy ?raPublisher.
OPTIONAL {
?arPublisher oco:hasNext ?nextPublisherRole .
}
BIND(STRAFTER(STR(?arPublisher), "https://w3id.org/oc/meta/ar/") AS ?publisherRoleUri)
BIND(STRAFTER(STR(?nextPublisherRole), "https://w3id.org/oc/meta/ar/") AS ?nextPublisherRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raPublisher), "/ra/")) AS ?publisher_metaid)
?raPublisher foaf:name ?publisher_name.
OPTIONAL {
?raPublisher datacite:hasIdentifier ?publisherIdentifier__.
?publisherIdentifier__ datacite:usesIdentifierScheme ?publisherIdSchema;
literal:hasLiteralValue ?publisherIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?publisherIdSchema), "http://purl.org/spar/datacite/"), ":", ?publisherIdLiteralValue) AS ?publisher_id)
}
BIND(
IF(
STRLEN(STR(?publisher_id)) > 0,
CONCAT(?publisher_name, " [", ?publisher_id, " ", ?publisher_metaid, "]"),
CONCAT(?publisher_name, " [", ?publisher_metaid, "]")
)
AS ?publisher_)
BIND(CONCAT(?publisher_, ":", ?publisherRoleUri, ":", COALESCE(?nextPublisherRoleUri, "")) AS ?publisher_info)
}
OPTIONAL {
{
?res a fabio:JournalArticle;
frbr:partOf+ ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
?journal a fabio:Journal.
} UNION {
?res frbr:partOf ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
}
?journal dcterm:title ?venueName.
OPTIONAL {
?journal datacite:hasIdentifier ?journalIdentifier__.
?journalIdentifier__ datacite:usesIdentifierScheme ?journalIdScheme;
literal:hasLiteralValue ?journalIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?journalIdScheme), "http://purl.org/spar/datacite/"), ":", ?journalIdLiteralValue) AS ?venue_ids_)
}
}
OPTIONAL {?res a ?type. FILTER (?type != fabio:Expression)}
OPTIONAL {?res dcterm:title ?title.}
OPTIONAL {?res prism:publicationDate ?pub_date.}
OPTIONAL {
?res frbr:embodiment ?re.
?re prism:startingPage ?startingPage;
prism:endingPage ?endingPage.
BIND(IF(STR(?startingPage) = STR(?endingPage), STR(?startingPage), CONCAT(?startingPage, '-', ?endingPage)) AS ?page)
}
OPTIONAL {
?res frbr:partOf ?resIssue.
?resIssue a fabio:JournalIssue;
fabio:hasSequenceIdentifier ?issue.
}
OPTIONAL {
?res frbr:partOf+ ?resVolume.
?resVolume a fabio:JournalVolume;
fabio:hasSequenceIdentifier ?volume.
}
} GROUP BY ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?issue ?volume ?pub_date ?page ?venueName ?venueMetaid
}
BIND(CONCAT(?ids, IF(STR(?ids) != "", " ", ""), "omid:br/", STRAFTER(STR(?res), "/br/")) AS ?id)
BIND(
IF(BOUND(?venueMetaid),
IF(STR(?venue_ids) != "",
CONCAT(" [", ?venue_ids, " ", ?venueMetaid, "]"),
CONCAT(" [", ?venueMetaid, "]")
),
""
)
AS ?venueIdentifiers)
BIND(CONCAT(?venueName, ?venueIdentifiers) AS ?venue)
} GROUP BY ?id ?title ?type ?issue ?volume ?venue ?pub_date ?page
#url /editor/{id}
#type operation
#id str(((orcid:)?([0-9]{4}-){3}[0-9]{3}[0-9X])|(omid:ra\/06[1-9]*0\d+))
#preprocess generate_ra_search(id)
#postprocess create_metadata_output()
#method get
#description This operation retrieves the bibliographic metadata for each bibliographic entity edited by the person identified by the given ORCID or OpenCitations Meta Identifier.
Both ORCID and OMID must be specified preceded by a prefix that makes explicit the identifier scheme, i.e. <code>orcid:</code> for ORCID (e.g., <code>orcid:0000-0003-1572-6747</code>) and <code>omid:</code> for OMID (e.g., <code>omid:ra/0601</code>).
The fields returned by this operation are:
* *id*: the IDs of the bibliographic entity
* *title*: the title of the bibliographic entity
* *author*: the semicolon-separated list of authors of the bibliographic entity
* *pub_date*: the date of publication of the bibliographic entity
* *venue*: the title of the venue where the bibliographic entity has been published, followed by the list of identifiers referring that venue
* *volume*: the number of the volume in which the bibliographic entity has been published
* *issue*: the number of the issue in which the bibliographic entity has been published
* *page*: the starting and ending pages of the bibliographic entity in the context of the venue where it has been published
* *type*: the type of the bibliographic entity
#call /editor/orcid:0000-0003-2098-4759
#field_type str(id) str(title) str(author) datetime(pub_date) str(issue) str(volume) str(venue) str(page) str(type) str(publisher) str(editor)
#output_json [
{
"id": "doi:10.1007/978-1-4020-9632-7 isbn:9781402096327 isbn:9789048127108 openalex:W4249829199 omid:br/0612058700",
"title": "Adaptive Environmental Management",
"author": "",
"pub_date": "2009",
"issue": "",
"volume": "",
"venue": "",
"type": "book",
"page": "",
"publisher": "Springer Science And Business Media Llc [crossref:297 omid:ra/0610116006]",
"editor": "Allan, Catherine [orcid:0000-0003-2098-4759 omid:ra/069012996]; Stankey, George H. [omid:ra/061808486861]"
}
]
#sparql PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX pro: <http://purl.org/spar/pro/>
PREFIX literal: <http://www.essepuntato.it/2010/06/literalreification/>
PREFIX datacite: <http://purl.org/spar/datacite/>
PREFIX dcterm: <http://purl.org/dc/terms/>
PREFIX frbr: <http://purl.org/vocab/frbr/core#>
PREFIX fabio: <http://purl.org/spar/fabio/>
PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
PREFIX oco: <https://w3id.org/oc/ontology/>
SELECT DISTINCT
?id
(STR(?title) AS ?title)
(GROUP_CONCAT(DISTINCT ?author_info; SEPARATOR="|") AS ?author)
(STR(?pub_date) AS ?pub_date)
(STR(?issue) AS ?issue)
(STR(?volume) AS ?volume)
?venue
?type
?page
(GROUP_CONCAT(DISTINCT ?publisher_info; SEPARATOR="|") AS ?publisher)
(GROUP_CONCAT(DISTINCT ?combined_editor_info; SEPARATOR="|") AS ?editor)
WHERE {
{
SELECT ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?pub_date ?page ?issue ?volume ?venueName ?venueMetaid
(GROUP_CONCAT(DISTINCT ?id ; SEPARATOR=" ") AS ?ids)
(GROUP_CONCAT(DISTINCT ?venue_ids_; SEPARATOR=' ') AS ?venue_ids)
WHERE {
{
SELECT DISTINCT ?res
WHERE {
[[id]]
?knownRole pro:withRole pro:editor.
?res pro:isDocumentContextFor ?knownRole;
a fabio:Expression.
} LIMIT 1000
}
OPTIONAL {
?res datacite:hasIdentifier ?identifier.
?identifier datacite:usesIdentifierScheme ?scheme;
literal:hasLiteralValue ?literalValue.
BIND(CONCAT(STRAFTER(STR(?scheme), "http://purl.org/spar/datacite/"), ":", ?literalValue) AS ?id)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arAuthor.
?arAuthor pro:withRole pro:author;
pro:isHeldBy ?raAuthor.
OPTIONAL {
?arAuthor oco:hasNext ?nextAuthorRole .
}
BIND(STRAFTER(STR(?arAuthor), "https://w3id.org/oc/meta/ar/") AS ?roleUri)
BIND(STRAFTER(STR(?nextAuthorRole), "https://w3id.org/oc/meta/ar/") AS ?nextRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raAuthor), "/ra/")) AS ?author_metaid)
OPTIONAL {?raAuthor foaf:familyName ?familyName.}
OPTIONAL {?raAuthor foaf:givenName ?givenName.}
OPTIONAL {?raAuthor foaf:name ?name.}
OPTIONAL {
?raAuthor datacite:hasIdentifier ?authorIdentifier.
?authorIdentifier datacite:usesIdentifierScheme ?authorIdSchema;
literal:hasLiteralValue ?authorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?authorIdSchema), "http://purl.org/spar/datacite/"), ":", ?authorIdLiteralValue) AS ?author_id)
}
BIND(
IF(
STRLEN(STR(?familyName)) > 0 && STRLEN(STR(?givenName)) > 0,
CONCAT(?familyName, ", ", ?givenName),
IF(
STRLEN(STR(?familyName)) > 0,
CONCAT(?familyName, ","),
?name
)
)
AS ?authorName)
BIND(
IF(
STRLEN(STR(?author_id)) > 0,
CONCAT(?authorName, " [", ?author_id, " ", ?author_metaid, "]"),
CONCAT(?authorName, " [", ?author_metaid, "]")
)
AS ?author_)
BIND(CONCAT(?author_, ":", ?roleUri, ":", COALESCE(?nextRoleUri, "")) AS ?author_info)
}
OPTIONAL {
?res pro:isDocumentContextFor ?arEditor.
?arEditor pro:withRole pro:editor;
pro:isHeldBy ?raEditor.
OPTIONAL {
?arEditor oco:hasNext ?nextEditorRole .
}
BIND(STRAFTER(STR(?arEditor), "https://w3id.org/oc/meta/ar/") AS ?editorRoleUri)
BIND(STRAFTER(STR(?nextEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raEditor), "/ra/")) AS ?editor_metaid)
OPTIONAL {?raEditor foaf:familyName ?editorFamilyName.}
OPTIONAL {?raEditor foaf:givenName ?editorGivenName.}
OPTIONAL {?raEditor foaf:name ?editor_name.}
OPTIONAL {
?raEditor datacite:hasIdentifier ?editorIdentifier.
?editorIdentifier datacite:usesIdentifierScheme ?editorIdSchema;
literal:hasLiteralValue ?editorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?editorIdSchema), "http://purl.org/spar/datacite/"), ":", ?editorIdLiteralValue) AS ?editor_id)
}
BIND(
IF(
STRLEN(STR(?editorFamilyName)) > 0 && STRLEN(STR(?editorGivenName)) > 0,
CONCAT(?editorFamilyName, ", ", ?editorGivenName),
IF(
STRLEN(STR(?editorFamilyName)) > 0,
CONCAT(?editorFamilyName, ","),
?editor_name
)
)
AS ?editorName)
BIND(
IF(
STRLEN(STR(?editor_id)) > 0,
CONCAT(?editorName, " [", ?editor_id, " ", ?editor_metaid, "]"),
CONCAT(?editorName, " [", ?editor_metaid, "]")
)
AS ?editor_)
BIND(CONCAT(?editor_, ":", ?editorRoleUri, ":", COALESCE(?nextEditorRoleUri, "")) AS ?editor_info)
}
OPTIONAL {
?res frbr:partOf ?container.
?container pro:isDocumentContextFor ?arContainerEditor.
?arContainerEditor pro:withRole pro:editor;
pro:isHeldBy ?raContainerEditor.
OPTIONAL {
?arContainerEditor oco:hasNext ?nextContainerEditorRole .
}
BIND(STRAFTER(STR(?arContainerEditor), "https://w3id.org/oc/meta/ar/") AS ?containerEditorRoleUri)
BIND(STRAFTER(STR(?nextContainerEditorRole), "https://w3id.org/oc/meta/ar/") AS ?nextContainerEditorRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raContainerEditor), "/ra/")) AS ?container_editor_metaid)
OPTIONAL {?raContainerEditor foaf:familyName ?containerEditorFamilyName.}
OPTIONAL {?raContainerEditor foaf:givenName ?containerEditorGivenName.}
OPTIONAL {?raContainerEditor foaf:name ?container_editor_name.}
OPTIONAL {
?raContainerEditor datacite:hasIdentifier ?containerEditorIdentifier.
?containerEditorIdentifier datacite:usesIdentifierScheme ?containerEditorIdSchema;
literal:hasLiteralValue ?containerEditorIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?containerEditorIdSchema), "http://purl.org/spar/datacite/"), ":", ?containerEditorIdLiteralValue) AS ?container_editor_id)
}
BIND(
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0 && STRLEN(STR(?containerEditorGivenName)) > 0,
CONCAT(?containerEditorFamilyName, ", ", ?containerEditorGivenName),
IF(
STRLEN(STR(?containerEditorFamilyName)) > 0,
CONCAT(?containerEditorFamilyName, ","),
?container_editor_name
)
)
AS ?containerEditorName)
BIND(
IF(
STRLEN(STR(?container_editor_id)) > 0,
CONCAT(?containerEditorName, " [", ?container_editor_id, " ", ?container_editor_metaid, "]"),
CONCAT(?containerEditorName, " [", ?container_editor_metaid, "]")
)
AS ?container_editor_)
BIND(CONCAT(?container_editor_, ":", ?containerEditorRoleUri, ":", COALESCE(?nextContainerEditorRoleUri, "")) AS ?container_editor_info)
}
BIND(
IF(BOUND(?editor_info),
IF(BOUND(?container_editor_info),
CONCAT(?editor_info, "|", ?container_editor_info),
?editor_info),
IF(BOUND(?container_editor_info),
?container_editor_info,
"")
)
AS ?combined_editor_info)
OPTIONAL {
?res pro:isDocumentContextFor ?arPublisher.
?arPublisher pro:withRole pro:publisher;
pro:isHeldBy ?raPublisher.
OPTIONAL {
?arPublisher oco:hasNext ?nextPublisherRole .
}
BIND(STRAFTER(STR(?arPublisher), "https://w3id.org/oc/meta/ar/") AS ?publisherRoleUri)
BIND(STRAFTER(STR(?nextPublisherRole), "https://w3id.org/oc/meta/ar/") AS ?nextPublisherRoleUri)
BIND(CONCAT("omid:ra/", STRAFTER(STR(?raPublisher), "/ra/")) AS ?publisher_metaid)
?raPublisher foaf:name ?publisher_name.
OPTIONAL {
?raPublisher datacite:hasIdentifier ?publisherIdentifier__.
?publisherIdentifier__ datacite:usesIdentifierScheme ?publisherIdSchema;
literal:hasLiteralValue ?publisherIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?publisherIdSchema), "http://purl.org/spar/datacite/"), ":", ?publisherIdLiteralValue) AS ?publisher_id)
}
BIND(
IF(
STRLEN(STR(?publisher_id)) > 0,
CONCAT(?publisher_name, " [", ?publisher_id, " ", ?publisher_metaid, "]"),
CONCAT(?publisher_name, " [", ?publisher_metaid, "]")
)
AS ?publisher_)
BIND(CONCAT(?publisher_, ":", ?publisherRoleUri, ":", COALESCE(?nextPublisherRoleUri, "")) AS ?publisher_info)
}
OPTIONAL {
{
?res a fabio:JournalArticle;
frbr:partOf+ ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
?journal a fabio:Journal.
} UNION {
?res frbr:partOf ?journal.
BIND(CONCAT("omid:br/", STRAFTER(STR(?journal), "/br/")) AS ?venueMetaid)
}
?journal dcterm:title ?venueName.
OPTIONAL {
?journal datacite:hasIdentifier ?journalIdentifier__.
?journalIdentifier__ datacite:usesIdentifierScheme ?journalIdScheme;
literal:hasLiteralValue ?journalIdLiteralValue.
BIND(CONCAT(STRAFTER(STR(?journalIdScheme), "http://purl.org/spar/datacite/"), ":", ?journalIdLiteralValue) AS ?venue_ids_)
}
}
OPTIONAL {?res a ?type. FILTER (?type != fabio:Expression)}
OPTIONAL {?res dcterm:title ?title.}
OPTIONAL {?res prism:publicationDate ?pub_date.}
OPTIONAL {
?res frbr:embodiment ?re.
?re prism:startingPage ?startingPage;
prism:endingPage ?endingPage.
BIND(IF(STR(?startingPage) = STR(?endingPage), STR(?startingPage), CONCAT(?startingPage, '-', ?endingPage)) AS ?page)
}
OPTIONAL {
?res frbr:partOf ?resIssue.
?resIssue a fabio:JournalIssue;
fabio:hasSequenceIdentifier ?issue.
}
OPTIONAL {
?res frbr:partOf+ ?resVolume.
?resVolume a fabio:JournalVolume;
fabio:hasSequenceIdentifier ?volume.
}
} GROUP BY ?res ?title ?author_info ?combined_editor_info ?publisher_info ?type ?issue ?volume ?pub_date ?page ?venueName ?venueMetaid
}
BIND(CONCAT(?ids, IF(STR(?ids) != "", " ", ""), "omid:br/", STRAFTER(STR(?res), "/br/")) AS ?id)
BIND(
IF(BOUND(?venueMetaid),
IF(STR(?venue_ids) != "",
CONCAT(" [", ?venue_ids, " ", ?venueMetaid, "]"),
CONCAT(" [", ?venueMetaid, "]")
),
""
)
AS ?venueIdentifiers)
BIND(CONCAT(?venueName, ?venueIdentifiers) AS ?venue)
} GROUP BY ?id ?title ?type ?issue ?volume ?venue ?pub_date ?page