Showing
7 changed files
with
108 additions
and
37 deletions
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
| 1 | +@prefix tables: <http://topbraid.org/tables#> . | ||
| 2 | + | ||
| 3 | +<file:///www.reportinghub.no/test/flow_facts/data/flow-fact-updated.tsv.semtables> | ||
| 4 | + a <http://www.w3.org/2002/07/owl#Ontology> ; | ||
| 5 | + tables:imports <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2> ; | ||
| 6 | + <http://www.w3.org/2002/07/owl#imports> | ||
| 7 | + <http://topbraid.org/tables> . |
| 1 | +# baseURI: http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2 | ||
| 2 | +# imports: http://topbraid.org/tables | ||
| 3 | + | ||
| 4 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 5 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 6 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 7 | +@prefix ss: <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#> . | ||
| 8 | +@prefix tables: <http://topbraid.org/tables#> . | ||
| 9 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 10 | + | ||
| 11 | +<http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2> | ||
| 12 | + rdf:type owl:Ontology ; | ||
| 13 | + owl:imports <http://topbraid.org/tables> . | ||
| 14 | + | ||
| 15 | +ss:FieldNPDName | ||
| 16 | + rdf:type owl:DatatypeProperty ; | ||
| 17 | + rdfs:domain ss:flow-fact ; | ||
| 18 | + rdfs:label "[FieldNPDName]" ; | ||
| 19 | + rdfs:range xsd:string ; | ||
| 20 | + tables:columnIndex "0"^^xsd:int . | ||
| 21 | + | ||
| 22 | +ss:fieldNPDID | ||
| 23 | + rdf:type owl:DatatypeProperty ; | ||
| 24 | + rdfs:domain ss:flow-fact ; | ||
| 25 | + rdfs:label "FieldNPDID" ; | ||
| 26 | + rdfs:range xsd:string ; | ||
| 27 | + tables:columnIndex "1"^^xsd:int . | ||
| 28 | + | ||
| 29 | +ss:flow-fact | ||
| 30 | + rdf:type owl:Class ; | ||
| 31 | + rdfs:label "flow-fact-updated" ; | ||
| 32 | + tables:sheetIndex "0"^^xsd:int . | ||
| 33 | + | ||
| 34 | +ss:flowInOutFacilityName | ||
| 35 | + rdf:type owl:DatatypeProperty ; | ||
| 36 | + rdfs:domain ss:flow-fact ; | ||
| 37 | + rdfs:label "FlowInOutFacilityName" ; | ||
| 38 | + rdfs:range xsd:string ; | ||
| 39 | + tables:columnIndex "2"^^xsd:int . | ||
| 40 | + | ||
| 41 | +ss:flowInOutFacilityNameSystem | ||
| 42 | + rdf:type owl:DatatypeProperty ; | ||
| 43 | + rdfs:domain ss:flow-fact ; | ||
| 44 | + rdfs:label "FlowInOutFacilityNameSystem" ; | ||
| 45 | + rdfs:range xsd:string ; | ||
| 46 | + tables:columnIndex "3"^^xsd:int . | ||
| 47 | + | ||
| 48 | +ss:flowKind | ||
| 49 | + rdf:type owl:DatatypeProperty ; | ||
| 50 | + rdfs:domain ss:flow-fact ; | ||
| 51 | + rdfs:label "FlowKind" ; | ||
| 52 | + rdfs:range xsd:string ; | ||
| 53 | + tables:columnIndex "6"^^xsd:int . | ||
| 54 | + | ||
| 55 | +ss:flowName | ||
| 56 | + rdf:type owl:DatatypeProperty ; | ||
| 57 | + rdfs:domain ss:flow-fact ; | ||
| 58 | + rdfs:label "FlowName" ; | ||
| 59 | + rdfs:range xsd:string ; | ||
| 60 | + tables:columnIndex "5"^^xsd:int . | ||
| 61 | + | ||
| 62 | +ss:flowQualifier | ||
| 63 | + rdf:type owl:DatatypeProperty ; | ||
| 64 | + rdfs:domain ss:flow-fact ; | ||
| 65 | + rdfs:label "FlowQualifier" ; | ||
| 66 | + rdfs:range xsd:string ; | ||
| 67 | + tables:columnIndex "7"^^xsd:int . | ||
| 68 | + | ||
| 69 | +ss:flowUID | ||
| 70 | + rdf:type owl:DatatypeProperty ; | ||
| 71 | + rdfs:domain ss:flow-fact ; | ||
| 72 | + rdfs:label "FlowUID" ; | ||
| 73 | + rdfs:range xsd:string ; | ||
| 74 | + tables:columnIndex "4"^^xsd:int . |
This diff is collapsed. Click to expand it.
| 1 | +# baseURI: null | ||
| 2 | + | ||
| 3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
| 4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
| 5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
| 6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
| 7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
| 8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
| 9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
| 10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
| 11 | + | ||
| 12 | +<http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flow-fact> | ||
| 13 | + forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flowInOutFacilityName> <http://www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema2#flowInOutFacilityNameSystem>) . | ||
| 14 | + | ||
| 15 | +[] rdf:type inference:Configuration ; | ||
| 16 | + composite:child | ||
| 17 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
| 18 | + <http://spinrdf.org/spin#topSPINOptions> | ||
| 19 | + "singlePass" ; | ||
| 20 | + composite:index "0"^^xsd:int | ||
| 21 | + ] . |
| 1 | -DRAFT 2 | 1 | +SELECT ?FieldNPDName ?FieldNPDID ?FlowInOutFacilityName ?FlowInOutFacilityNameSystem ?FlowUID ?FlowName ?FlowKind ?FlowQualifier |
| 2 | - | ||
| 3 | -SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier | ||
| 4 | WHERE { | 2 | WHERE { |
| 5 | ?obj_productvolume rdf:type mpr:Obj_productVolume . | 3 | ?obj_productvolume rdf:type mpr:Obj_productVolume . |
| 6 | ?obj_productvolume mpr:facilityRef ?cs_productvolumefacility . | 4 | ?obj_productvolume mpr:facilityRef ?cs_productvolumefacility . |
| ... | @@ -8,10 +6,14 @@ WHERE { | ... | @@ -8,10 +6,14 @@ WHERE { |
| 8 | 6 | ||
| 9 | ?obj_productvolume mpr:installationRef ?facilityidentifierstruct . | 7 | ?obj_productvolume mpr:installationRef ?facilityidentifierstruct . |
| 10 | ?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct . | 8 | ?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct . |
| 11 | - ?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> . | 9 | + ?facilityidentifierstruct mpr:namingSystem "NPD" . |
| 12 | ?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID . | 10 | ?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID . |
| 13 | ?facilityidentifierstruct dtype:value ?FieldNPDName . | 11 | ?facilityidentifierstruct dtype:value ?FieldNPDName . |
| 14 | 12 | ||
| 13 | + ?cs_productvolumefacility mpr:nameRef ?cs_productvolumefacilityname. | ||
| 14 | + ?cs_productvolumefacilityname mpr:namingSystem ?FlowInOutFacilityNameSystem . | ||
| 15 | + ?cs_productvolumefacilityname dtype:value ?FlowInOutFacilityName . | ||
| 16 | + | ||
| 15 | ?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow . | 17 | ?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow . |
| 16 | ?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow . | 18 | ?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow . |
| 17 | 19 | ||
| ... | @@ -24,37 +26,4 @@ WHERE { | ... | @@ -24,37 +26,4 @@ WHERE { |
| 24 | ?cs_productvolumeflow mpr:name ?FlowName . | 26 | ?cs_productvolumeflow mpr:name ?FlowName . |
| 25 | ?cs_productvolumeflow mpr:uid ?FlowUID . | 27 | ?cs_productvolumeflow mpr:uid ?FlowUID . |
| 26 | 28 | ||
| 27 | -} | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 31 | - | ||
| 32 | -DRAFT1 | ||
| 33 | - | ||
| 34 | -SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier | ||
| 35 | -WHERE { | ||
| 36 | - ?obj_productvolume rdf:type mpr:Obj_productVolume . | ||
| 37 | - ?obj_productvolume mpr:facilityRef ?cs_productvolumefacility . | ||
| 38 | - ?cs_productvolumefacility rdf:type mpr:Cs_productVolumeFacility . | ||
| 39 | - | ||
| 40 | - ?obj_productvolume mpr:installationRef ?facilityidentifierstruct . | ||
| 41 | - ?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct . | ||
| 42 | - ?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> . | ||
| 43 | - ?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID . | ||
| 44 | - ?facilityidentifierstruct dtype:value ?FieldNPDName . | ||
| 45 | - | ||
| 46 | - ?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow . | ||
| 47 | - ?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow . | ||
| 48 | - | ||
| 49 | - ?cs_productvolumeflow mpr:kindRef ?reportingflow . | ||
| 50 | - ?reportingflow rdf:type mpr:ReportingFlow . | ||
| 51 | - ?reportingflow dtype:value ?FlowKind . | ||
| 52 | - | ||
| 53 | - ?cs_productvolumeflow mpr:qualifierRef ?qualifier . | ||
| 54 | - ?qualifier rdf:type mpr:FlowQualifier . | ||
| 55 | - ?qualifier dtype:value ?FlowQualifier . | ||
| 56 | - | ||
| 57 | - ?cs_productvolumeflow mpr:name ?FlowName . | ||
| 58 | - ?cs_productvolumeflow mpr:uid ?FlowUID . | ||
| 59 | - | ||
| 60 | } | 29 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment