owl:versionInfo"Created with TopBraid Composer"^^xsd:string.
npdMap:ClassifyArrangedIndividual
rdf:typespin:ConstructTemplate;
rdfs:comment"""?AI is the Arranged_Individual that is the wellbore
?AIClsn is the classification relationship from ?ai to the RDL entry for Wellbore - RDS1714464911"""^^xsd:string;
rdfs:subClassOfspin:ConstructTemplates;
spin:body
[rdf:typesp:Construct;
rdfs:comment"""?AI is the Arranged_Individual that is the wellbore
?AIClsn is the classification relationship from ?ai to the RDL entry referred to by arg1"""^^xsd:string;
sp:templates([sp:objectdm:ArrangedIndividual;
sp:predicaterdf:type;
sp:subject_:b1
][sp:objectdm:Classification;
sp:predicaterdf:type;
sp:subject_:b2
][sp:object_:b1;
sp:predicatedm:hasClassified;
sp:subject_:b2
][sp:objectspin:_arg1;
sp:predicatedm:hasClassifier;
sp:subject_:b2
]);
sp:where([sp:object_:b3;
sp:predicaterdf:type;
sp:subjectspin:_this
][sp:object
[sp:varName"npdid"^^xsd:string
];
sp:predicatenpd:id;
sp:subjectspin:_this
][rdf:typesp:Bind;
sp:expression"http://www.reportinghub.no/ep/";
sp:variable
[sp:varName"base"^^xsd:string
]
][rdf:typesp:Bind;
sp:expression
[rdf:typespif:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b3
]
];
sp:arg2"AI-{?npdid}>"
]
];
sp:variable_:b1
][rdf:typesp:Bind;
sp:expression
[rdf:typesmf:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b3
]
];
sp:arg2"AIClsn-{?npdid}>"
]
];
sp:variable_:b2
])
];
spin:constraint
[rdf:typespl:Argument;
spl:predicatesp:arg1;
spl:valueTypeowl:Thing
];
spin:labelTemplate"""?AI is the Arranged_Individual that is the wellbore
?AIClsn is the classification relationship from ?ai to the RDL entry referred to by arg1"""^^xsd:string.
npdMap:CreateIndividualWithNPDID
rdf:typespin:ConstructTemplate;
rdfs:comment"""?Arg1 is the type of object - e.g. \"WellBore\", \"Licence\", etc.?AI is the Arranged_Individual
?npdExpStr is the Express_string that holds the NPDID text
?npdCOI is the class of Identification relating ?ai to ?npdExpStr
?npdCOIClsn is classification relationship from ?npdCOI to the RDL entry for NPD Identifier - RDS487765302
?wbIDExpStr is the Express_string that holds the wellbore id code
?wbCOI is the class of Identification relating ?ai to ?wbIDExpStr
?wbIDCOIClsn is classification relationship from ?wbCOI to the RDL entry for wellbore identification code - RDS16622067"""^^xsd:string;
rdfs:subClassOfspin:ConstructTemplates;
spin:body
[rdf:typesp:Construct;
rdfs:comment"""?Arg1 is the type of object - e.g. \"WellBore\", \"Licence\", etc.
?AI is the Arranged_Individual
?npdExpStr is the Express_string that holds the NPDID text
?npdCOI is the class of Identification relating ?ai to ?npdExpStr
?npdCOIClsn is classification relationship from ?npdCOI to the RDL entry for NPD Identifier - RDS487765302
?wbIDExpStr is the Express_string that holds the wellbore id code
?wbCOI is the class of Identification relating ?ai to ?wbIDExpStr
?wbIDCOIClsn is classification relationship from ?wbCOI to the RDL entry for wellbore identification code - RDS16622067"""^^xsd:string;
sp:templates([sp:objectdm:ArrangedIndividual;
sp:predicaterdf:type;
sp:subject_:b4
][sp:objectdm:ClassOfIdentification;
sp:predicaterdf:type;
sp:subject_:b5
][sp:object_:b4;
sp:predicatedm:hasRepresented;
sp:subject_:b5
][sp:objectdm:ExpressString;
sp:predicaterdf:type;
sp:subject_:b6
][sp:object_:b6;
sp:predicatedm:hasPattern;
sp:subject_:b5
][sp:objectdm:Classification;
sp:predicaterdf:type;
sp:subject_:b7
][sp:object_:b5;
sp:predicatedm:hasClassified;
sp:subject_:b7
][sp:objectrdl:RDS487765302;
sp:predicatedm:hasClassifier;
sp:subject_:b7
][sp:object_:b8;
sp:predicatedm:hasContent;
sp:subject_:b6
]);
sp:where([sp:object_:b8;
sp:predicatenpd:id;
sp:subjectspin:_this
][sp:object_:b9;
sp:predicaterdf:type;
sp:subjectspin:_this
][rdf:typesp:Bind;
sp:expression"http://www.reportinghub.no/ep/";
sp:variable
[sp:varName"base"^^xsd:string
]
][rdf:typesp:Bind;
sp:expression
[rdf:typespif:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b9
]
];
sp:arg2"AI-{?npdid}>"
]
];
sp:variable_:b4
][rdf:typesp:Bind;
sp:expression
[rdf:typespif:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b9
]
];
sp:arg2"CoINPDID-{?npdid}>"
]
];
sp:variable_:b5
][rdf:typesp:Bind;
sp:expression
[rdf:typespif:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b9
]
];
sp:arg2"CoINPDIDClsn-{?npdid}>"
]
];
sp:variable_:b7
][rdf:typesp:Bind;
sp:expression
[rdf:typespif:buildURI;
sp:arg1[rdf:typesp:add;
sp:arg1[rdf:typesp:add;
sp:arg1"<{?base}";
sp:arg2[rdf:typeafn:localname;
sp:arg1_:b9
]
];
sp:arg2"NPDIDExpressString-{?npdid}>"
]
];
sp:variable_:b6
])
];
spin:labelTemplate"""?AI is the Arranged_Individual that is the wellbore
?npdExpStr is the Express_string that holds the NPDID text
?npdCOI is the class of Identification relating ?ai to ?npdExpStr
?npdCOIClsn is classification relationship from ?npdCOI to the RDL entry for NPD Identifier - RDS487765302
?wbIDExpStr is the Express_string that holds the wellbore id code
?wbCOI is the class of Identification relating ?ai to ?wbIDExpStr
?wbIDCOIClsn is classification relationship from ?wbCOI to the RDL entry for wellbore identification code - RDS16622067"""^^xsd:string.
npdMap:Licence_1
rdf:typenpd:Licence;
npd:id"ABC123"^^xsd:string.
npd:NpdIndividual
spin:rule
[rdf:typenpdMap:CreateIndividualWithNPDID;
sp:arg1"\"Individual\""^^xsd:string
].
npd:WellBore
spin:rule
[rdf:typesp:Construct;
rdfs:comment"""This rule creates the WellBore and Well and joins them up using a composition relationship (dm:ArrangementOfIndividual)
Note that because it uses the same URI production rule as other functions, we don't get repeated instances of the Well and WellBore...hopefully"""^^xsd:string;
sp:templates([sp:objectdm:ArrangedIndividual;
sp:predicaterdf:type;
sp:subject_:b10
][sp:objectdm:ArrangedIndividual;
sp:predicaterdf:type;
sp:subject_:b11
][sp:objectdm:ArrangementOfIndividual;
sp:predicaterdf:type;
sp:subject_:b12
][sp:object_:b11;
sp:predicatedm:hasWhole;
sp:subject_:b12
][sp:object_:b10;
sp:predicatedm:hasPart;
sp:subject_:b12
]);
sp:where([sp:object
[sp:varName"npdid"^^xsd:string
];
sp:predicatenpd:id;
sp:subjectspin:_this
][sp:object_:b13;
sp:predicatenpd:partOfWell;
sp:subjectspin:_this
][sp:object
[sp:varName"wellName"^^xsd:string
];
sp:predicatenpd:name;
sp:subject_:b13
][rdf:typesp:Bind;
sp:expression"http://www.reportinghub.no/ep/";
sp:variable
[sp:varName"base"^^xsd:string
]
][rdf:typesp:Bind;
sp:expression
[rdf:typesmf:buildURI;
sp:arg1"<{?base}WellAI-{?wellName}>"
];
sp:variable_:b11
][rdf:typesp:Bind;
sp:expression
[rdf:typesmf:buildURI;
sp:arg1"<{?base}WellBoreAI-{?npdid}>"
];
sp:variable_:b10
][rdf:typesp:Bind;
sp:expression
[rdf:typesmf:buildURI;
sp:arg1"<{?base}WellBoreComposition-{?npdid}>"
];
sp:variable_:b12
])
];
spin:rule
[rdf:typenpdMap:ClassifyArrangedIndividual
].
npd:WellBore_1
npd:drilledInProductionLicence
npdMap:Licence_1.
npd:wellDiskosType
rdf:typeowl:DatatypeProperty;
rdfs:comment"Corresponds to DISKOS Type field in WellBore tables"^^xsd:string;