Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lab/labop/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""Pinned schemas and primitive definitions for LabOP interchange."""
7 changes: 7 additions & 0 deletions src/lab/labop/resources/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2022 Smart Information Flow Technologies and Raytheon BBN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
61 changes: 61 additions & 0 deletions src/lab/labop/resources/lab.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@prefix lab: <https://the-lab-compiler.github.io/lab-py/ns#> .
@prefix labop: <http://bioprotocols.org/labop#> .
@prefix sbol: <http://sbols.org/v3#> .
@prefix om: <http://www.ontology-of-units-of-measure.org/resource/om-2/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://the-lab-compiler.github.io/lab-py/ns> a owl:Ontology ;
rdfs:comment "Lab's explicit parameter and material annotations for static LabOP interchange." .

lab:ThermalProfile a owl:Class ;
rdfs:subClassOf sbol:Identified,
[ a owl:Restriction ; owl:onProperty lab:hold ; owl:allValuesFrom lab:ThermalHold ],
[ a owl:Restriction ; owl:onProperty lab:hold ; owl:minCardinality "1"^^xsd:nonNegativeInteger ] .
lab:ThermalHold a owl:Class ;
rdfs:subClassOf sbol:Identified,
[ a owl:Restriction ; owl:onProperty lab:temperature ; owl:allValuesFrom om:Measure ],
[ a owl:Restriction ; owl:onProperty lab:temperature ; owl:minCardinality "1"^^xsd:nonNegativeInteger ],
[ a owl:Restriction ; owl:onProperty lab:temperature ; owl:maxCardinality "1"^^xsd:nonNegativeInteger ],
[ a owl:Restriction ; owl:onProperty lab:duration ; owl:allValuesFrom om:Measure ],
[ a owl:Restriction ; owl:onProperty lab:duration ; owl:minCardinality "1"^^xsd:nonNegativeInteger ],
[ a owl:Restriction ; owl:onProperty lab:duration ; owl:maxCardinality "1"^^xsd:nonNegativeInteger ],
[ a owl:Restriction ; owl:onProperty lab:index ; owl:allValuesFrom xsd:integer ],
[ a owl:Restriction ; owl:onProperty lab:index ; owl:minCardinality "1"^^xsd:nonNegativeInteger ],
[ a owl:Restriction ; owl:onProperty lab:index ; owl:maxCardinality "1"^^xsd:nonNegativeInteger ] .
lab:InitialMaterial a owl:Class ; rdfs:subClassOf sbol:Identified .
lab:SampleAssertion a owl:Class ; rdfs:subClassOf sbol:Identified .

lab:itemCount a owl:DatatypeProperty ; rdfs:label "item_count" ;
rdfs:domain lab:InitialMaterial ; rdfs:range xsd:integer .
lab:sampleCount a owl:DatatypeProperty ; rdfs:label "sample_count" ;
rdfs:domain lab:SampleAssertion ; rdfs:range xsd:integer .
lab:materialForm a owl:ObjectProperty ; rdfs:label "material_form" ;
rdfs:domain lab:SampleAssertion .
lab:sampleRole a owl:DatatypeProperty ; rdfs:label "sample_role" ;
rdfs:domain lab:SampleAssertion ; rdfs:range xsd:string .

lab:hold a owl:ObjectProperty ; rdfs:label "holds" ;
rdfs:domain lab:ThermalProfile ; rdfs:range lab:ThermalHold ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:temperature a owl:ObjectProperty ; rdfs:label "temperature" ;
rdfs:domain lab:ThermalHold ; rdfs:range om:Measure ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:duration a owl:ObjectProperty ; rdfs:label "duration" ;
rdfs:domain lab:ThermalHold ; rdfs:range om:Measure ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:index a owl:DatatypeProperty ; rdfs:label "index" ;
rdfs:domain lab:ThermalHold ; rdfs:range xsd:integer .
lab:initialMaterial a owl:ObjectProperty ; rdfs:label "initial_materials" ;
rdfs:domain labop:SampleArray ; rdfs:range lab:InitialMaterial ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:plannedSample a owl:ObjectProperty ; rdfs:label "planned_samples" ;
rdfs:domain labop:SampleArray ; rdfs:range lab:SampleAssertion ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:volume a owl:ObjectProperty ; rdfs:label "volume" ;
rdfs:domain lab:InitialMaterial ; rdfs:range om:Measure ;
rdfs:subPropertyOf sbol:directlyComprises .
lab:capacity a owl:ObjectProperty ; rdfs:label "capacity" ;
rdfs:domain labop:ContainerSpec ; rdfs:range om:Measure ;
rdfs:subPropertyOf sbol:directlyComprises .
Loading
Loading