-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
283 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/mapping.halex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<hale-project version="5.1.0.qualifier"> | ||
<name>mapping</name> | ||
<author>hale</author> | ||
<created>2024-02-07T10:28:58.718+01:00</created> | ||
<modified>2024-02-07T10:39:07.594+01:00</modified> | ||
<save-config action-id="project.save" provider-id="eu.esdihumboldt.hale.io.project.hale25.xml.writer"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="projectFiles.separate">false</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.project.hale25.xml</setting> | ||
<setting name="target">file:/home/simon/repos/hale/cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/mapping.halex</setting> | ||
</save-config> | ||
<resource action-id="eu.esdihumboldt.hale.io.schema.read.source" provider-id="eu.esdihumboldt.hale.io.schemabuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">ec2ec25e-5940-4b91-8ccd-9ea9455a3dbc</setting> | ||
<setting name="source">source-schema.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.schemabuilder</setting> | ||
</resource> | ||
<resource action-id="eu.esdihumboldt.hale.io.schema.read.target" provider-id="eu.esdihumboldt.hale.io.schemabuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">646e49d6-a2f9-462c-8bfb-e6a2a47abef1</setting> | ||
<setting name="source">target-schema.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.schemabuilder</setting> | ||
</resource> | ||
<resource action-id="eu.esdihumboldt.hale.io.instance.read.source" provider-id="eu.esdihumboldt.hale.io.instancebuilder"> | ||
<setting name="charset">UTF-8</setting> | ||
<setting name="resourceId">95bd5843-dfc0-43be-a901-03e7b843d44a</setting> | ||
<setting name="source">source-instances.groovy</setting> | ||
<setting name="contentType">eu.esdihumboldt.hale.io.instancebuilder</setting> | ||
</resource> | ||
<file name="alignment.xml" location="mapping.halex.alignment.xml"/> | ||
<file name="styles.sld" location="mapping.halex.styles.sld"/> | ||
</hale-project> |
107 changes: 107 additions & 0 deletions
107
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/mapping.halex.alignment.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<alignment xmlns="http://www.esdi-humboldt.eu/hale/alignment"> | ||
<cell relation="eu.esdihumboldt.hale.align.join" id="Ccb953cb3-15d3-44c5-bea4-685b6e217b1f" priority="normal"> | ||
<source name="types"> | ||
<class> | ||
<type name="A" ns="source"/> | ||
</class> | ||
</source> | ||
<source name="types"> | ||
<class> | ||
<type name="B" ns="source"/> | ||
</class> | ||
</source> | ||
<source name="types"> | ||
<class> | ||
<type name="C" ns="source"/> | ||
</class> | ||
</source> | ||
<target> | ||
<class> | ||
<type name="T" ns="target"/> | ||
</class> | ||
</target> | ||
<parameter value="true" name="innerJoin"/> | ||
<complexParameter name="join"> | ||
<jp:join-parameter xmlns:jp="http://www.esdi-humboldt.eu/hale/join"> | ||
<class> | ||
<type name="A" ns="source"/> | ||
</class> | ||
<class> | ||
<type name="B" ns="source"/> | ||
</class> | ||
<class> | ||
<type name="C" ns="source"/> | ||
</class> | ||
<jp:condition> | ||
<property> | ||
<type name="A" ns="source"/> | ||
<child name="a" ns="source"/> | ||
</property> | ||
<property> | ||
<type name="B" ns="source"/> | ||
<child name="a" ns="source"/> | ||
</property> | ||
</jp:condition> | ||
<jp:condition> | ||
<property> | ||
<type name="B" ns="source"/> | ||
<child name="b" ns="source"/> | ||
</property> | ||
<property> | ||
<type name="C" ns="source"/> | ||
<child name="b" ns="source"/> | ||
</property> | ||
</jp:condition> | ||
</jp:join-parameter> | ||
</complexParameter> | ||
</cell> | ||
<cell relation="eu.esdihumboldt.hale.align.rename" id="C6a559ff9-954f-4372-b502-fddb4af76b98" priority="normal"> | ||
<source> | ||
<property> | ||
<type name="A" ns="source"/> | ||
<child name="a" ns="source"/> | ||
</property> | ||
</source> | ||
<target> | ||
<property> | ||
<type name="T" ns="target"/> | ||
<child name="a" ns="target"/> | ||
</property> | ||
</target> | ||
<parameter value="false" name="ignoreNamespaces"/> | ||
<parameter value="false" name="structuralRename"/> | ||
</cell> | ||
<cell relation="eu.esdihumboldt.hale.align.rename" id="C4bd7cbc7-ea96-4c2d-a46b-711d52746815" priority="normal"> | ||
<source> | ||
<property> | ||
<type name="B" ns="source"/> | ||
<child name="b" ns="source"/> | ||
</property> | ||
</source> | ||
<target> | ||
<property> | ||
<type name="T" ns="target"/> | ||
<child name="b" ns="target"/> | ||
</property> | ||
</target> | ||
<parameter value="false" name="ignoreNamespaces"/> | ||
<parameter value="false" name="structuralRename"/> | ||
</cell> | ||
<cell relation="eu.esdihumboldt.hale.align.rename" id="Cf500df0d-5694-4646-8b2f-9b15348ad719" priority="normal"> | ||
<source> | ||
<property> | ||
<type name="C" ns="source"/> | ||
<child name="c" ns="source"/> | ||
</property> | ||
</source> | ||
<target> | ||
<property> | ||
<type name="T" ns="target"/> | ||
<child name="c" ns="target"/> | ||
</property> | ||
</target> | ||
<parameter value="false" name="ignoreNamespaces"/> | ||
<parameter value="false" name="structuralRename"/> | ||
</cell> | ||
</alignment> |
3 changes: 3 additions & 0 deletions
3
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/mapping.halex.styles.sld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><sld:UserStyle xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc"> | ||
<sld:Name>Default Styler</sld:Name> | ||
</sld:UserStyle> |
55 changes: 55 additions & 0 deletions
55
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/source-instances.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
createCollection { | ||
|
||
/* | ||
* Sets of instances that are joined | ||
*/ | ||
|
||
A { | ||
a('a1') | ||
} | ||
B { | ||
a('a1') | ||
b('b1') | ||
} | ||
C { | ||
b('b1') | ||
c('c1') | ||
} | ||
|
||
A { | ||
a('a3') | ||
} | ||
B { | ||
a('a3') | ||
b('b1') | ||
} | ||
|
||
/* | ||
* Sets of instances that are not joined because of missing links | ||
*/ | ||
|
||
A { | ||
a('a2') | ||
} | ||
B { | ||
a('a2') | ||
b('b2') | ||
} | ||
C { | ||
b('c2') | ||
c('c2') | ||
} | ||
|
||
A { | ||
a('a4') | ||
} | ||
B { | ||
a('a4') | ||
b('b4') | ||
} | ||
|
||
A { | ||
a('a5') | ||
} | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/source-schema.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
schema('source') { | ||
A { | ||
a() | ||
} | ||
|
||
B { | ||
a() | ||
b(cardinality: '?') | ||
} | ||
|
||
C { | ||
b() | ||
c(cardinality: '?') | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/target-instances.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
createCollection { | ||
|
||
T { | ||
a('a1') | ||
b('b1') | ||
c('c1') | ||
} | ||
|
||
T { | ||
a('a3') | ||
b('b1') | ||
c('c1') | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
cst/plugins/eu.esdihumboldt.cst.test/testdata/inner_join/target-schema.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
schema('target') { | ||
T { | ||
a() | ||
b() | ||
c() | ||
} | ||
} |