@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<https://kgrid.org/koio> a owl:Ontology;
  owl:versionIRI <http://www.kgrid.org/koio/2.1/koio.owl>;
  owl:imports <http://purl.obolibrary.org/obo/iao/2022-11-07/iao.owl>, <https://raw.githubusercontent.com/allysonlister/swo/master/swo-full.owl>;
  <http://purl.org/dc/terms/contributor> "Allen Flynn", "Charles P. Friedman", "Farid Seifi",
    "Marisa Conte", "Peter Boisvert";
  <http://purl.org/dc/terms/publisher> """Knowledge Systems Lab. Department of Learning Health Sciences. University of Michigan Medical School.
https://knowledge-systems.lab.medicine.umich.edu/""";
  <http://purl.org/dc/terms/title> "Knowledge Object Implementation Ontology (KOIO)";
  rdfs:comment """KOIO is a domain ontology that tells us what a Knowledge Object is as an artifact. It describes Knowledge Objects and their parts as they are implemented. For this reason, KOIO generally serves as an evolving formal and explicit model of Knowledge Objects. It can be used to describe the parts of many computable biomedical knowledge (CBK) artifacts found in the wild. In addition, KOIO functions as a formal specification for linked metadata relevant for describing, annotating, packaging, and handling CBK artifacts.

The Knowledge Systems Lab (KSL) at the University of Michigan began work on KOIO in 2016 and continues to evolve KOIO over time. KSL’s general approach is to keep KOIO concise, connected, and common.

To keep it concise, only a very small number of new terms describing key parts known to be valuable to CBK stakeholders are included in KOIO. These KOIO-defined terms include “Knowledge”, “Service”, and “Test”. As a model of Knowledge Objects, KOIO supports multiplicity of these parts meaning that a Knowledge Object may have one or more elements of knowledge plus multiple corresponding services and tests. KOIO enables the lifecycles and provenance of the key individual parts of Knowledge Objects to be tracked and documented independently.

The key parts of Knowledge Objects defined in KOIO are logically connected to terms from the upper-level Basic Formal Ontology (BFO). In addition, KOIO adopts terms from the Information Artifact Ontology (IAO) and the Software Ontology (SWO) wherever possible.

Finally, KOIO tries to leave implementation details out so that it can serve as a common ontology for describing nearly all CBK artifacts, regardless of the platforms or applications that support and incorporate them.""";
  owl:versionInfo 2.1 .

<http://purl.org/dc/terms/publisher> a owl:AnnotationProperty .

rdfs:type a owl:AnnotationProperty .

<http://purl.obolibrary.org/obo/RO_0002502> rdfs:domain <https://kgrid.org/koio#Service>;
  rdfs:range <https://kgrid.org/koio#Knowledge>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "depends on, def., indicates that a service uses a specific knowledge" .

<http://www.ebi.ac.uk/swo/SWO_0000085> rdfs:domain <https://kgrid.org/koio#Knowledge>,
    <https://kgrid.org/koio#Service>, <https://kgrid.org/koio#Test>;
  rdfs:range <https://kgrid.org/koio#Implementation>;
  <http://purl.obolibrary.org/obo/IAO_0000115> """Note: KSL added this definition to contextualize the definition below from SWO.
implemented by, def., is the relationship between an abstract KO component and a piece of software (or computer processable content)  which includes an implementation of that abstract KO component for use when processed by a computer.""" .

<http://www.ebi.ac.uk/swo/SWO_0004001> rdfs:domain <https://kgrid.org/koio#Service>;
  rdfs:range <http://www.ebi.ac.uk/swo/SWO_9000050> .

<https://kgrid.org/koio#hasDocumentation> a owl:ObjectProperty;
  rdfs:subPropertyOf <http://purl.obolibrary.org/obo/BFO_0000051>;
  rdfs:domain <https://kgrid.org/koio#Implementation>, <https://kgrid.org/koio#Knowledge>,
    <https://kgrid.org/koio#KnowledgeObject>, <https://kgrid.org/koio#Service>, <https://kgrid.org/koio#Test>;
  rdfs:range <https://kgrid.org/koio#InformationArtifact>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "hasDocumentation, def., a property that indicates an association between a knowledge object, knowledge, or service and documentation that describes, relates to, or provides information about each of these things.";
  rdfs:label "has documentation";
  rdfs:seeAlso """from SPDX find term hasDocumentation: https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Vocabularies/RelationshipType/
from SPDX find term Documentation:
http://spdx.org/rdf/terms#documentation""" .

<https://kgrid.org/koio#hasKnowledge> a owl:ObjectProperty;
  rdfs:subPropertyOf <http://purl.obolibrary.org/obo/BFO_0000051>;
  rdfs:domain <https://kgrid.org/koio#KnowledgeObject>;
  rdfs:range <https://kgrid.org/koio#Knowledge>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "hasKnowledge, def., indicates that a Knowledge Object contains or is associated with specific Knowledge.";
  rdfs:label "has knowledge" .

<https://kgrid.org/koio#hasService> a owl:ObjectProperty;
  rdfs:subPropertyOf <http://purl.obolibrary.org/obo/BFO_0000051>;
  rdfs:domain <https://kgrid.org/koio#KnowledgeObject>;
  rdfs:range <https://kgrid.org/koio#Service>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "hasService , def., a relation that holds between a whole KnowledgeObject and its Service part(s). Denotes that a KnowledgeObject includes or provides a specific Service.";
  rdfs:label "has service" .

<https://kgrid.org/koio#hasTest> a owl:ObjectProperty;
  rdfs:subPropertyOf <http://purl.obolibrary.org/obo/BFO_0000051>;
  rdfs:domain <https://kgrid.org/koio#Knowledge>, <https://kgrid.org/koio#KnowledgeObject>,
    <https://kgrid.org/koio#Service>;
  rdfs:range <https://kgrid.org/koio#Test>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "hasTest, def., a property that links a knowledge object, service, or knowledge to a specific test designed to evaluate its functionality, performance, or reliability. This property signifies that the component has an associated test to verify or validate its behavior.";
  rdfs:label "has test";
  rdfs:seeAlso """from SPDX find term hasTest:
https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Vocabularies/RelationshipType/""" .

<https://kgrid.org/koio#KOIOVersion> a owl:DatatypeProperty;
  rdfs:subPropertyOf owl:topDataProperty;
  <http://purl.obolibrary.org/obo/IAO_0000115> "The version of KOIO from which metadata is derived";
  rdfs:label "KOIO version" .

<https://kgrid.org/koio#Artifact> a owl:Class;
  rdfs:subClassOf <http://purl.obolibrary.org/obo/BFO_0000040>;
  <http://purl.obolibrary.org/obo/IAO_0000115> """Artifact =def. a MaterialEntity created or modified or selected by some agent to realize a certain FUNCTION or ROLE (Examples: a key, a lock, a digital file stored on a particular computing machine, a screwdriver)


Smith & Ceusters, Aboutness: Towards Foundations for the Information Artifact Ontology""";
  rdfs:isDefinedBy <http://purl.obolibrary.org/obo/iao.owl>;
  rdfs:label "artifact"@en .

<https://kgrid.org/koio#Collection> a owl:Class;
  rdfs:subClassOf <https://kgrid.org/koio#InformationArtifact>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "Collection = def. an InformationArtifact comprised of two or more InformationArtifacts and at least one collectionIdentifier";
  rdfs:isDefinedBy <http://kgrid.org/koio/1.0.0/>;
  rdfs:label "collection"@en .

<https://kgrid.org/koio#Implementation> a owl:Class;
  rdfs:subClassOf <https://kgrid.org/koio#InformationArtifact>;
  owl:disjointWith <https://kgrid.org/koio#KnowledgeObject>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "def., a computer or machine processable file that is or informs a series of instructions that can be directly interpreted or executed.";
  rdfs:isDefinedBy <http://kgrid.org/koio/1.0.0/>;
  rdfs:label "implementation" .

<https://kgrid.org/koio#InformationArtifact> a owl:Class;
  rdfs:subClassOf <https://kgrid.org/koio#Artifact>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "An InformationArtifact = def., an Artifact that is the IndependentContinuant bearer created as the result of one or more intentional processes. Examples: uniprot, the english language, the contents of this document or a printout of it, the temperature measurements from a weather balloon. For more information, see the project home page at https://github.com/information-artifact-ontology/IAO";
  rdfs:comment "Per KOIO, Knowledge Objects are InformationArtifacts by definition.";
  rdfs:isDefinedBy <http://purl.obolibrary.org/obo/iao.owl>;
  rdfs:label "information artifact"@en .

<https://kgrid.org/koio#Knowledge> a owl:Class;
  rdfs:subClassOf <http://purl.obolibrary.org/obo/IAO_0000030>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "Knowledge, def., information or understanding about a subject, obtained through experience or study.";
  rdfs:label "knowledge" .

<https://kgrid.org/koio#KnowledgeObject> a owl:Class;
  rdfs:subClassOf <https://kgrid.org/koio#InformationArtifact>, _:342237;
  <http://purl.obolibrary.org/obo/IAO_0000115> "KnowledgeObject = def., an Information Artifact capable of serving a role as the atomic unit of computable knowledge and therefore comprised of at least one KnowledgeObjectImplementation";
  rdfs:isDefinedBy <http://kgrid.org/koio/1.0.0/>;
  rdfs:label "knowledge object"@en .

_:342237 a owl:Restriction;
  owl:onProperty <https://kgrid.org/koio#hasKnowledge>;
  owl:someValuesFrom <https://kgrid.org/koio#Knowledge> .

<https://kgrid.org/koio#KnowledgeObjectCollection> a owl:Class;
  rdfs:subClassOf <https://kgrid.org/koio#Collection>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "Knowledge Object Collection = def., two or more Knowledge Objects with a collectionIdentifer";
  rdfs:isDefinedBy <http://kgrid.org/koio/1.0.0/>;
  rdfs:label "knowledge object collection"@en .

<https://kgrid.org/koio#Service> a owl:Class;
  rdfs:subClassOf <http://purl.obolibrary.org/obo/IAO_0000030>;
  <http://purl.obolibrary.org/obo/IAO_0000115> """Service, def., a Service is a defined function or capability provided by a software system. Each Service provides a way to use or interact with a KnowledgeObject, facilitating access and utilization of the Knowledge encapsulated within the KnowledgeObject.

A Service is a specification of what a self-contained piece of software does.""";
  rdfs:label "service" .

<https://kgrid.org/koio#Test> a owl:Class;
  rdfs:subClassOf <http://purl.obolibrary.org/obo/IAO_0000030>;
  <http://purl.obolibrary.org/obo/IAO_0000115> "Test, def., an information content entity conveying a systematic procedure to assess specific aspects of software performance, functionality, or security. Tests are created to ensure that the software meets specified requirements or to identify any defects.";
  rdfs:label "test";
  rdfs:seeAlso """Test Case, Test, Test Code, Code To Be Tested
https://dev.nemo.inf.ufes.br/seon/ROoST.html

Souza ÉF, Falbo RD, Vijaykumar NL. ROoST: Reference ontology on software testing. Applied Ontology. 2017 Jan 1;12(1):59-90.""" .

<https://kgrid.org/koio#bmi.js> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000001> .

<https://kgrid.org/koio#bmiAPIService> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000108>,
    <http://www.ebi.ac.uk/swo/interface/SWO_9000054>, <https://kgrid.org/koio#Service>;
  <http://purl.obolibrary.org/obo/RO_0002502> <https://kgrid.org/koio#bmiKnowledge>;
  <http://www.ebi.ac.uk/swo/SWO_0000085> <https://kgrid.org/koio#index70.js>;
  <https://kgrid.org/koio#hasDocumentation> <https://kgrid.org/koio#bmiKOAPIDocumentation.md>;
  <https://kgrid.org/koio#hasTest> <https://kgrid.org/koio#bmiTestAPIService> .

<https://kgrid.org/koio#bmiCLIService> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000108>,
    <http://www.ebi.ac.uk/swo/interface/SWO_9000053>, <https://kgrid.org/koio#Service>;
  <http://purl.obolibrary.org/obo/RO_0002502> <https://kgrid.org/koio#bmiKnowledge>;
  <http://www.ebi.ac.uk/swo/SWO_0000085> <https://kgrid.org/koio#bmi_cli.ts> .

<https://kgrid.org/koio#bmiJupiterNotebookTutorial.ipynb> a owl:NamedIndividual, <https://kgrid.org/koio#InformationArtifact> .

<https://kgrid.org/koio#bmiKO> a owl:NamedIndividual, <https://kgrid.org/koio#KnowledgeObject>;
  <https://kgrid.org/koio#hasDocumentation> <https://kgrid.org/koio#bmiJupiterNotebookTutorial.ipynb>,
    <https://kgrid.org/koio#bmiKODocumentation.md>;
  <https://kgrid.org/koio#hasKnowledge> <https://kgrid.org/koio#bmiKnowledge>;
  <https://kgrid.org/koio#hasService> <https://kgrid.org/koio#bmiAPIService>, <https://kgrid.org/koio#bmiCLIService>;
  <https://kgrid.org/koio#hasTest> <https://kgrid.org/koio#bmiTestKO.ts>;
  <https://kgrid.org/koio#KOIOVersion> 2.1 .

<https://kgrid.org/koio#bmiKOAPIDocumentation.md> a owl:NamedIndividual, <https://kgrid.org/koio#InformationArtifact> .

<https://kgrid.org/koio#bmiKODocumentation.md> a owl:NamedIndividual, <https://kgrid.org/koio#InformationArtifact> .

<https://kgrid.org/koio#bmiKnowledge> a owl:NamedIndividual, <https://kgrid.org/koio#Knowledge>;
  <http://www.ebi.ac.uk/swo/SWO_0000085> <https://kgrid.org/koio#bmi.js>;
  <https://kgrid.org/koio#hasDocumentation> <https://kgrid.org/koio#bmiKnowledgeDocumentation.md> .

<https://kgrid.org/koio#bmiKnowledgeDocumentation.md> a owl:NamedIndividual, <https://kgrid.org/koio#InformationArtifact> .

<https://kgrid.org/koio#bmiTestAPIService> a owl:NamedIndividual, <https://kgrid.org/koio#Test> .

<https://kgrid.org/koio#bmiTestKO.ts> a owl:NamedIndividual, <https://kgrid.org/koio#Test> .

<https://kgrid.org/koio#bmiTestKnowledge.ts> a owl:NamedIndividual, <https://kgrid.org/koio#Test> .

<https://kgrid.org/koio#bmi_cli.ts> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000001> .

<https://kgrid.org/koio#index70.js> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000001> .

<https://kgrid.org/koio#tobacco.js> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000001> .

<https://kgrid.org/koio#tobaccoCLIService> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000108>,
    <http://www.ebi.ac.uk/swo/interface/SWO_9000053>, <https://kgrid.org/koio#Service>;
  <http://purl.obolibrary.org/obo/RO_0002502> <https://kgrid.org/koio#tobaccoKnowledge>;
  <http://www.ebi.ac.uk/swo/SWO_0000085> <https://kgrid.org/koio#tobacco_cli.ts> .

<https://kgrid.org/koio#tobaccoKO> a owl:NamedIndividual, <https://kgrid.org/koio#KnowledgeObject>;
  <https://kgrid.org/koio#hasKnowledge> <https://kgrid.org/koio#tobaccoKnowledge>;
  <https://kgrid.org/koio#hasService> <https://kgrid.org/koio#tobaccoCLIService> .

<https://kgrid.org/koio#tobaccoKnowledge> a owl:NamedIndividual, <https://kgrid.org/koio#Knowledge>;
  <http://www.ebi.ac.uk/swo/SWO_0000085> <https://kgrid.org/koio#tobacco.js> .

<https://kgrid.org/koio#tobacco_cli.ts> a owl:NamedIndividual, <http://www.ebi.ac.uk/swo/SWO_0000001> .
