<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:owl="http://www.w3.org/2002/07/owl#"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:skos="http://www.w3.org/2004/02/skos/core#"
  xmlns:salmodule="https://w3id.org/sal/salmodule#"
  xmlns:sh="http://www.w3.org/ns/shacl#"
  xmlns:dct="http://purl.org/dc/terms/"
  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
>
  <owl:ObjectProperty rdf:about="https://w3id.org/sal/salmodule#isSubCommandOf">
    <rdfs:label xml:lang="en">is subcommand of</rdfs:label>
    <rdfs:comment xml:lang="en">Relates a salmodule:Command instance to its parent command instance that can be executed by a SAL Module containerized application.</rdfs:comment>
    <rdfs:domain rdf:resource="https://w3id.org/sal/salmodule#Command"/>
    <owl:inverseOf>
      <owl:ObjectProperty rdf:about="https://w3id.org/sal/salmodule#hasSubCommand">
        <rdfs:label xml:lang="en">has subcommand</rdfs:label>
        <rdfs:comment xml:lang="en">Relates a salmodule:Command instance to its subcommand(s) that can be executed by a SAL Module containerized application.</rdfs:comment>
        <rdfs:domain rdf:resource="https://w3id.org/sal/salmodule#Command"/>
        <rdfs:range rdf:resource="https://w3id.org/sal/salmodule#Command"/>
      </owl:ObjectProperty>
    </owl:inverseOf>
    <rdfs:range rdf:resource="https://w3id.org/sal/salmodule#Command"/>
  </owl:ObjectProperty>
  <owl:AnnotationProperty rdf:about="https://w3id.org/sal/salmodule#protocolScheme">
    <rdfs:comment xml:lang="en">The protocol scheme used to identify SAL Module resources.</rdfs:comment>
    <rdfs:label xml:lang="en">Protocol Scheme</rdfs:label>
    <rdfs:seeAlso>
      <salmodule:Command rdf:about="https://w3id.org/sal/salmodule#OntologyCommand">
        <rdfs:label xml:lang="en">ontology</rdfs:label>
        <rdfs:label xml:lang="en">vocab</rdfs:label>
        <rdfs:label xml:lang="en">vocabulary</rdfs:label>
        <salmodule:isSubCommandOf rdf:resource="https://w3id.org/sal/salmodule#SALModuleCommand"/>
        <rdfs:comment xml:lang="en">The command that prints the SAL Module ontology to stdout in JSON-LD format.</rdfs:comment>
        <dct:conformsTo rdf:resource="https://w3id.org/sal/salmodule#Specification"/>
      </salmodule:Command>
    </rdfs:seeAlso>
    <rdfs:seeAlso>
      <salmodule:Command rdf:about="https://w3id.org/sal/salmodule#RunCommand">
        <rdfs:label xml:lang="en">run</rdfs:label>
        <salmodule:isSubCommandOf rdf:resource="https://w3id.org/sal/salmodule#SALModuleCommand"/>
        <rdfs:comment xml:lang="en">The command that invokes a salmodule:Task subclass instance within a SAL Module containerized application.</rdfs:comment>
        <dct:conformsTo rdf:resource="https://w3id.org/sal/salmodule#Specification"/>
        <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#TaskInstance"/>
      </salmodule:Command>
    </rdfs:seeAlso>
    <skos:example>salmodule://github.com/owner/repository</skos:example>
    <skos:note xml:lang="en">Dereferencing an ontology with a SAL Module protocol scheme involves using 1) the github based protocol 
    to clone the remote git repository 2) build the container image using the Dockerfile located in 
    the base repository directory and 3) run the container using the salmodule:OntologyCommand.</skos:note>
  </owl:AnnotationProperty>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#NodeConsumer">
    <owl:equivalentClass>
      <owl:Class rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab4">
        <owl:intersectionOf rdf:parseType="Collection">
          <rdf:Description rdf:about="https://w3id.org/sal/salmodule#Task"/>
          <owl:Restriction rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab5">
            <owl:onProperty>
              <owl:AnnotationProperty rdf:about="https://w3id.org/sal/salmodule#stdinShape">
                <rdfs:range rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
                <rdfs:comment xml:lang="en">An annotation property representing the required SHACL sh:NodeShape(s) of the newline delimited JSON node input stream from stdin to a salmodule:Task within a SAL Module containerized application.</rdfs:comment>
                <rdfs:label xml:lang="en">JSON(-LD) Node stdin SHACL Shape</rdfs:label>
                <skos:note xml:lang="en">It is the responsibility of the salmodule:Task subclass implementation to inject its ontology's JSON-LD @context into the JSON input node to resolve to its vocabulary.</skos:note>
                <skos:note xml:lang="en">The input stream accepts newline delimited JSON objects (not JSON-LD).</skos:note>
              </owl:AnnotationProperty>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
          </owl:Restriction>
        </owl:intersectionOf>
      </owl:Class>
    </owl:equivalentClass>
    <rdfs:comment xml:lang="en">An inferred class representing an entity that consumes JSON(-LD) newline delimited JSON node stream from stdin within a SAL Module containerized application. Do NOT use this class directly to subclass your task. Used salmodule:Task instead. Intended for OWL Reasoner.</rdfs:comment>
    <rdfs:label xml:lang="en">Node Consumer</rdfs:label>
  </owl:Class>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#NodeProducer">
    <owl:equivalentClass>
      <owl:Class rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab14">
        <owl:intersectionOf rdf:parseType="Collection">
          <rdf:Description rdf:about="https://w3id.org/sal/salmodule#Task"/>
          <owl:Restriction rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab15">
            <owl:onProperty>
              <owl:AnnotationProperty rdf:about="https://w3id.org/sal/salmodule#stdoutShape">
                <rdfs:range rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
                <rdfs:comment xml:lang="en">An annotation property representing the required SHACL sh:NodeShape(s) of the newline delimited JSON node output stream to stdout from a salmodule:Task subclass instance within a SAL Module containerized application.</rdfs:comment>
                <rdfs:label xml:lang="en">JSON(-LD) Node stdout SHACL Shape</rdfs:label>
                <skos:note xml:lang="en">The output stream must produce newline delimited JSON nodes that conform to the specified sh:NodeShape(s) when injected with the JSON-LD @context object defined within the salmodule's ontology.</skos:note>
              </owl:AnnotationProperty>
            </owl:onProperty>
            <owl:someValuesFrom rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
          </owl:Restriction>
        </owl:intersectionOf>
      </owl:Class>
    </owl:equivalentClass>
    <rdfs:comment xml:lang="en">An inferred class representing an entity that produces a newline delimited JSON node stream to stdout within a SAL Module containerized application. Do NOT use this class directly to subclass your task. Used salmodule:Task instead. Intended for OWL Reasoner.</rdfs:comment>
    <rdfs:label xml:lang="en">Node Producer</rdfs:label>
  </owl:Class>
  <owl:Ontology rdf:about="https://w3id.org/sal/salmodule#">
    <dct:creator>Andrew Padilla</dct:creator>
    <dct:date rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2024-06-01</dct:date>
    <dct:description xml:lang="en">This is the SAL Module vocabulary for implementing the SAL Module specification in containerized application logic orchestrated within SAL projects</dct:description>
    <dct:title xml:lang="en">The Semantic Accessibility Layer (SAL) Module Ontology</dct:title>
    <rdfs:label xml:lang="en">SAL Module</rdfs:label>
    <owl:versionInfo>0.0.2</owl:versionInfo>
    <salmodule:protocolScheme>salmodule</salmodule:protocolScheme>
  </owl:Ontology>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#NodeProcessor">
    <owl:equivalentClass>
      <owl:Class rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab8">
        <owl:intersectionOf rdf:parseType="Collection">
          <rdf:Description rdf:about="https://w3id.org/sal/salmodule#Task"/>
          <owl:Restriction rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab9">
            <owl:onProperty rdf:resource="https://w3id.org/sal/salmodule#stdinShape"/>
            <owl:someValuesFrom rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
          </owl:Restriction>
          <owl:Restriction rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab10">
            <owl:onProperty rdf:resource="https://w3id.org/sal/salmodule#stdoutShape"/>
            <owl:someValuesFrom rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
          </owl:Restriction>
        </owl:intersectionOf>
      </owl:Class>
    </owl:equivalentClass>
    <rdfs:comment xml:lang="en">An inferred class representing an entity that processes newline delimited JSON node streams via stdin/stdout within a SAL Module containerized application. Do NOT use this class directly to subclass your task. Used salmodule:Task instead. Intended for OWL Reasoner.</rdfs:comment>
    <rdfs:label xml:lang="en">Node Processor</rdfs:label>
  </owl:Class>
  <owl:AnnotationProperty rdf:about="https://w3id.org/sal/salmodule#taskShape">
    <rdfs:range rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
    <rdfs:comment xml:lang="en">An annotation property representing the required shape of the salmodule:Task subclass instance itself.</rdfs:comment>
    <rdfs:label xml:lang="en">JSON(-LD) Node Task SHACL Shape</rdfs:label>
  </owl:AnnotationProperty>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#EnvironmentVariable">
    <rdfs:label xml:lang="en">Environment Variable</rdfs:label>
    <rdfs:comment xml:lang="en">A class representing an environment variable that is part of the SAL Module specification.</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#Command">
    <rdfs:label xml:lang="en">Command</rdfs:label>
    <rdfs:comment xml:lang="en">A class representing a command that can be executed within a SAL Module containerized application as part of the SAL Module command line specification.</rdfs:comment>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#Task"/>
  </owl:Class>
  <salmodule:Command rdf:about="https://w3id.org/sal/salmodule#SALModuleCommand">
    <rdfs:label xml:lang="en">salmodule</rdfs:label>
    <rdfs:comment xml:lang="en">The base command for all containerized applications that adhere to the SAL Module specification.</rdfs:comment>
    <dct:conformsTo>
      <dct:Standard rdf:about="https://w3id.org/sal/salmodule#Specification">
        <rdfs:comment xml:lang="en">A resource representing the SAL Module specification.</rdfs:comment>
        <rdfs:label xml:lang="en">SAL Module Specification</rdfs:label>
      </dct:Standard>
    </dct:conformsTo>
    <salmodule:hasSubCommand rdf:resource="https://w3id.org/sal/salmodule#RunCommand"/>
    <salmodule:hasSubCommand rdf:resource="https://w3id.org/sal/salmodule#OntologyCommand"/>
  </salmodule:Command>
  <salmodule:EnvironmentVariable rdf:about="https://w3id.org/sal/salmodule#TaskInstance">
    <rdfs:label xml:lang="en">SALMODULE_TASK_INSTANCE</rdfs:label>
    <rdfs:comment xml:lang="en">The environment variable that identifies the instance of a salmodule:Task subclass defined in a SAL Module ontology to be invoked by salmodule:RunCommand.</rdfs:comment>
    <dct:conformsTo rdf:resource="https://w3id.org/sal/salmodule#Specification"/>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#RunCommand"/>
  </salmodule:EnvironmentVariable>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#Error">
    <rdfs:comment xml:lang="en">A class representing an error condition within a salmodule:Task at runtime.</rdfs:comment>
    <rdfs:label xml:lang="en">Error</rdfs:label>
    <dct:conformsTo rdf:resource="https://w3id.org/sal/salmodule#Specification"/>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#Task"/>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#RunCommand"/>
    <rdfs:seeAlso>
      <owl:AnnotationProperty rdf:about="https://w3id.org/sal/salmodule#stderrShape">
        <rdfs:range rdf:resource="http://www.w3.org/ns/shacl#NodeShape"/>
        <rdfs:comment xml:lang="en">An annotation property representing the required SHACL sh:NodeShape(s) of the newline delimited JSON node error stream to stderr from a salmodule:Task subclass instance within a SAL Module containerized application.</rdfs:comment>
        <rdfs:label xml:lang="en">JSON(-LD) Node stderr SHACL Shape</rdfs:label>
        <skos:note xml:lang="en">The error stream must produce newline delimited JSON nodes that conform to the specified sh:NodeShape(s) when injected with the JSON-LD @context object defined within the salmodule's ontology.</skos:note>
      </owl:AnnotationProperty>
    </rdfs:seeAlso>
    <skos:note xml:lang="en">Instances of salmodule:Error represent error conditions that occur during the execution of a salmodule:Task within a SAL Module containerized application.</skos:note>
    <skos:note xml:lang="en">A task reports an instance as one newline delimited JSON node on stderr, never on stdout, which carries only data; it carries both an rdfs:label naming the error and an rdfs:comment describing it, which together are the message the SAL Project reports the failure with.</skos:note>
  </owl:Class>
  <owl:Class rdf:about="https://w3id.org/sal/salmodule#Task">
    <rdfs:comment xml:lang="en">A class representing an operational task within a SAL Module containerized application.</rdfs:comment>
    <rdfs:label xml:lang="en">Task</rdfs:label>
    <dct:conformsTo rdf:resource="https://w3id.org/sal/salmodule#Specification"/>
    <skos:note xml:lang="en">SAL Module implementers create subclasses of salmodule:Task to define specific operational tasks within the containerized application.</skos:note>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#TaskInstance"/>
    <rdfs:seeAlso rdf:resource="https://w3id.org/sal/salmodule#RunCommand"/>
    <salmodule:stderrShape>
      <sh:NodeShape rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab1">
        <sh:property>
          <rdf:Description rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab2">
            <sh:message xml:lang="en">An rdfs:comment (message) is required for salmodule:Error instances</sh:message>
            <sh:minCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:minCount>
            <sh:path rdf:resource="http://www.w3.org/2000/01/rdf-schema#comment"/>
          </rdf:Description>
        </sh:property>
        <sh:property>
          <rdf:Description rdf:nodeID="n821cd0f888c44b8c9fd4626afa1a024ab3">
            <sh:message xml:lang="en">An rdfs:label is required for salmodule:Error instances</sh:message>
            <sh:minCount rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</sh:minCount>
            <sh:path rdf:resource="http://www.w3.org/2000/01/rdf-schema#label"/>
          </rdf:Description>
        </sh:property>
        <sh:targetClass rdf:resource="https://w3id.org/sal/salmodule#Error"/>
      </sh:NodeShape>
    </salmodule:stderrShape>
  </owl:Class>
</rdf:RDF>
