Revision 8781
Added by ben leinfelder over 10 years ago
metacat-index/src/main/resources/application-context-oa.xml | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<bean id="rdfXmlSubprocessor" class="edu.ucsb.nceas.metacat.index.annotation.RdfXmlSubprocessor"> |
7 | 7 |
<property name="matchDocument" |
8 |
value="/d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar']" /> |
|
8 |
value="/d100:systemMetadata/formatId[text()='http://www.w3.org/TR/rdf-syntax-grammar'] | /d100:systemMetadata/formatId[text()='http://www.openarchives.org/ore/terms']" />
|
|
9 | 9 |
<property name="fieldList"> |
10 | 10 |
<list> |
11 | 11 |
<ref bean="annotation.standard" /> |
12 | 12 |
<ref bean="annotation.characteristic" /> |
13 | 13 |
<ref bean="annotation.creator" /> |
14 |
<ref bean="prov.wasDerivedFrom" /> |
|
15 |
|
|
14 | 16 |
</list> |
15 | 17 |
</property> |
16 | 18 |
</bean> |
17 | 19 |
|
20 |
<bean id="prov.wasDerivedFrom" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField"> |
|
21 |
<constructor-arg name="name" value="wasDerivedFrom_sm" /> |
|
22 |
<constructor-arg name="query"> |
|
23 |
<value> |
|
24 |
<![CDATA[ |
|
25 |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> |
|
26 |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
|
27 |
PREFIX owl: <http://www.w3.org/2002/07/owl#> |
|
28 |
PREFIX prov: <http://www.w3.org/ns/prov#> |
|
29 |
PREFIX ore: <http://www.openarchives.org/ore/terms/> |
|
30 |
PREFIX dcterms: <http://purl.org/dc/terms/> |
|
31 |
|
|
32 |
SELECT ?pid ?wasDerivedFrom_sm |
|
33 |
FROM <$GRAPH_NAME> |
|
34 |
WHERE { |
|
35 |
|
|
36 |
?primary_data ore:isDocumentedBy ?primary_metadata . |
|
37 |
?derived_data prov:wasDerivedFrom ?primary_data . |
|
38 |
?derived_data ore:isDocumentedBy ?derived_metadata . |
|
39 |
?derived_metadata dcterms:identifier ?pid . |
|
40 |
?primary_metadata dcterms:identifier ?wasDerivedFrom_sm . |
|
41 |
|
|
42 |
} |
|
43 |
]]> |
|
44 |
</value> |
|
45 |
</constructor-arg> |
|
46 |
</bean> |
|
47 |
|
|
18 | 48 |
<bean id="annotation.standard" class="edu.ucsb.nceas.metacat.index.annotation.SparqlField"> |
19 | 49 |
<constructor-arg name="name" value="standard_sm" /> |
20 | 50 |
<constructor-arg name="query"> |
Also available in: Unified diff
include ORE formatId as handled by the RDF subprocessor and index prov:wasDerivedFrom field where it exists in the RDF model. https://projects.ecoinformatics.org/ecoinfo/issues/6548