David Price

Working upgrade to RD gen

# baseURI: http://www.reportinghub.no/refdata/production
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/refdata/drilling
# imports: http://rds.posccaesar.org/2008/06/OWL/RDL-annotations
# imports: http://www.reportinghub.no/refdata/foundation
# imports: http://www.reportinghub.no/refdata/npdfacts
@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
@prefix foundation: <http://www.reportinghub.no/refdata/foundation#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p2: <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#> .
@prefix pca-rdl: <http://posccaesar.org/rdl/> .
@prefix production: <http://www.reportinghub.no/refdata/production#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/production>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/refdata/drilling> , <http://www.reportinghub.no/refdata/foundation> , <http://www.reportinghub.no/refdata/npdfacts> ;
owl:imports <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations> , <http://www.reportinghub.no/refdata/foundation> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/refdata/drilling2
# imports: http://www.reportinghub.no/refdata/foundation
@prefix : <http://www.reportinghub.no/refdata/drilling2#> .
@prefix RDL-annotations: <http://rds.posccaesar.org/2008/06/OWL/RDL-annotations#> .
@prefix foundation: <http://www.reportinghub.no/refdata/foundation#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/drilling2>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/refdata/foundation> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-drill
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
# imports: http://www.reportinghub.no/refdata/transform/class2rd
@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-drill#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/transform/class2rd-drill>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/drilling> , <http://www.reportinghub.no/refdata/transform/class2rd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
rdfs:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0196 Handle classification of RD classes as Drilling"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00004> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
owl:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "p2class"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/material#Material> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
])
] .
# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-npd
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/refdata/transform/class2rd
@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-npd#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/transform/class2rd-npd>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/refdata/transform/class2rd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
rdfs:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
owl:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "p2class"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/material#Material> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
])
] .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
# baseURI: http://www.reportinghub.no/refdata/transform/class2rd-prod
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/refdata/transform/class2rd
@prefix : <http://www.reportinghub.no/refdata/transform/class2rd-prod#> .
@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
@prefix class2rd: <http://www.reportinghub.no/refdata/transform/class2rd#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/transform/class2rd-prod>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/refdata/transform/class2rd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
rdfs:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0195 Handle classification of RD classes as Production"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00004> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
owl:Class
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0198 Set Part 2 Class of EHR RD Class"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "p2class"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/material#Material> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0199 Set classification by foundation class ERH Production Class"^^xsd:string ;
sp:templates ([ sp:object <http://posccaesar.org/rdl/ERH00004> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rduri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "rduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
])
] .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
......@@ -66,6 +66,11 @@ rdfs:Class
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object owl:Class ;
......@@ -245,138 +250,6 @@ rdfs:Class
[ sp:varName "rduri"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0195 Handle classification of RD classes as NPD"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00002> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:eq ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0196 Handle classification of RD classes as Drilling"^^xsd:string ;
sp:templates ([ sp:object <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#Classification> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassified> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00004> ;
sp:predicate <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#hasClassifier> ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "clsnuri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ rdf:type afn:namespace ;
sp:arg1 spin:_this
] ;
sp:arg2 "http://www.reportinghub.no/np/schema/npd#"
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "uuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "uuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "pcaid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?pcaid}>"
] ;
sp:variable
[ sp:varName "clsnuri"^^xsd:string
]
])
] .
owl:Class
......@@ -414,7 +287,7 @@ owl:Class
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ sp:object <http://posccaesar.org/rdl/ERH00004> ;
] [ sp:object <http://posccaesar.org/rdl/ERH00001> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
......@@ -480,31 +353,6 @@ owl:Class
sp:variable
[ sp:varName "desigation"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:generateUUID
] ;
sp:variable
[ sp:varName "clsnuuid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "ERH" ;
sp:arg2 [ sp:varName "clsnuuid"^^xsd:string
]
] ;
sp:variable
[ sp:varName "clsnid"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:buildURI ;
sp:arg1 "<http://posccaesar.org/rdl/{?clsnid}>"
] ;
sp:variable
[ sp:varName "clsncuri"^^xsd:string
]
])
] ;
spin:rule
......@@ -610,222 +458,4 @@ owl:Class
[ sp:varName "specuri"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "0140 Set Part 2 Class of EHR RD Class"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "p2class"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "thisrduri"^^xsd:string
] ;
sp:predicate owl:sameAs ;
sp:subject spin:_this
] [ sp:object <http://posccaesar.org/rdl/ERH00000> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "thisrduri"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/activity#Activity> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfActivity> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#FunctionalPhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/equipment#Equipment> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWellBore> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#SpatialPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/geography#PartOfTheSurfaceOfTheEarth> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInanimatePhysicalObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/material#Material> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfCompound> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfOrganization> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfPerson> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:TriplePath ;
sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:path [ rdf:type sp:ModPath ;
sp:modMax -2 ;
sp:modMin 0 ;
sp:subPath rdfs:subClassOf
] ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression <http://rds.posccaesar.org/2008/02/OWL/ISO-15926-2_2003#ClassOfInformationObject> ;
sp:variable
[ sp:varName "p2class"^^xsd:string
]
])
])
] .
......
# baseURI: http://www.reportinghub.no/refdata/transform/make-rd-drill
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/refdata/transform/make-rd-drill#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/transform/make-rd-drill>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
# baseURI: http://www.reportinghub.no/refdata/transform/make-rd-prod
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/refdata/drilling
# imports: http://www.reportinghub.no/refdata/foundation
# imports: http://www.reportinghub.no/refdata/npdfacts
# imports: http://www.reportinghub.no/refdata/production
# imports: http://www.reportinghub.no/refdata/transform/class2rd-prod
@prefix : <http://www.reportinghub.no/refdata/transform/make-rd-prod#> .
@prefix class2rd-prod: <http://www.reportinghub.no/refdata/transform/class2rd-prod#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/refdata/transform/make-rd-prod>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/refdata/drilling> , <http://www.reportinghub.no/refdata/foundation> , <http://www.reportinghub.no/refdata/npdfacts> , <http://www.reportinghub.no/refdata/production> , <http://www.reportinghub.no/refdata/transform/class2rd-prod> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .