Project

General

Profile

« Previous | Next » 

Revision 51801

Added sparql template for E78_Collection

View differences:

modules/dnet-parthenos-publisher/trunk/src/main/resources/eu/dnetlib/parthenos/sparql/E78_Collection.sparql
1
DEFINE input:inference 'parthenos_rules'
2

  
3
CONSTRUCT {
4
	<${subjectURL}> crm:P1_is_identified_by ?title .
5
	<${subjectURL}> crm:P3_has_note ?description .
6
	<${subjectURL}> a ?type .
7
    <${subjectURL}> rdfs:label ?label .
8

  
9
     <${subjectURL}> crm:P129_is_about ?about .
10
     ?about a ?aboutType .
11
     ?about rdfs:label ?aboutLabel .
12

  
13
     <${subjectURL}> crm:P2_has_type ?e55TypeLabel .
14

  
15
     <${subjectURL}> crm:P46_is_composed_of ?Col_Part .
16
     <${subjectURL}> crmpe:PP4i_is_object_hosted_by ?host_serv .
17
     <${subjectURL}> crmpe:PP32i_is_curated_by ?curator .
18
     <${subjectURL}> <creator> ?creator .
19

  
20
     <${subjectURL}> crm:P72_has_language ?languageLabel .
21

  
22
}
23
WHERE {
24
 <${subjectURL}> a crm:E78_Collection .
25
 <${subjectURL}> a ?type .
26
{
27
 <${subjectURL}> crm:P1_is_identified_by ?titleRes .
28
 ?titleRes a crm:E41_Appellation .
29
 ?titleRes rdfs:label ?title .
30
}
31
UNION{
32
 <${subjectURL}> crm:P3_has_note ?description .
33
}
34
UNION{
35
 <${subjectURL}> rdfs:label ?label .
36
}
37
UNION{
38
<${subjectURL}> crm:P129_is_about ?about .
39
?about a ?aboutType .
40
?about rdfs:label ?aboutLabel .
41
}
42
UNION {
43
<${subjectURL}> crm:P2_has_type ?e55Type .
44
?e55Type rdfs:label ?e55TypeLabel .
45
}
46
UNION{ <${subjectURL}> crm:P46_is_composed_of ?Col_Part .}
47
UNION{ <${subjectURL}> crmpe:PP4i_is_object_hosted_by ?host_serv .}
48
UNION{ <${subjectURL}> crmpe:PP32i_is_curated_by ?curator .}
49
UNION {
50
	<${subjectURL}> crm:P94i_was_created_by ?Creation_event .
51
	?Creation_event crm:P14_carried_out_by ?creator .
52
}
53
UNION {
54
	<${subjectURL}> crm:P72_has_language ?language .
55
	?language rdfs:label ?languageLabel .
56
}
57

  
58
} LIMIT 30000

Also available in: Unified diff