You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/explore-and-author/link-rules/index.md
+48-50Lines changed: 48 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,14 +36,15 @@ Use the Search field (③) to quickly locate an existing link rule by name or ke
36
36
Click the arrow icon (④) next to a rule to expand or collapse its details.
37
37
38
38
In the Details tab (⑦), you’ll find:
39
-
- General Information (operators, paths)
40
-
- Result Statistics
41
-
- Rule Status
42
-
- Publication Information
43
-
- Activities
44
-
- The Custom tab contains any additional user-defined properties.
45
39
46
-
In the rule execution panel (⑥), you can *Execute* the rule (▶ icon), *Delete* the rule (🗑 icon) and *Clone* (⿻ icon) it or modify its configuration (✏ icon).
40
+
- General Information (operators, paths)
41
+
- Result Statistics
42
+
- Rule Status
43
+
- Publication Information
44
+
- Activities
45
+
- The Custom tab contains any additional user-defined properties.
46
+
47
+
In the rule execution panel (⑥), you can *Execute* the rule (▶ icon), *Delete* the rule (🗑 icon) and *Clone* (⿻ icon) it or modify its configuration (✎ icon).
47
48
48
49
### Open the Link Rule editor
49
50
@@ -54,7 +55,6 @@ Click on the rule name in the *Linking* column (⑤) to open the link rule edito
54
55
To create a new rule, click the blue plus button (⑧) in the bottom-right corner.
55
56
Follow the prompts to define the template, connecting predicate, etc.
56
57
57
-
58
58
## Setup
59
59
60
60
### Template Catalog
@@ -63,16 +63,15 @@ Create a new graph that holds templates for Link Rules. The graph IRI will be ne
63
63
64
64
!!! info
65
65
66
-
Suggestion for Template Catalog Graph IRI: ´https://ns.eccenca.com/data/linkruletemplates/´. You may use [this file](./CMEM_Link_Rule_Template_Catalog.ttl) as the graphs content.
66
+
Suggestion for Template Catalog Graph IRI: `https://ns.eccenca.com/data/linkruletemplates/`. You may use [this file](./CMEM_Link_Rule_Template_Catalog.ttl) as the graphs content.
67
67
68
68
!!! info
69
-
69
+
70
70
This graph could be prepared even it is not used in many setups.
71
71
72
72
!!! info
73
73
74
-
If there is no Shape for Link Rule Template load this file as a `New Shape Catalog` (Graph label: Link Rules Shape Catalog, Graph IRI: ´https://vocab.eccenca.com/shacl/link_rules/´).
75
-
74
+
If there is no Shape for Link Rule Template load [this file](./linkruletheme.shapes.ttl) as a `New Shape Catalog` (Graph label: Link Rules Shape Catalog, Graph IRI: `https://vocab.eccenca.com/shacl/link_rules/`).
76
75
77
76
### Link Rules Build project
78
77
@@ -86,11 +85,13 @@ Inside this project create a new workflow that will be used to register all publ
86
85
87
86
{ class="bordered" }
88
87
89
-
Inside this project create *Knowledge Graph datasets* for these graphs you want to use for linking.
88
+
!!! warning
90
89
91
-
!!! info
90
+
This project is managed by the *Link Rules module*. **You should not alter elements inside the project unless you know what you are doing.**
92
91
93
-
This project is managed by the *Link Rules module*. You should not alter elements inside the project unless you know what you are doing.
92
+
#### Create Knowledge Graph Datasets used for Linking
93
+
94
+
Inside this project you need to create *Knowledge Graph datasets* for every graph that will be used in a linking rule (i.e., the source / target graphs that hold your resources to be linked).
94
95
95
96
### Access condition
96
97
@@ -100,45 +101,42 @@ This access conditions is used by the Link Rules module to grant write access to
100
101
101
102
!!! info
102
103
103
-
It is currently not possible to set a *Access Condition Identifier* nor to simply retrieve the IRI of an existing access condition. Hence the admin needs to retrieve the IRI of this access condition from the CMEM Access Conditions graph.
104
+
It is currently not possible to set a *Access Condition Identifier* nor to simply retrieve the IRI of an existing access condition. Hence the admin needs to retrieve the IRI of this access condition from the CMEM Access Conditions graph.
104
105
105
106
### Workspace configuration
106
107
107
108
Enable the *Link Rules* module.
108
109
109
110
In the following let us walk through the configuration options.
110
111
111
-
-**Order**: The position of the Link Rules module in the menu.
112
-
-**Template Catalog IRI**: The IRI of the template catalog we just created. As the name implies, the Template Catalog holds all templates for usage in the Link Rules module. Templates allow preselecting patterns for easier rule creation.
113
-
-**Project ID**: The *Project Identifier* of the Link Rules Build project we just created. Link Rules will be managing this project and add the rules to it. To get the id of a project, open the project in the build component, select the project and choose 'Show identifier' in the context menu, in the top right. The project needs to have a workflow, which is used to execute the rules and has to be configured in this section. Furthermore, the projects needs one or more Datasets, which can be selected in the templates.
114
-
115
-
116
-
-**Published Rules Workflow ID**: The *Item Identifier* of the workflow in the Link Rules Build project we just created.
117
-
-**Access Condition IRI**: The IRI of the Access Condition we just created.
118
-
-**Output Graph Template**: A template for graph IRIs which will hold the results of a linking rule. It needs to include the placeholder `{name}`, for example `http://eccenca.com/user_rules/result_{name}`.
119
-
-**Publication Graph Template**: A template for graph IRIs which will import the result graph once the results are published. This can be a simple graph IRI, for example `http://eccenca.com/user_rules/results_published`.
120
-
-**Result Download Query**: A query that will be used to download the results of a linking rule. By default all resource IRIs will be listed as `resource1` and `resource2`. Whenever you want to provide other data via the *Download results* function, such as a specific identifier or a label instead of the IRI, this query can be adopted here.
121
-
-**Annotation Class IRI** (optional): Rule results can be enriched with annotations. Instances of this class can be selected in the link rules interface. Instances have both a connection to the rule and the result. The connection is defined by the *Annotation Link Property IRI*. The values of the annotation are defined by the *Annotation Value Property IRI*. This relation is materialized as `rdf:value` in the output graph upon execution.
122
-
-**Annotation Value Property IRI** (optional): Values of sub-properties of this property are actually connected as `rdf:values` to the generated links of a rule.
123
-
-**Annotation Link Property IRI** (optional): The connection between a rule and an annotation resource (i.e. instance of *Annotation Class IRI*) is defined by this property.
124
-
-**Annotation Graph IRI** (optional): The IRI of the graph, from which instances of the *Annotation Class IRI* are selected.
112
+
-**Order**: The position of the Link Rules module in the menu.
113
+
-**Template Catalog IRI**: The IRI of the template catalog we just created. As the name implies, the Template Catalog holds all templates for usage in the Link Rules module. Templates allow preselecting patterns for easier rule creation.
114
+
-**Project ID**: The *Project Identifier* of the Link Rules Build project we just created. Link Rules will be managing this project and add the rules to it. To get the id of a project, open the project in the build component, select the project and choose 'Show identifier' in the context menu, in the top right. The project needs to have a workflow, which is used to execute the rules and has to be configured in this section. Furthermore, the projects needs one or more Datasets, which can be selected in the templates.
115
+
-**Published Rules Workflow ID**: The *Item Identifier* of the workflow in the Link Rules Build project we just created.
116
+
-**Access Condition IRI**: The IRI of the Access Condition we just created.
117
+
-**Output Graph Template**: A jinja template for the graph IRIs which will hold the results of a linking rule. It needs to include the placeholder `{name}`, for example `http://eccenca.com/user_rules/result_{name}`.
118
+
-**Publication Graph Template**: A jinja template, that generates the IRI of the graph, into which the output graph is imported via an `owl:imports`. This can be a simple graph IRI, for example `http://eccenca.com/user_rules/results_published`.
119
+
-**Result Download Query**: A query that will be used to download the results of a linking rule. By default all resource IRIs will be listed as `resource1` and `resource2`. Whenever you want to provide other data via the *Download results* function, such as a specific identifier or a label instead of the IRI, this query can be adapted here.
120
+
-**Annotation Class IRI** (optional): Rule results can be enriched with annotations. Instances of this class can be selected in the link rules interface. Instances have both a connection to the rule and the result. The connection is defined by the *Annotation Link Property IRI*. The values of the annotation are defined by the *Annotation Value Property IRI*. This relation is materialized as `rdf:value` in the output graph upon execution.
121
+
-**Annotation Value Property IRI** (optional): Values of sub-properties of this property are actually connected as `rdf:values` to the generated links of a rule.
122
+
-**Annotation Link Property IRI** (optional): The connection between a rule and an annotation resource (i.e. instance of *Annotation Class IRI*) is defined by this property.
123
+
-**Annotation Graph IRI** (optional): The IRI of the graph, from which instances of the *Annotation Class IRI* are selected.
125
124
126
125
When the configuration is saved the *Link Rules module* should appear in the *Build* section of the menu.
127
126
128
-
129
127
### Create a Link Rule Template
130
128
131
129
Templates can be managed at *Link Rules module* -> *Manage Templates*.
132
130
133
131
Create a new Link Rule Template. Such a template describes an abstract link rule with pre-defined settings.
134
132
135
-
-**Label**: A mandatory label for the template.
136
-
-**Target Property**: The (default) connecting property for the derived link rules. The property can be individually set for each link rule later on.
137
-
-**Input** group: The datasets which hold the subjects (source) and objects (target) to link.
138
-
-**Source/Target Dataset**: The dataset holding the resources to link.
139
-
-**Source/Target Resource Pattern**: A filter description template for the resources to link. This is a JSON object as described in [Graph Resource Pattern](#graph-resource-pattern). When creating a Link Rule based on this template these resource patterns can be altered. So this template may remain simple, but should provide sufficient help for the end user to define a proper resource selection.
140
-
-**Output** group: The dataset which will hold the Link Rule results.
141
-
-**Output Graph**: The graph IRI where to write the Link Rule results. Available placeholders: `{name}` for the Link Rules name.
133
+
-**Label**: A mandatory label for the template.
134
+
-**Target Property**: The (default) connecting property for the derived link rules. The property can be individually set for each link rule later on.
135
+
-**Input** group: The datasets which hold the subjects (source) and objects (target) to link.
136
+
-**Source/Target Dataset**: The dataset holding the resources to link.
137
+
-**Source/Target Resource Pattern**: A filter description template for the resources to link. This is a JSON object as described in [Graph Resource Pattern](#graph-resource-pattern). When creating a Link Rule based on this template these resource patterns can be altered. So this template may remain simple, but should provide sufficient help for the end user to define a proper resource selection.
138
+
-**Output** group: The dataset which will hold the Link Rule results.
139
+
-**Output Graph**: The graph IRI where to write the Link Rule results. Available placeholders: `{name}` for the Link Rules name.
0 commit comments