@prefix rr: . @prefix daq: . @prefix rdf: . @prefix rdfs: . @prefix ex: . @prefix xsd: . @prefix owl: . @prefix skos: . @prefix dcterms: . @prefix dc: . @prefix vocab: . <#Class-ValidationRule-View> rr:sqlQuery """ SELECT DISTINCT CATEGORY, DIMENSION, ERROR_DESCRIPTION, ORA_ERROR || 'ERROR' as ORA_ERROR_ID FROM VALIDATION_RULE inner join ORA_ERRORS on ORA_ERRORS.ERROR_ID=VALIDATION_RULE.ORA_ERROR; """; rr:sqlVersion rr:Oracle . <#OracleCategory> rr:logicalTable <#Class-ValidationRule-View> ; rr:subjectMap [ rr:template "http://data.example.com/category/{CATEGORY}" ; rr:class rdfs:Class ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:label ; rr:objectMap [ rr:column "CATEGORY" ]; ] ; rr:predicateObjectMap [ rr:predicate rdfs:subClassOf ; rr:objectMap [ rr:constant daq:Category ] ; ] . <#TriplesMapForDimensionClass> rr:logicalTable <#Class-ValidationRule-View> ; rr:subjectMap [ rr:template "http://data.example.com/dimension/{DIMENSION}"; rr:class rdfs:Class ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:label ; rr:objectMap [ rr:column "DIMENSION" ]; ] ; rr:predicateObjectMap [ rr:predicate rdfs:subClassOf ; rr:objectMap [ rr:constant daq:Dimension ] ; ] . <#TriplesMapForDimensionProperty> rr:logicalTable <#Class-ValidationRule-View> ; rr:subjectMap [ rr:template "http://data.example.com/dimension/has{DIMENSION}Dimension"; rr:class rdf:Property ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:subPropertyOf ; rr:objectMap [ rr:constant daq:hasDimension ] ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:domain ; rr:objectMap [ rr:template "http://data.example.com/category/{CATEGORY}" ] ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:range ; rr:objectMap [ rr:template "http://data.example.com/dimension/{DIMENSION}" ] ; ] . <#TriplesMapForMetricClass> rr:logicalTable <#Class-ValidationRule-View> ; rr:subjectMap [ rr:template "http://data.example.com/metric/{ORA_ERROR_ID}"; rr:class rdfs:Class ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:label ; rr:objectMap [ rr:column "ORA_ERROR_ID" ]; ] ; rr:predicateObjectMap [ rr:predicate rdfs:subClassOf ; rr:objectMap [ rr:constant daq:Metric ] ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:comment ; rr:objectMap [ rr:column "ERROR_DESCRIPTION" ] ; ] ; rr:predicateObjectMap [ rr:predicate daq:expectedDataType ; rr:objectMap [ rr:constant xsd:double ] ; ] . <#TriplesMapForMetricProperty> rr:logicalTable <#Class-ValidationRule-View> ; rr:subjectMap [ rr:template "http://data.example.com/metric/has{ORA_ERROR_ID}Metric"; rr:class rdf:Property ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:subPropertyOf ; rr:objectMap [ rr:constant daq:hasMetric ] ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:domain ; rr:objectMap [ rr:template "http://data.example.com/dimension/{DIMENSION}" ] ; ] ; rr:predicateObjectMap [ rr:predicate rdfs:range ; rr:objectMap [ rr:template "http://data.example.com/metric/{ORA_ERROR_ID}" ] ; ] .