Skip to content

conversion:domain_name

timrdf edited this page Nov 21, 2011 · 36 revisions

See conversion:Enhancement.

"What does each row represent?" is one of the first questions about an unfamiliar table of data. The conversion:domain_name enhancement answers this common question. For example, in our [quick and easy conversion](A quick and easy conversion), each row is an oil well, while in the White House visitors records, each row is a visit to the White House.

Because conversion:domain_name is so common, it is included in the default enhancement parameters.

      #conversion:enhance [
      #   conversion:domain_template "thing_[r]";
      #   conversion:domain_name     "Thing";
      #];
      #conversion:enhance [
      #   conversion:class_name "Thing";
      #   conversion:subclass_of <http://purl.org/...>;
      #];

Example

conversion:domain_name "AgencyBudgetDistribution";

Effects

  • Types the subject row.
  • changes the local name of the subject row's URI (from thing_2 to agencyBudgetDistribution_2). For more control of the local name or the full URI of the subject, see conversion:domain_template.
  • asserts a con:preferredURI from the thing_2 row instance to (e.g.) agencyBudgetDistribution_2. This was owl:sameAs, but has been withdrawn in favor of con:preferredURI.

Datasets that use this enhancement

(results):

PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?dataset ?template
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset>  {
    ?dataset conversion:conversion_process [
       conversion:enhance [
          conversion:domain_name ?template
       ]
    ]
  }
}

Clone this wiki locally