Skip to content

Commit

Permalink
structured_search
Browse files Browse the repository at this point in the history
  • Loading branch information
mafragias committed Jun 4, 2021
1 parent bdec3fc commit cd05670
Show file tree
Hide file tree
Showing 10 changed files with 1,245 additions and 189 deletions.
6 changes: 3 additions & 3 deletions Frick/mappings-fc-fr.x3ml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
</range>
</link>

<!-- <link>
<link>
<path>
<source_relation>
<relation>marc:datafield[@tag="340"]/marc:subfield[@code="c"]</relation>
Expand All @@ -445,7 +445,7 @@
<if>
<equals value="gernsheim">@id</equals>
</if>
<relationship>fr:Work_produced_using_technique_Technique</relationship>
<relationship>fr:Work_produced_using_gernsheim_Technique</relationship>
</target_relation>
</path>
<range>
Expand All @@ -459,7 +459,7 @@
</entity>
</target_node>
</range>
</link> -->
</link>

</mapping>

Expand Down
4 changes: 1 addition & 3 deletions Frick/mappings-work.x3ml
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,6 @@
</range>
</link>


<link>
<path>
<source_relation>
Expand Down Expand Up @@ -1784,7 +1783,6 @@
</range>
</link>


<link>
<path>
<source_relation>
Expand Down Expand Up @@ -3766,7 +3764,7 @@
</if>
<entity>
<type>crm:E29_Design_or_Procedure</type>
<instance_generator name="URIwithVocabType">
<instance_generator name="URIwithGernsheimTypeAndId">
<arg name="id" type="xpath">text()</arg>
</instance_generator>
<label_generator name="Literal">
Expand Down
4 changes: 4 additions & 0 deletions Hertziana/generator-policy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
</custom>
</generator>

<generator name="URIwithGernsheimTypeAndId" prefix="gernsheim">
<pattern>{id}</pattern>
</generator>

<generator name="IIIF_Generator" prefix="iiif_image">
<pattern>{id}{postfix}</pattern>
</generator>
Expand Down
102 changes: 102 additions & 0 deletions Hertziana/mappings-photos-fc-fr.x3ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<namespace prefix="iiif_json" uri="https://ids.lib.harvard.edu/ids/iiif/"/>
<namespace prefix="fc" uri="https://pharos.artresearch.net/resource/custom/fc/"/>
<namespace prefix="fr" uri="https://pharos.artresearch.net/resource/fr/"/>
<namespace prefix="gernsheim" uri="https://pharos.artresearch.net/resource/gernsheim/"/>
</namespaces>
<mappings>

Expand Down Expand Up @@ -76,6 +77,32 @@
</target_node>
</range>
</link>


<link>
<path>
<source_relation>
<relation>a8515</relation>
</source_relation>
<target_relation>
<if>
<equals value="true">contains(../a8540/text(),'gern')</equals>
</if>
<relationship>fr:Photo_produced_using_gernsheim_Technique</relationship>
</target_relation>
</path>
<range>
<source_node>a8515</source_node>
<target_node>
<entity>
<type>fc:technique</type>
<instance_generator name="URIwithGernsheimTypeAndId">
<arg name="id" type="xpath">text()</arg>
</instance_generator>
</entity>
</target_node>
</range>
</link>

<link>
<path>
Expand Down Expand Up @@ -183,6 +210,31 @@
</target_node>
</range>
</link>

<link>
<path>
<source_relation>
<relation>a8515</relation>
</source_relation>
<target_relation>
<if>
<equals value="true">contains(../a8540/text(),'gern')</equals>
</if>
<relationship>fr:Photo_produced_using_gernsheim_Technique</relationship>
</target_relation>
</path>
<range>
<source_node>a8515</source_node>
<target_node>
<entity>
<type>fc:technique</type>
<instance_generator name="URIwithGernsheimTypeAndId">
<arg name="id" type="xpath">text()</arg>
</instance_generator>
</entity>
</target_node>
</range>
</link>

<link>
<path>
Expand Down Expand Up @@ -290,6 +342,31 @@
</target_node>
</range>
</link>

<link>
<path>
<source_relation>
<relation>a8515</relation>
</source_relation>
<target_relation>
<if>
<equals value="true">contains(../a8540/text(),'gern')</equals>
</if>
<relationship>fr:Photo_produced_using_gernsheim_Technique</relationship>
</target_relation>
</path>
<range>
<source_node>a8515</source_node>
<target_node>
<entity>
<type>fc:technique</type>
<instance_generator name="URIwithGernsheimTypeAndId">
<arg name="id" type="xpath">text()</arg>
</instance_generator>
</entity>
</target_node>
</range>
</link>

<link>
<path>
Expand Down Expand Up @@ -397,6 +474,31 @@
</target_node>
</range>
</link>

<link>
<path>
<source_relation>
<relation>a8515</relation>
</source_relation>
<target_relation>
<if>
<equals value="true">contains(../a8540/text(),'gern')</equals>
</if>
<relationship>fr:Photo_produced_using_gernsheim_Technique</relationship>
</target_relation>
</path>
<range>
<source_node>a8515</source_node>
<target_node>
<entity>
<type>fc:technique</type>
<instance_generator name="URIwithGernsheimTypeAndId">
<arg name="id" type="xpath">text()</arg>
</instance_generator>
</entity>
</target_node>
</range>
</link>

<link>
<path>
Expand Down
Loading

0 comments on commit cd05670

Please sign in to comment.