Revision 10224
Added by Peter Slaughter almost 6 years ago
application-context-prov-base.xml | ||
---|---|---|
334 | 334 |
</constructor-arg> |
335 | 335 |
</bean> |
336 | 336 |
|
337 |
<!-- Find the source pids used by a program --> |
|
338 |
<!-- This is the inverse relationship of prov_usedByProgram --> |
|
337 | 339 |
<bean id="prov20150115.hasSources" class="org.dataone.cn.indexer.annotation.SparqlField"> |
338 | 340 |
<constructor-arg name="name" value="prov_hasSources" /> |
339 | 341 |
<constructor-arg name="query"> |
... | ... | |
351 | 353 |
SELECT (str(?pidValue) as ?pid) (str(?sourceDataPidValue) as ?prov_hasSources) |
352 | 354 |
FROM <$GRAPH_NAME> |
353 | 355 |
WHERE { |
354 |
?derived_data prov:wasDerivedFrom ?source_data . |
|
355 |
?derived_data cito:documentedBy ?derived_metadata . |
|
356 |
?derived_metadata dcterms:identifier ?pidValue . |
|
356 |
?execution prov:used ?source_data . |
|
357 |
?execution prov:qualifiedAssociation ?association . |
|
358 |
?association prov:hadPlan ?program . |
|
359 |
?program dcterms:identifier ?pidValue . |
|
357 | 360 |
?source_data dcterms:identifier ?sourceDataPidValue . |
358 | 361 |
} |
359 | 362 |
]]> |
Also available in: Unified diff
Fix problem with prov_hasSources not being indexed