-
Notifications
You must be signed in to change notification settings - Fork 35
conversion:bundled_by
See Suggested ordering of predicates on a conversion:Enhancement.
Values can be bundled by an implicit resource (as in Dataset 10025) or an inline resource (as in Dataset 1147). In the case of an implicit resource a URI is created to bundle the values, while in the inline case no URI is created and the values are associated with a resource that was promoted from an existing value.
(TODO: because of the poor quality of 1147, a new example needs to be used. -Tim)
e.g., Dataset 1147
@prefix : <http://logd.tw.rpi.edu/source/data-gov/dataset/1147/params/enhancement/1/> .
:dataset a void:Dataset;
conv:base_uri "http://logd.tw.rpi.edu"^^xsd:anyURI;
conv:source_identifier "data-gov";
conv:dataset_identifier "1147";
conv:dataset_version "2009-Oct-08";
conv:conversion_process [
conversion:enhance [
ov:csvCol 3;
ov:csvHeader "State_Code_Dest";
<font color="#FF0000">conversion:range rdfs:Resource</font>; # Inline bundles must be promoted to resources.
a conv:TypedResourcePromotionEnhancement; # This is not required for inline bundling.
conv:range_name "state";
];
conv:enhance [
ov:csvCol 5;
ov:csvHeader "State_Abbrv";
conv:range rdfs:Literal;
<font color="#FF0000">a conv:ExistingBundleEnhancement;
conv:bundled_by [ ov:csvCol 3 ]</font>;
];
];
.
@prefix ds1147: <http://logd.tw.rpi.edu/source/data-gov/dataset/1147/version/2009-Oct-08/> .
@prefix raw: <http://logd.tw.rpi.edu/source/data-gov/dataset/1147/vocab/raw/> .
@prefix e1: <http://logd.tw.rpi.edu/source/
ds1147:thing_6
raw:state_code_origin "01";
raw:state_abbrv "AL";
.
becomes
ds1147:thing_6
e1:state_code_origin <http://logd.tw.rpi.edu/source/data-gov/dataset/1147/version/2009-Oct-08/state/01>;
# e1:state_abbrv does NOT describe ds1146:thing_6
.
<http://logd.tw.rpi.edu/source/data-gov/dataset/1147/version/2009-Oct-08/state/01>
e1:state_abbrv "AL";
rdfs:label "01";
.
(TODO: one-level vs hierarchical)
Other datasets that benefit from this enhancement include Dataset 1492.
conversion:bundled_by
rdfs:domain conversion:Enhancement;
rdfs:range [ owl:unionOf ( [[conversion:ImplicitBundle]] [[conversion:ExplicitBundle]] ) ] .
conversion:ImplicitBundle is explicitly typed and has conversion:property_name and conversion:type_name. implicit bundle does NOT have a ov:csvCol.
conversion:ImplicitBundle
rdfs:subClassOf [ owl:onProperty ov:csvCol; owl:maxCardinality 0; a owl:Restriction ] ,
[ owl:onProperty conversion:property_name; owl:cardinality 1; a owl:Restriction ] ,
[ owl:onProperty conversion:type_name; owl:maxCardinality 1; a owl:Restriction ] .
conversion:ExplicitBundle must have an ov:csvCol .
conversion:ExplicitBundle
rdfs:subClassOf [ owl:onProperty ov:csvCol; owl:minCardinality 1; a owl:Restriction ] ,
[ owl:onProperty conversion:property_name; owl:maxCardinality 0; a owl:Restriction ] ,
[ owl:onProperty conversion:type_name; owl:maxCardinality 0; a owl:Restriction ] .
see also conversion:property_name, conversion:type_name .
Currently still being described at Enhancement Parameters Reference; will transition to here.