-
Notifications
You must be signed in to change notification settings - Fork 3
2.7 subject map
SYNTAX:
<subject-map rr:class="string" rr:template="string">
<subject-map rr:template="string">
<subject-map rr:subject="string">
CONTAINED IN:
<mapping>
DESCRIPTION:
A subject-map is a function that creates the subject for each logical table row of a logical table.
A subject-map is represented by two term maps as follow:
- A class map, optionally specified using
rr:class
whose value MUST be a constant-valued term map that specifies a class URI, and - A subject map, specified using
rr:template
whose value MUST be a template-valued term map or usingrr:subject
whose value MUST be a constant-valued term map in IRI.
If the rr:class
is specified, these term maps will generate the subject and object of the RDF triples with predicate that is defined permanently as http://www.w3.org/1999/02/22-rdf-syntax-ns#type
.
A constant-valued term map is a term map that ignores the logical table row and always generates the same RDF term.
A template-valued term map is a term map that generates a URI from a string template declared in the <uri-template>
element. The value MUST be a valid URI template call which specifies the template name and one or more column names as its arguments. The number of the arguments must be according to the URI template declaration (see URI template).
The following example shows a template-valued term map:
<subject-map rr:class="Employee" rr:template="Employee(emp_no)"/>
where Employee
is a URI template name declared in <uri-template>
and emp_no
is a valid column name in logical table.
ATTRIBUTES:
-
rr:class
: A constant-valued term map that specifies the class URI in the application domain. -
rr:template
: A template-valued term map that specifies a reference to a valid URI template declared in<uri-template>
element. -
rr:subject
: A constant-valued term map. MUST be an IRI (since 1.3)
SEE ALSO:
Join the user community or follow the development on Twitter @obda_semantika