DEFINE input:inference 'ariadneplus_rules'

CONSTRUCT {
 <${subjectURL}> rdfs:label ?label .

<${subjectURL}> crm:P1_is_identified_by ?IDRes .
?IDRes a crm:E42_Identifier .
?IDRes rdfs:label ?ID_label .

<${subjectURL}> crm:P102_has_title ?title .

 <${subjectURL}> crm:P3_has_note ?description .

 <${subjectURL}> a ?type .

 <${subjectURL}> crmpe:PP1_currently_offers ?offeredservice .

<${subjectURL}> crmpe:PP44_has_maintaining_team ?team .
 ?team crm:P76_has_contact_point ?contactpoint .
 ?contactpoint crm:P2_has_type ?contactpointType .
 ?contactpoint rdfs:label ?contactpointLabel .
 ?contactpointType rdfs:label ?contactpointTypeLabel .

 <${subjectURL}> crm:P4_has_time-span ?time_span .
 ?time_span crm:P82a_begin_of_the_begin ?time_actual .
}
WHERE {
 <${subjectURL}> a crmpe:PE35_Project .
 <${subjectURL}> a ?type .
   {
   <${subjectURL}> crm:P1_is_identified_by ?IDRes .
   ?IDRes a crm:E42_Identifier .
   ?IDRes rdfs:label ?ID_label .
   }
   UNION
 {
  <${subjectURL}> crm:P1_is_identified_by ?titleRes .
  ?titleRes a crm:E41_Appellation .
  ?titleRes rdfs:label ?title .
 }
UNION{ <${subjectURL}> crm:P3_has_note ?description .}
UNION{ <${subjectURL}> rdfs:label ?label .}

UNION{
 <${subjectURL}> crmpe:PP1_currently_offers ?offeredservice .
}
UNION{
 <${subjectURL}> crmpe:PP44_has_maintaining_team ?team .
 }
 UNION{
  <${subjectURL}> crmpe:PP44_has_maintaining_team ?team .
 ?team crm:P76_has_contact_point ?contactpoint .
 ?contactpoint crm:P2_has_type ?contactpointType .
 ?contactpoint rdfs:label ?contactpointLabel .
 ?contactpointType rdfs:label ?contactpointTypeLabel .
 }
UNION {
 <${subjectURL}> crm:P4_has_time-span ?time_span .
 ?time_span crm:P82a_begin_of_the_begin ?time_actual .
 }

}
