PREFIX koio: <https://kgrid.org/koio#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

koio:KnowledgeObject a sh:NodeShape ;
  rdfs:comment "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" ;
  sh:closed false ;
  sh:property [
    sh:name "has test" ;
    sh:description "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." ;
    sh:path koio:hasTest ;
    sh:class koio:Test ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "has service" ;
    sh:description "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." ;
    sh:path koio:hasService ;
    sh:class koio:Service ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "has documentation" ;
    sh:description "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." ;
    sh:path koio:hasDocumentation ;
    sh:class koio:InformationArtifact ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "has knowledge" ;
    sh:description "hasKnowledge, def., indicates that a Knowledge Object contains or is associated with specific Knowledge." ;
    sh:minCount 1 ;
    sh:path koio:hasKnowledge ;
    sh:class koio:Knowledge ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] ;
  sh:targetClass koio:KnowledgeObject .

koio:InformationArtifact a sh:NodeShape ;
  rdfs:comment "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" ;
  sh:closed false ;
  sh:targetClass koio:InformationArtifact .

koio:KnowledgeObjectCollection a sh:NodeShape ;
  rdfs:comment "Knowledge Object Collection = def., two or more Knowledge Objects with a collectionIdentifer" ;
  sh:closed false ;
  sh:targetClass koio:KnowledgeObjectCollection .

<http://www.ebi.ac.uk/swo/SWO_0000001> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.ebi.ac.uk/swo/SWO_0000001> .

<http://www.ebi.ac.uk/swo/interface/SWO_9000054> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.ebi.ac.uk/swo/interface/SWO_9000054> .

<http://www.ebi.ac.uk/swo/SWO_0000108> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.ebi.ac.uk/swo/SWO_0000108> .

<http://www.ebi.ac.uk/swo/SWO_9000050> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.ebi.ac.uk/swo/SWO_9000050> .

koio:Implementation a sh:NodeShape ;
  rdfs:comment "def., a computer or machine processable file that is or informs a series of instructions that can be directly interpreted or executed." ;
  sh:closed false ;
  sh:property [
    sh:name "has documentation" ;
    sh:description "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." ;
    sh:path koio:hasDocumentation ;
    sh:class koio:InformationArtifact ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] ;
  sh:targetClass koio:Implementation .

koio:Test a sh:NodeShape ;
  rdfs:comment "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." ;
  sh:closed false ;
  sh:property [
    sh:name "has documentation" ;
    sh:description "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." ;
    sh:path koio:hasDocumentation ;
    sh:class koio:InformationArtifact ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:description """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.""" ;
    sh:path <http://www.ebi.ac.uk/swo/SWO_0000085> ;
    sh:class koio:Implementation ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] ;
  sh:targetClass koio:Test .

<http://www.ebi.ac.uk/swo/interface/SWO_9000053> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.ebi.ac.uk/swo/interface/SWO_9000053> .

<https://w3id.org/linkml/Any> a sh:NodeShape ;
  rdfs:comment "An unconstrained type or object" ;
  sh:closed false ;
  sh:targetClass <https://w3id.org/linkml/Any> .

koio:Collection a sh:NodeShape ;
  rdfs:comment "Collection = def. an InformationArtifact comprised of two or more InformationArtifacts and at least one collectionIdentifier" ;
  sh:closed false ;
  sh:targetClass koio:Collection .

<http://purl.obolibrary.org/obo/BFO_0000040> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://purl.obolibrary.org/obo/BFO_0000040> .

<http://purl.obolibrary.org/obo/IAO_0000030> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://purl.obolibrary.org/obo/IAO_0000030> .

koio:Knowledge a sh:NodeShape ;
  rdfs:comment "Knowledge, def., information or understanding about a subject, obtained through experience or study." ;
  sh:closed false ;
  sh:property [
    sh:name "has test" ;
    sh:description "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." ;
    sh:path koio:hasTest ;
    sh:class koio:Test ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "has documentation" ;
    sh:description "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." ;
    sh:path koio:hasDocumentation ;
    sh:class koio:InformationArtifact ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:description """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.""" ;
    sh:path <http://www.ebi.ac.uk/swo/SWO_0000085> ;
    sh:class koio:Implementation ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] ;
  sh:targetClass koio:Knowledge .

koio:Artifact a sh:NodeShape ;
  rdfs:comment """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""" ;
  sh:closed false ;
  sh:targetClass koio:Artifact .

koio:Service a sh:NodeShape ;
  rdfs:comment """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.""" ;
  sh:closed false ;
  sh:property [
    sh:path <http://www.ebi.ac.uk/swo/SWO_0004001> ;
    sh:class <http://www.ebi.ac.uk/swo/SWO_9000050> ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "has test" ;
    sh:description "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." ;
    sh:path koio:hasTest ;
    sh:class koio:Test ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:description "depends on, def., indicates that a service uses a specific knowledge" ;
    sh:path <http://purl.obolibrary.org/obo/RO_0002502> ;
    sh:class koio:Knowledge ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:description """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.""" ;
    sh:path <http://www.ebi.ac.uk/swo/SWO_0000085> ;
    sh:class koio:Implementation ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "has documentation" ;
    sh:description "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." ;
    sh:path koio:hasDocumentation ;
    sh:class koio:InformationArtifact ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] ;
  sh:targetClass koio:Service .
