PREFIX lftdo: <https://github.com/tumelomodise/LFTDO#>
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#>

lftdo:Boundary a sh:NodeShape ;
  rdfs:comment "The RestrictedArea is a location in a farm that isSecuredGuardedBy only EndUser device." ;
  sh:closed false ;
  sh:property [
    sh:name "hasCity" ;
    sh:description "Location has a City" ;
    sh:path lftdo:hasCity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasLocationName" ;
    sh:description "Location has some name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isMonitoredByDevice" ;
    sh:description "Farm is managed by some Device" ;
    sh:minCount 1 ;
    sh:path lftdo:isMonitoredByDevice ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasFence" ;
    sh:description "Farm has Fence?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFence ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasProvince" ;
    sh:description "Location has some province e.g. Gauteng." ;
    sh:path lftdo:hasProvince ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasLocationDescription" ;
    sh:description "Location has some description." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "isUsedByFarmer" ;
    sh:description "A Farm is used by some Farmer for some Livestock keeping." ;
    sh:minCount 1 ;
    sh:path lftdo:isUsedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasMinLon" ;
    sh:description "Western Boundary" ;
    sh:path lftdo:hasMinLon ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "hasLocationType" ;
    sh:description "The location has a type of location." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "isRemoteArea" ;
    sh:description "Determine if the Location is remote or rural area?" ;
    sh:path lftdo:isRemoteArea ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 13
  ] , [
    sh:name "isLocationOfIncident" ;
    sh:description "Location isLocationOf some LivestockEvent" ;
    sh:path lftdo:isLocationOfIncident ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "isSecurelyGuarded" ;
    sh:description "This an RestrictedArea or Location that is securely guarded by the EndDevices" ;
    sh:path lftdo:isSecurelyGuarded ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] ;
  sh:targetClass lftdo:Boundary .

lftdo:HealthAlertEvent a sh:NodeShape ;
  rdfs:comment "HealthAlertEvent: Alert related to Livestock Health" ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasAbnormalBehaviourState" ;
    sh:description "Livestock has Behaviour(s) has some AbnormalBehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAbnormalBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:HealthAlertEvent .

lftdo:Drinking a sh:NodeShape ;
  rdfs:comment """Referenced Ontology: Drinking = Drinking Behavior (ATOL:0000361) \"any measurable or observable characteristic related to the consumption of liquids ressources such as water or milk\" (Meunier-Salaün et. al,2015)
under: Animal trait of livestock ->pyschroneuroendocrinological state trait->ingestive behaviour->drinking behavior""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Drinking .

lftdo:Movement a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1.Movement is a behaviour
3.Different behaviour states may be observed based  on Movement rate, distance covered and  Geopositions.
Reference:
Movement = Member movement (ATOL:000842) (Meunier-Salaün et. al,2015)
Under Behavior trait->Motor activity->body movement->member movement behavior.""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Movement .

lftdo:TheftEvent a sh:NodeShape ;
  rdfs:comment "TheftEvent: Is trigged by some TheftIndicator that is identified as a theft attempts or suspicious event and is caused by some UnauthorisedPerson" ;
  sh:closed false ;
  sh:property [
    sh:name "causedBy" ;
    sh:description "TheftEvent is caused by some UnauthorisedPerson an agentive cause (the intruder)" ;
    sh:minCount 1 ;
    sh:path lftdo:causedBy ;
    sh:class lftdo:UnauthorisedPerson ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasTheftEventReport" ;
    sh:path lftdo:hasTheftEventReport ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasAbnormalBehaviourState" ;
    sh:description "Livestock has Behaviour(s) has some AbnormalBehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAbnormalBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "InferredComplexTheftEvent" ;
    sh:path lftdo:InferredComplexTheftEvent ;
    sh:order 8
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 9
  ] , [
    sh:name "hasTheftEventLocation" ;
    sh:description "TheftEvent happens at some Location" ;
    sh:path lftdo:hasTheftEventLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] ;
  sh:targetClass lftdo:TheftEvent .

lftdo:DataTransmission a sh:NodeShape ;
  rdfs:comment "DataTransmission: Represent the flow of data between devices and cloud services." ;
  sh:closed false ;
  sh:property [
    sh:name "hasDataSize" ;
    sh:description """SensorData has some DataSize
Measures the packet size (e.g., in KB).""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDataSize ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCloudService" ;
    sh:description "DataTransmission has some CloudService" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCloudService ;
    sh:class lftdo:CloudService ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasDataOutputType" ;
    sh:description """DataTransmission has some data output type.
Identifies if the data is \"GPS Coordinates,\" \"Accelerometer G-force,\" or \"Battery Level.\"""" ;
    sh:path lftdo:hasDataOutputType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasDataTimeStamp" ;
    sh:description """DataTransmission has some DataTimeStamp.

Records exactly when the event happened.""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDataTimeStamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] ;
  sh:targetClass lftdo:DataTransmission .

lftdo:EnvironmentalIndicator a sh:NodeShape ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isIndicatorOf" ;
    sh:path lftdo:isIndicatorOf ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "initiatesAlert" ;
    sh:description "TheftIndicator initiates TheftEvent" ;
    sh:path lftdo:initiatesAlert ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "triggersAlertLevel" ;
    sh:description "TheftIndicator has a triggersAlertLevel" ;
    sh:path lftdo:triggersAlertLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "isExtractedFrom" ;
    sh:description "LivestockIndicator isExtractedFom some SensorData" ;
    sh:path lftdo:isExtractedFrom ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "characterises" ;
    sh:description "Livestock Indicator characterises some BehaviourState" ;
    sh:path lftdo:characterises ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 7
  ] , [
    sh:name "evidenceFor" ;
    sh:description "LivestockIndicator provides evidenceFor some LivestockEvent" ;
    sh:path lftdo:evidenceFor ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:EnvironmentalIndicator .

lftdo:SuspiciousEvent a sh:NodeShape ;
  rdfs:comment "SuspiciousEvent: Is trigged by some SuspiciousIndicator that is identified as a Livestock Behaviour changes that could indicate suspicious activities." ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasAbnormalBehaviourState" ;
    sh:description "Livestock has Behaviour(s) has some AbnormalBehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAbnormalBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:SuspiciousEvent .

lftdo:Location a sh:NodeShape ;
  rdfs:comment """Locations are farmer area where the livestock are being kept is referred to as a Farm.It can be at an urban, rural, or semi-urban location, and may have pen and open fields that are fenced or unfenced. 

The position of livestock within a farm location is constrained to date and time, and their behavior influences their movement. The livestock position within a location may be indicated with coordinates such as longitude and latitude, which are used to precisely determine the location of livestock within a farm area, as discussed by  (Symeonaki et al., 2020).

Relationships:
1.Location (e.g., a farm) has a specific time period(startTime and endTime) during which certain events or activities occurs.
2.Location (e.g., a farm) has a specific geographical position defined by latitude and longitude coordinates.""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasCity" ;
    sh:description "Location has a City" ;
    sh:path lftdo:hasCity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasLocationName" ;
    sh:description "Location has some name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasProvince" ;
    sh:description "Location has some province e.g. Gauteng." ;
    sh:path lftdo:hasProvince ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasLocationDescription" ;
    sh:description "Location has some description." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasMinLon" ;
    sh:description "Western Boundary" ;
    sh:path lftdo:hasMinLon ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasLocationType" ;
    sh:description "The location has a type of location." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "isRemoteArea" ;
    sh:description "Determine if the Location is remote or rural area?" ;
    sh:path lftdo:isRemoteArea ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 10
  ] , [
    sh:name "isLocationOfIncident" ;
    sh:description "Location isLocationOf some LivestockEvent" ;
    sh:path lftdo:isLocationOfIncident ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isSecurelyGuarded" ;
    sh:description "This an RestrictedArea or Location that is securely guarded by the EndDevices" ;
    sh:path lftdo:isSecurelyGuarded ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] ;
  sh:targetClass lftdo:Location .

lftdo:GoatWithFever a sh:NodeShape ;
  rdfs:comment "Goat that hasBodyTemperature >= 39.7 celsius, is a Goat with Fever" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasGoatBodyConditionScore" ;
    sh:description "Goat has some GoatBodyConditionScore" ;
    sh:path lftdo:hasGoatBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 29
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 32
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 34
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 35
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 36
  ] ;
  sh:targetClass lftdo:GoatWithFever .

lftdo:AudioMonitoringSystem a sh:NodeShape ;
  rdfs:comment "AudioMonitoringSystem is a theft DetectionMethod" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDetectionMethodType" ;
    sh:description "DetectionMethod has a Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasFalsePositiveRate" ;
    sh:description "DetectionMethod has some FalsePositiveRate" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFalsePositiveRate ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:minCount 1 ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasMethodAttribute" ;
    sh:description "DetectionMethod has some Attributes" ;
    sh:minCount 1 ;
    sh:path lftdo:hasMethodAttribute ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasSensitivityLevel" ;
    sh:description "SensitivityLevel like \"High\", \"Medium\", \"Low\"" ;
    sh:path lftdo:hasSensitivityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "identifies" ;
    sh:description "DetectionMethod identifies some BehaviourState" ;
    sh:path lftdo:identifies ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isDetectionActive" ;
    sh:path lftdo:isDetectionActive ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDetectionThreshold" ;
    sh:description "Confidence level required to trigger" ;
    sh:path lftdo:hasDetectionThreshold ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "produces" ;
    sh:description "DetectionMethod produces some System Event" ;
    sh:path lftdo:produces ;
    sh:class lftdo:SystemEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isImplementedBy" ;
    sh:description """DetectionMethod isImplementedBy SoftwareApplication.

Usually, a specific logical Method (the \"Theft Logic\") is implemented by one specific Software Application. While there could be two apps doing the same thing, it’s rarely efficient in IoT.""" ;
    sh:path lftdo:isImplementedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasDetectionLatencyMs" ;
    sh:description "How many milliseconds it takes to process the data. This proves \"Real-time\" capability for theft." ;
    sh:path lftdo:hasDetectionLatencyMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasReliabilityScore" ;
    sh:description "A weight given to the method based on historical performance." ;
    sh:path lftdo:hasReliabilityScore ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasDetectionPriority" ;
    sh:description "A \"Theft\" detection should have a higher priority than a \"Low Battery\" warning." ;
    sh:path lftdo:hasDetectionPriority ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "analyses" ;
    sh:description "DetectionMethod analyses Database data" ;
    sh:minCount 1 ;
    sh:path lftdo:analyses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasTrainingData" ;
    sh:description "DetectionMethod has some TrainingData?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTrainingData ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLastScanTime" ;
    sh:path lftdo:hasLastScanTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "detects" ;
    sh:description "DetectictionMethod detects LivestockIndicators" ;
    sh:path lftdo:detects ;
    sh:or (
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:AudioMonitoringSystem .

lftdo:Restlessness a sh:NodeShape ;
  rdfs:comment "Restlessness is an AbnormalState of Behaviour of Livestock" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSeverityLevel" ;
    sh:description "AbnormalState has some severity level." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSeverityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:minCount 1 ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isTransitionedFrom" ;
    sh:description "AbnormalBehaviour State is transitionedFrom some Normal Behaviour State" ;
    sh:path lftdo:isTransitionedFrom ;
    sh:class lftdo:NormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 15
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 16
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:Restlessness .

lftdo:Farmer a sh:NodeShape ;
  rdfs:comment """Farmer is the owner of some Livestock.
A Farmer owns various domestic animals such as cattle, sheep, and goats.""" ;
  sh:closed false ;
  sh:property [
    sh:name "usesFarm" ;
    sh:description "Farmer uses some Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:usesFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isOwnerOfLivestock" ;
    sh:description "Farmer is an owner of some Livestock." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnerOfLivestock ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:Farmer .

lftdo:DetectionMethod a sh:NodeShape ;
  rdfs:comment """Detection Method: Represent the algorithms used to detect the theft events.
Sub-classes:
1.AudioMonitoringSystem
2.BehaviourMonitoringSystem
3.GPSTrackingSystem
4.VideoMonitoringSystem""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDetectionMethodType" ;
    sh:description "DetectionMethod has a Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasFalsePositiveRate" ;
    sh:description "DetectionMethod has some FalsePositiveRate" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFalsePositiveRate ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:minCount 1 ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasMethodAttribute" ;
    sh:description "DetectionMethod has some Attributes" ;
    sh:minCount 1 ;
    sh:path lftdo:hasMethodAttribute ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasSensitivityLevel" ;
    sh:description "SensitivityLevel like \"High\", \"Medium\", \"Low\"" ;
    sh:path lftdo:hasSensitivityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "identifies" ;
    sh:description "DetectionMethod identifies some BehaviourState" ;
    sh:path lftdo:identifies ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isDetectionActive" ;
    sh:path lftdo:isDetectionActive ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDetectionThreshold" ;
    sh:description "Confidence level required to trigger" ;
    sh:path lftdo:hasDetectionThreshold ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "produces" ;
    sh:description "DetectionMethod produces some System Event" ;
    sh:path lftdo:produces ;
    sh:class lftdo:SystemEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isImplementedBy" ;
    sh:description """DetectionMethod isImplementedBy SoftwareApplication.

Usually, a specific logical Method (the \"Theft Logic\") is implemented by one specific Software Application. While there could be two apps doing the same thing, it’s rarely efficient in IoT.""" ;
    sh:path lftdo:isImplementedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasDetectionLatencyMs" ;
    sh:description "How many milliseconds it takes to process the data. This proves \"Real-time\" capability for theft." ;
    sh:path lftdo:hasDetectionLatencyMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasReliabilityScore" ;
    sh:description "A weight given to the method based on historical performance." ;
    sh:path lftdo:hasReliabilityScore ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasDetectionPriority" ;
    sh:description "A \"Theft\" detection should have a higher priority than a \"Low Battery\" warning." ;
    sh:path lftdo:hasDetectionPriority ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "analyses" ;
    sh:description "DetectionMethod analyses Database data" ;
    sh:minCount 1 ;
    sh:path lftdo:analyses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasTrainingData" ;
    sh:description "DetectionMethod has some TrainingData?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTrainingData ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLastScanTime" ;
    sh:path lftdo:hasLastScanTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "detects" ;
    sh:description "DetectictionMethod detects LivestockIndicators" ;
    sh:path lftdo:detects ;
    sh:or (
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:DetectionMethod .

lftdo:CattleWithFever a sh:NodeShape ;
  rdfs:comment "Cattle that hasBodyTemperature >= 39.4 celsius, is a Cattle with Fever" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:CattleWithFever .

lftdo:RestrictedArea a sh:NodeShape ;
  rdfs:comment "The RestrictedArea is a location in a farm that isSecuredGuardedBy only EndUser device." ;
  sh:closed false ;
  sh:property [
    sh:name "hasCity" ;
    sh:description "Location has a City" ;
    sh:path lftdo:hasCity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasLocationName" ;
    sh:description "Location has some name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isMonitoredByDevice" ;
    sh:description "Farm is managed by some Device" ;
    sh:minCount 1 ;
    sh:path lftdo:isMonitoredByDevice ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasFence" ;
    sh:description "Farm has Fence?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFence ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasProvince" ;
    sh:description "Location has some province e.g. Gauteng." ;
    sh:path lftdo:hasProvince ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasLocationDescription" ;
    sh:description "Location has some description." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "isUsedByFarmer" ;
    sh:description "A Farm is used by some Farmer for some Livestock keeping." ;
    sh:minCount 1 ;
    sh:path lftdo:isUsedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasMinLon" ;
    sh:description "Western Boundary" ;
    sh:path lftdo:hasMinLon ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "hasLocationType" ;
    sh:description "The location has a type of location." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "isRemoteArea" ;
    sh:description "Determine if the Location is remote or rural area?" ;
    sh:path lftdo:isRemoteArea ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 13
  ] , [
    sh:name "isLocationOfIncident" ;
    sh:description "Location isLocationOf some LivestockEvent" ;
    sh:path lftdo:isLocationOfIncident ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "isSecurelyGuarded" ;
    sh:description "This an RestrictedArea or Location that is securely guarded by the EndDevices" ;
    sh:path lftdo:isSecurelyGuarded ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] ;
  sh:targetClass lftdo:RestrictedArea .

lftdo:Veterinarian a sh:NodeShape ;
  rdfs:comment "The veterinarian understands the behavior of domestic animals and often treats the domestic animals for diseases." ;
  sh:closed false ;
  sh:property [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] ;
  sh:targetClass lftdo:Veterinarian .

lftdo:RoutineLogEvent a sh:NodeShape ;
  rdfs:comment "Classifies the a Data-Persistence Event" ;
  sh:closed false ;
  sh:property [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 0
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isStoredIn" ;
    sh:description "This ensures the reasoner knows that log events are meant for storage, keeping the communication channel (the SoftwareApplication) clear of \"noise\"." ;
    sh:path lftdo:isStoredIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "logGeneratedBy" ;
    sh:description "RoutineLogEvent isGeneratedBy some Software" ;
    sh:path lftdo:logGeneratedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] ;
  sh:targetClass lftdo:RoutineLogEvent .

lftdo:CattleWithNormalBodyTempareture a sh:NodeShape ;
  rdfs:comment """Check the transition from normal to abnormal livestock Health condition when, for instance, a Cow's Body temperature
deviates from an normal body temperature of a healthy adult cow, which ranges from 38°C to 39.3°C, with an average of approximately 38.6°C.The the exceeded deviation from the norm could indicate synificant anomly and resulting in a potential theft or health alert issued to the farmer. 

e.g. Cattle with an Abnormal Body Temperatute has a hasBodyTemperature outside the normal range [>=38,>39.3]""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:CattleWithNormalBodyTempareture .

<http://www.w3.org/2003/11/swrl#Variable> a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass <http://www.w3.org/2003/11/swrl#Variable> .

lftdo:SuspiciousIndicator a sh:NodeShape ;
  rdfs:comment "Suspicious Indicator may indicate that there is a suspecious activity event." ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isIndicatorOf" ;
    sh:path lftdo:isIndicatorOf ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "initiatesAlert" ;
    sh:description "TheftIndicator initiates TheftEvent" ;
    sh:path lftdo:initiatesAlert ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "triggersAlertLevel" ;
    sh:description "TheftIndicator has a triggersAlertLevel" ;
    sh:path lftdo:triggersAlertLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "isExtractedFrom" ;
    sh:description "LivestockIndicator isExtractedFom some SensorData" ;
    sh:path lftdo:isExtractedFrom ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "characterises" ;
    sh:description "Livestock Indicator characterises some BehaviourState" ;
    sh:path lftdo:characterises ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 7
  ] , [
    sh:name "evidenceFor" ;
    sh:description "LivestockIndicator provides evidenceFor some LivestockEvent" ;
    sh:path lftdo:evidenceFor ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:SuspiciousIndicator .

lftdo:Farm a sh:NodeShape ;
  rdfs:comment "The farm is a location with some livestock." ;
  sh:closed false ;
  sh:property [
    sh:name "hasCity" ;
    sh:description "Location has a City" ;
    sh:path lftdo:hasCity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasLocationName" ;
    sh:description "Location has some name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:minCount 1 ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isMonitoredByDevice" ;
    sh:description "Farm is managed by some Device" ;
    sh:minCount 1 ;
    sh:path lftdo:isMonitoredByDevice ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasFence" ;
    sh:description "Farm has Fence?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFence ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasProvince" ;
    sh:description "Location has some province e.g. Gauteng." ;
    sh:path lftdo:hasProvince ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasDevice" ;
    sh:description "Farm hasDevice" ;
    sh:path lftdo:hasDevice ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasFarmName" ;
    sh:description "Farm has a name" ;
    sh:path lftdo:hasFarmName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasLocationDescription" ;
    sh:description "Location has some description." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "hasMinLon" ;
    sh:description "Western Boundary" ;
    sh:path lftdo:hasMinLon ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "isRemoteArea" ;
    sh:description "Determine if the Location is remote or rural area?" ;
    sh:path lftdo:isRemoteArea ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 13
  ] , [
    sh:name "hasFarmSizeInHa" ;
    sh:description "Farm has Size In Hectors" ;
    sh:path lftdo:hasFarmSizeInHa ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isUsedByFarmer" ;
    sh:description "A Farm is used by some Farmer for some Livestock keeping." ;
    sh:minCount 1 ;
    sh:path lftdo:isUsedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasLocationType" ;
    sh:description "The location has a type of location." ;
    sh:minCount 1 ;
    sh:path lftdo:hasLocationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasFarmID" ;
    sh:description "Farm has FarmID" ;
    sh:path lftdo:hasFarmID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "isLocationOfIncident" ;
    sh:description "Location isLocationOf some LivestockEvent" ;
    sh:path lftdo:isLocationOfIncident ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 18
  ] , [
    sh:name "isSecurelyGuarded" ;
    sh:description "This an RestrictedArea or Location that is securely guarded by the EndDevices" ;
    sh:path lftdo:isSecurelyGuarded ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 19
  ] ;
  sh:targetClass lftdo:Farm .

lftdo:SensorData a sh:NodeShape ;
  rdfs:comment "SensorData: Represents data collected from device sensors attached to the livestock and environment, providing various behaviour states." ;
  sh:closed false ;
  sh:property [
    sh:name "isExtractedTo" ;
    sh:description "SensorData isExtractedTo some LivestockIndicator" ;
    sh:path lftdo:isExtractedTo ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasSensorTimeStamp" ;
    sh:description "SensorData has some date and time." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSensorTimeStamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isSensorDataAnomaly" ;
    sh:description "is there some Sensor Data anomaly?" ;
    sh:path lftdo:isSensorDataAnomaly ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "representsDataType" ;
    sh:description """SensorData has present some DataType.
\"Motion,\" \"Position,\" or \"Biometric\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:representsDataType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasValue" ;
    sh:description "SensorData has some Value." ;
    sh:path lftdo:hasValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isStoredIn" ;
    sh:description "This ensures the reasoner knows that log events are meant for storage, keeping the communication channel (the SoftwareApplication) clear of \"noise\"." ;
    sh:path lftdo:isStoredIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasSensorDataValue" ;
    sh:description "SensorData has some value." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSensorDataValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasTransmissionTimeStamp" ;
    sh:path lftdo:hasTransmissionTimeStamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "isGeneratedByDevice" ;
    sh:description "SensorData isGeneratedBy of some Device" ;
    sh:minCount 1 ;
    sh:path lftdo:isGeneratedByDevice ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:SensorData .

lftdo:Fever a sh:NodeShape ;
  rdfs:comment "Fever  is a health condition" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:Fever .

lftdo:Sleeping a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1.Sleeping is a behaviour
2.Sleeping can be a normal or abnormal state based on the sleeping duration
Sleeping = Sleep pattern(ATOL:000369) \"any measurable or observable characteristic related to the wake/sleep cycle\" (Meunier-Salaün et. al,2015)
Under: Animal Trait->Pyschoneuroendocrinological state trait->biological rhythm->sleep pattern""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Sleeping .

lftdo:Device a sh:NodeShape ;
  rdfs:comment """Device are different types of devices used in livestock farming for various reasons such as “autonomous real-time interaction” and collecting and exchanging of data between devices and software applications, this device includes sensors, end devices such as Radio Frequencies Identification(RFID), ear tags, collars, and end-user devices such as smartphones, communication gateways such as LoRagateway from different manufactures (Symeonaki et al., 2020). The devices are connected to the cloud for remote access.

Devices:
1.A Communication Gateway is a Device not fitted into a livestock and is connected to the internet(Cloud Computing Services)
2.End device is device attached to a livestock fitted with sensors 
3.Sensor is a Device that detect the changes on livestock and the environment
4.User device is a Device not fitted into a livestock 

Relationships:
1.A device is connected to one or more Cloud Computing Services
2.Some end device has some sensor
3.User devices are used by some Actors to track and monitor livestock""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasModulationFrequencyRange" ;
    sh:description "The device of type communication gateway has some modulation frequency range measured in hertz e.g. 10Khz etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationFrequencyRange ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasDeviceDescription" ;
    sh:description "Device has some Description" ;
    sh:path lftdo:hasDeviceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasDeviceID" ;
    sh:description "Device has a DeviceID" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceID ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasDeviceName" ;
    sh:description "Device has some DeviceName" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "transmitSensorDataTo" ;
    sh:description "Device(EndDevice) transmit some SensorDataTo a DataTransmission" ;
    sh:path lftdo:transmitSensorDataTo ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasManufacturerDate" ;
    sh:description "The device has the manufacture date." ;
    sh:path lftdo:hasManufacturerDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasDeviceSensorType" ;
    sh:description "Device has some SensorType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDeviceSerialNumber" ;
    sh:description "Device has some DeviceSerialNumber" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSerialNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 11
  ] , [
    sh:name "hasDevicePrice" ;
    sh:description "Device has some DevicePrice" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDevicePrice ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasManufacturerName" ;
    sh:description "The device has some manufacturer" ;
    sh:minCount 1 ;
    sh:path lftdo:hasManufacturerName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "generatesData" ;
    sh:description "Device generates some Data" ;
    sh:path lftdo:generatesData ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "hasPowerStatus" ;
    sh:description "A Device has power status 'On' or 'Off' for a battery or connected to some power outlet. If its 'Off' it can indicate the some TheftIndicator of Sabotage Indicator" ;
    sh:minCount 1 ;
    sh:path lftdo:hasPowerStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "isDeviceOnline" ;
    sh:description "Device has isDeviceOnline indicator" ;
    sh:path lftdo:isDeviceOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasDeviceBatteryLife" ;
    sh:description "Device has some BatteryLife" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceBatteryLife ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "hasDeviceCapacity" ;
    sh:description "Device has some Capacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasComponent" ;
    sh:description "Device has some Sensor Components" ;
    sh:path lftdo:hasComponent ;
    sh:class lftdo:Sensor ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 21
  ] , [
    sh:name "hasDeviceProtocol" ;
    sh:description "Device has some DeviceProtocol" ;
    sh:path lftdo:hasDeviceProtocol ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "isSuitableForRuralAreas" ;
    sh:description "Checks if the device is Suitable to use for rural areas?" ;
    sh:path lftdo:isSuitableForRuralAreas ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasDeviceType" ;
    sh:description "Device has some DeviceType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasModulationType" ;
    sh:description "The device of type communication gateway has some modulation type e.g. Amplitude etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] ;
  sh:targetClass lftdo:Device .

lftdo:Livestock a sh:NodeShape ;
  rdfs:comment """Livestock are domestic animals such as cattle, sheep, and goats for labor, and the production of commodities for humans such as meat, milk, wool, and leather (Britannica, 2020).

Relationships:
1.Livestock is fitted with some end device for tracking and monitoring.
2.Livestock has some body condition score.
3.Livestock exhibit some Behaviour 
4.Livestock is located at some Farm Location""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:Livestock .

lftdo:VideoMonitoringSystem a sh:NodeShape ;
  rdfs:comment "VideoMonitoringSystem is a theft DetectionMethod" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDetectionMethodType" ;
    sh:description "DetectionMethod has a Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasFalsePositiveRate" ;
    sh:description "DetectionMethod has some FalsePositiveRate" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFalsePositiveRate ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:minCount 1 ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasMethodAttribute" ;
    sh:description "DetectionMethod has some Attributes" ;
    sh:minCount 1 ;
    sh:path lftdo:hasMethodAttribute ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasSensitivityLevel" ;
    sh:description "SensitivityLevel like \"High\", \"Medium\", \"Low\"" ;
    sh:path lftdo:hasSensitivityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "identifies" ;
    sh:description "DetectionMethod identifies some BehaviourState" ;
    sh:path lftdo:identifies ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isDetectionActive" ;
    sh:path lftdo:isDetectionActive ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDetectionThreshold" ;
    sh:description "Confidence level required to trigger" ;
    sh:path lftdo:hasDetectionThreshold ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "produces" ;
    sh:description "DetectionMethod produces some System Event" ;
    sh:path lftdo:produces ;
    sh:class lftdo:SystemEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isImplementedBy" ;
    sh:description """DetectionMethod isImplementedBy SoftwareApplication.

Usually, a specific logical Method (the \"Theft Logic\") is implemented by one specific Software Application. While there could be two apps doing the same thing, it’s rarely efficient in IoT.""" ;
    sh:path lftdo:isImplementedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasDetectionLatencyMs" ;
    sh:description "How many milliseconds it takes to process the data. This proves \"Real-time\" capability for theft." ;
    sh:path lftdo:hasDetectionLatencyMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasReliabilityScore" ;
    sh:description "A weight given to the method based on historical performance." ;
    sh:path lftdo:hasReliabilityScore ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasDetectionPriority" ;
    sh:description "A \"Theft\" detection should have a higher priority than a \"Low Battery\" warning." ;
    sh:path lftdo:hasDetectionPriority ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "analyses" ;
    sh:description "DetectionMethod analyses Database data" ;
    sh:minCount 1 ;
    sh:path lftdo:analyses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasTrainingData" ;
    sh:description "DetectionMethod has some TrainingData?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTrainingData ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLastScanTime" ;
    sh:path lftdo:hasLastScanTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "detects" ;
    sh:description "DetectictionMethod detects LivestockIndicators" ;
    sh:path lftdo:detects ;
    sh:or (
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:VideoMonitoringSystem .

lftdo:Database a sh:NodeShape ;
  rdfs:comment "The database is part of the cloud computing services for storing, accessing, and displaying data from livestock farming devices." ;
  sh:closed false ;
  sh:property [
    sh:name "hasDatabaseBackupAndRecovery" ;
    sh:description "Database has some BackupAndRecovery" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDatabaseBackupAndRecovery ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isAccessedBy" ;
    sh:description "Database is accessed by some SoftwareApplication" ;
    sh:path lftdo:isAccessedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "storeData" ;
    sh:description "Database stores some Data from Sensors, SystemLogs .e.t.c." ;
    sh:minCount 1 ;
    sh:path lftdo:storeData ;
    sh:or (
      [
        sh:class lftdo:RoutineLogEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SensorData ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:StatusUpdateEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "records" ;
    sh:description """LivestockIndicator or Software Application records some RoutineLogEvent in the Database.
The software writes to the log.""" ;
    sh:path lftdo:recordsEvent ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SensorData ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "hasDatabaseType" ;
    sh:description "Database has some Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDatabaseType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasEncryptionStandard" ;
    sh:path lftdo:hasEncryptionStandard ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "isStoredOn" ;
    sh:description "Database is stored on some cloudservice" ;
    sh:path lftdo:isStoredOn ;
    sh:class lftdo:CloudService ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasLastBackup" ;
    sh:path lftdo:hasLastBackup ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasDatabaseStorageCapacity" ;
    sh:description "Database has some StorageCapacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDatabaseStorageCapacity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasDatabaseSchema" ;
    sh:description "Database has a Schema" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDatabaseSchema ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDatabaseAccessControl" ;
    sh:description "Database has some AccessControl" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDatabaseAccessControl ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isAnalysedBy" ;
    sh:description "Database is analysed by some DetectionMethod" ;
    sh:path lftdo:isAnalysedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] ;
  sh:targetClass lftdo:Database .

lftdo:BehaviourState a sh:NodeShape ;
  rdfs:comment """Livestock behavior state the actions that are are likely and less likely to happen at any point in time such as normal behavior state that includes grazing and feeding, and abnormal behavior states such as restlessness and aggression (Dieng et al., 2017, Risteska Stojkoska et al., 2018). Behavior states are influenced by health, environmental, body conditions, and their locations at any point in time.

sub-classes:
1.NormalState
2.AbnormalState""" ;
  sh:closed false ;
  sh:property [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 12
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 13
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] ;
  sh:targetClass lftdo:BehaviourState .

lftdo:Agression a sh:NodeShape ;
  rdfs:comment """1.Aggression is a behaviour
Referenced Ontology: Aggression (ATOL:0001782)=Aggregative  behaviour (Meunier-Salaün et. al,2015)
Under Behavior trait->Motor activity->aggregative behavior.""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Agression .

lftdo:DistressVocalizations a sh:NodeShape ;
  rdfs:comment "DistressVocalisation is an AbnormalState of Behaviour of Livestock" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSeverityLevel" ;
    sh:description "AbnormalState has some severity level." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSeverityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:minCount 1 ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isTransitionedFrom" ;
    sh:description "AbnormalBehaviour State is transitionedFrom some Normal Behaviour State" ;
    sh:path lftdo:isTransitionedFrom ;
    sh:class lftdo:NormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 15
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 16
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:DistressVocalizations .

lftdo:SpaceUse a sh:NodeShape ;
  rdfs:comment "Referenced Ontology: SpaceUse = Space use(ATOL0000831:) \"any measurable or observable characteristic related to the behavior of the animals to use their physical environment according to the social or physical stimuli within this environment  (e.g. use of perches, use of specific area, geographic location)\" (Meunier-Salaün et. al,2015)" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:SpaceUse .

lftdo:Cattle a sh:NodeShape ;
  rdfs:comment "Cattle is a livestock" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:Cattle .

lftdo:LawEnforcementAgency a sh:NodeShape ;
  rdfs:comment "Law enforcement agents, enforce the law of the country pertaining to Livestock if not being adhered to such as theft, and abuse of livestock." ;
  sh:closed false ;
  sh:property [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] ;
  sh:targetClass lftdo:LawEnforcementAgency .

lftdo:EscapedLivestock a sh:NodeShape ;
  rdfs:comment "EscapedLivestock: Is trigged by some EscapeIndicator that is identified as a Livestock that has Escaped the Farm or Known Area." ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasAbnormalBehaviourState" ;
    sh:description "Livestock has Behaviour(s) has some AbnormalBehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAbnormalBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:EscapedLivestock .

lftdo:CattleWithLowAbnormalBodyTempareture a sh:NodeShape ;
  rdfs:comment """Check the transition from normal to abnormal livestock Health condition when, for instance, a Cow's Body temperature
deviates from an normal body temperature of a healthy adult cow, which ranges from 38°C to 39.3°C, with an average of approximately 38.6°C.The the exceeded deviation from the norm could indicate synificant anomly and resulting in a potential theft or health alert issued to the farmer. 

e.g. Cattle with an Abnormal Body Temperatute has a hasBodyTemperature outside the normal range [>=38,>39.3]""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:CattleWithLowAbnormalBodyTempareture .

lftdo:ExtremeNightTimeHeat a sh:NodeShape ;
  rdfs:comment "Extereme Night Time Heat Temperature that is above than 25 degree celcius" ;
  sh:closed false ;
  sh:property [
    sh:name "hasTemporalContext" ;
    sh:description "Relating to time: \"the spatial and temporal dimensions of human interference in complex ecosystems\", this is demoted with \"DayTime\" or \"NightTime\"" ;
    sh:path lftdo:hasTemporalContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 11
  ] ;
  sh:targetClass lftdo:ExtremeNightTimeHeat .

lftdo:ModerateAmbientTemperature a sh:NodeShape ;
  rdfs:comment "Moderate Ambient Temperature range that applies to many populated areas might be considered:Daytime: Around 20 °C to  34.9 °C." ;
  sh:closed false ;
  sh:property [
    sh:name "hasTemporalContext" ;
    sh:description "Relating to time: \"the spatial and temporal dimensions of human interference in complex ecosystems\", this is demoted with \"DayTime\" or \"NightTime\"" ;
    sh:path lftdo:hasTemporalContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 11
  ] ;
  sh:targetClass lftdo:ModerateAmbientTemperature .

lftdo:TechnicalIndicator a sh:NodeShape ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isIndicatorOf" ;
    sh:path lftdo:isIndicatorOf ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "initiatesAlert" ;
    sh:description "TheftIndicator initiates TheftEvent" ;
    sh:path lftdo:initiatesAlert ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "triggersAlertLevel" ;
    sh:description "TheftIndicator has a triggersAlertLevel" ;
    sh:path lftdo:triggersAlertLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "isExtractedFrom" ;
    sh:description "LivestockIndicator isExtractedFom some SensorData" ;
    sh:path lftdo:isExtractedFrom ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "characterises" ;
    sh:description "Livestock Indicator characterises some BehaviourState" ;
    sh:path lftdo:characterises ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 7
  ] , [
    sh:name "evidenceFor" ;
    sh:description "LivestockIndicator provides evidenceFor some LivestockEvent" ;
    sh:path lftdo:evidenceFor ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:TechnicalIndicator .

lftdo:HealthCondition a sh:NodeShape ;
  rdfs:comment """Health condition indicates various health situations of a livestock, related to Livestock behavior pertaining to livestock theft situations.
Sub-routine:
1.LegInjurty
2.Sick""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:HealthCondition .

lftdo:ExtendedOfficer a sh:NodeShape ;
  rdfs:comment """ExtendedOfficer assist with managing some Livestock.
Extended officers, work on a farm, to manage livestock such as feeding, keeping count, managing their well-being, and protecting against theft.""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] ;
  sh:targetClass lftdo:ExtendedOfficer .

lftdo:SecurityBreach a sh:NodeShape ;
  rdfs:comment "SecurityBreach: is triggered by Sabotage indicators that related to technologies misfunctions or fence cut or collar removed from Livestock." ;
  sh:closed false ;
  sh:property [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:SecurityBreach .

lftdo:LegInjury a sh:NodeShape ;
  rdfs:comment "LegInjury is a health condition" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:LegInjury .

lftdo:Sitting a sh:NodeShape ;
  rdfs:comment """1.Sitting is a behaviour
2.Sitting can be a normal or abnormal behaviour state based on duration of sitting""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Sitting .

lftdo:SheepWithFever a sh:NodeShape ;
  rdfs:comment "Sheep  that hasBodyTemperature >= 40 celsius, is a Sheep with Fever" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasSheepBodyConditionScore" ;
    sh:description "Livestock(Sheep) has some SheepBodyConditionScore" ;
    sh:path lftdo:hasSheepBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 29
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 32
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 34
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 35
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 36
  ] ;
  sh:targetClass lftdo:SheepWithFever .

lftdo:CommunicationGateway a sh:NodeShape ;
  rdfs:comment "1.A Communication Gateway is a Device not fitted into a livestock and is connected to the internet(Cloud Computing Services)" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasModulationFrequencyRange" ;
    sh:description "The device of type communication gateway has some modulation frequency range measured in hertz e.g. 10Khz etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationFrequencyRange ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasDeviceDescription" ;
    sh:description "Device has some Description" ;
    sh:path lftdo:hasDeviceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasDeviceID" ;
    sh:description "Device has a DeviceID" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceID ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasDeviceName" ;
    sh:description "Device has some DeviceName" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "transmitSensorDataTo" ;
    sh:description "Device(EndDevice) transmit some SensorDataTo a DataTransmission" ;
    sh:path lftdo:transmitSensorDataTo ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasManufacturerDate" ;
    sh:description "The device has the manufacture date." ;
    sh:path lftdo:hasManufacturerDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasDeviceSensorType" ;
    sh:description "Device has some SensorType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDeviceSerialNumber" ;
    sh:description "Device has some DeviceSerialNumber" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSerialNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 11
  ] , [
    sh:name "hasDevicePrice" ;
    sh:description "Device has some DevicePrice" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDevicePrice ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasManufacturerName" ;
    sh:description "The device has some manufacturer" ;
    sh:minCount 1 ;
    sh:path lftdo:hasManufacturerName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "generatesData" ;
    sh:description "Device generates some Data" ;
    sh:path lftdo:generatesData ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "hasPowerStatus" ;
    sh:description "A Device has power status 'On' or 'Off' for a battery or connected to some power outlet. If its 'Off' it can indicate the some TheftIndicator of Sabotage Indicator" ;
    sh:minCount 1 ;
    sh:path lftdo:hasPowerStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "isDeviceOnline" ;
    sh:description "Device has isDeviceOnline indicator" ;
    sh:path lftdo:isDeviceOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasDeviceBatteryLife" ;
    sh:description "Device has some BatteryLife" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceBatteryLife ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "hasDeviceCapacity" ;
    sh:description "Device has some Capacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasComponent" ;
    sh:description "Device has some Sensor Components" ;
    sh:path lftdo:hasComponent ;
    sh:class lftdo:Sensor ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 21
  ] , [
    sh:name "hasDeviceProtocol" ;
    sh:description "Device has some DeviceProtocol" ;
    sh:path lftdo:hasDeviceProtocol ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "isSuitableForRuralAreas" ;
    sh:description "Checks if the device is Suitable to use for rural areas?" ;
    sh:path lftdo:isSuitableForRuralAreas ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasDeviceType" ;
    sh:description "Device has some DeviceType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasModulationType" ;
    sh:description "The device of type communication gateway has some modulation type e.g. Amplitude etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] ;
  sh:targetClass lftdo:CommunicationGateway .

lftdo:BodyTemperature a sh:NodeShape ;
  rdfs:comment "Body temperature serves as a key vital sign in assessing livestock health, offering important  insights into the physiological status and general well-being of animals." ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:BodyTemperature .

lftdo:Startle a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1. Startle is a Behaviour = startle reponses(ATOL:0000368), \"any measurable or observable characteristic related to the response of the whole body to triggering stimulus without any voluntary orientation towards this given stimulus\"

In ATOL under:Aninmal trait of livestock->animal welfare trait->psychoneuroendcrinological state trait->behavior trait->motor activity->body movement->locomotor activity->startle response""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Startle .

lftdo:Sheep a sh:NodeShape ;
  rdfs:comment "Sheep is a livestock" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasSheepBodyConditionScore" ;
    sh:description "Livestock(Sheep) has some SheepBodyConditionScore" ;
    sh:path lftdo:hasSheepBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 29
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 32
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 34
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 35
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 36
  ] ;
  sh:targetClass lftdo:Sheep .

lftdo:Suckling a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1.Suckling = suckling behavior(ATOL:0000365)\"any measurable or observable beahvioral characteristic related to the intake of milk by a preweaning organism\"(Meunier-Salaün et. al,2015)
2.Suckling indicates the baby of livestock sucking miik from their mother, it had different rates, and number of times it does in an hour/day. 
3. it may have a abnormal behaviour state based on decreased suckling rate, which could indicate a baby livestock is separated from its mother

In ATOL under: animal trait of livestock->animal welfare trait->psychoneuroendocrinological state trait->behaviour trait->ingestive behavior->suckling behavior""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Suckling .

lftdo:ExtremeHeat a sh:NodeShape ;
  rdfs:comment "ExtremeHeat is an environmental condition" ;
  sh:closed false ;
  sh:property [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:ExtremeHeat .

lftdo:UserDevice a sh:NodeShape ;
  rdfs:comment """1.User device is a Device not fitted into a livestock 
2.User devices are used by some Actors such as to track and monitor livestock, secure the Farm Location""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasModulationFrequencyRange" ;
    sh:description "The device of type communication gateway has some modulation frequency range measured in hertz e.g. 10Khz etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationFrequencyRange ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasDeviceDescription" ;
    sh:description "Device has some Description" ;
    sh:path lftdo:hasDeviceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasDeviceID" ;
    sh:description "Device has a DeviceID" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceID ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasDeviceName" ;
    sh:description "Device has some DeviceName" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "transmitSensorDataTo" ;
    sh:description "Device(EndDevice) transmit some SensorDataTo a DataTransmission" ;
    sh:path lftdo:transmitSensorDataTo ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasManufacturerDate" ;
    sh:description "The device has the manufacture date." ;
    sh:path lftdo:hasManufacturerDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasDeviceSensorType" ;
    sh:description "Device has some SensorType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDeviceSerialNumber" ;
    sh:description "Device has some DeviceSerialNumber" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSerialNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 11
  ] , [
    sh:name "hasDevicePrice" ;
    sh:description "Device has some DevicePrice" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDevicePrice ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasManufacturerName" ;
    sh:description "The device has some manufacturer" ;
    sh:minCount 1 ;
    sh:path lftdo:hasManufacturerName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "generatesData" ;
    sh:description "Device generates some Data" ;
    sh:path lftdo:generatesData ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "hasPowerStatus" ;
    sh:description "A Device has power status 'On' or 'Off' for a battery or connected to some power outlet. If its 'Off' it can indicate the some TheftIndicator of Sabotage Indicator" ;
    sh:minCount 1 ;
    sh:path lftdo:hasPowerStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "isDeviceOnline" ;
    sh:description "Device has isDeviceOnline indicator" ;
    sh:path lftdo:isDeviceOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasDeviceBatteryLife" ;
    sh:description "Device has some BatteryLife" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceBatteryLife ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "hasDeviceCapacity" ;
    sh:description "Device has some Capacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasComponent" ;
    sh:description "Device has some Sensor Components" ;
    sh:path lftdo:hasComponent ;
    sh:class lftdo:Sensor ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 21
  ] , [
    sh:name "hasDeviceProtocol" ;
    sh:description "Device has some DeviceProtocol" ;
    sh:path lftdo:hasDeviceProtocol ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "isSuitableForRuralAreas" ;
    sh:description "Checks if the device is Suitable to use for rural areas?" ;
    sh:path lftdo:isSuitableForRuralAreas ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasDeviceType" ;
    sh:description "Device has some DeviceType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasModulationType" ;
    sh:description "The device of type communication gateway has some modulation type e.g. Amplitude etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] ;
  sh:targetClass lftdo:UserDevice .

lftdo:TheftIndicator a sh:NodeShape ;
  rdfs:comment "Factors suggesting a potential of theft, linking them to relevant behavior states, environment, and health conditions." ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isIndicatorOf" ;
    sh:path lftdo:isIndicatorOf ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "indicatedBy" ;
    sh:description "TheftIndicator is indicated by some Abnorma behaviour state" ;
    sh:path lftdo:indicatedBy ;
    sh:or (
      [
        sh:class lftdo:AbnormalState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 4
  ] , [
    sh:name "initiatesAlert" ;
    sh:description "TheftIndicator initiates TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:initiatesAlert ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "triggersAlertLevel" ;
    sh:description "TheftIndicator has a triggersAlertLevel" ;
    sh:path lftdo:triggersAlertLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isExtractedFrom" ;
    sh:description "LivestockIndicator isExtractedFom some SensorData" ;
    sh:path lftdo:isExtractedFrom ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "characterises" ;
    sh:description "Livestock Indicator characterises some BehaviourState" ;
    sh:path lftdo:characterises ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "evidenceFor" ;
    sh:description "LivestockIndicator provides evidenceFor some LivestockEvent" ;
    sh:path lftdo:evidenceFor ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:TheftIndicator .

lftdo:AmbientTemperature a sh:NodeShape ;
  rdfs:comment """Ambient Temperature: Refers to the temperature of the surroundings, often measured in degrees Celsius or Fahrenheit. It is the temperature experienced by a person in their environment, not the temperature of the person themselves.

These refers to the warmth or coldness of the air, which influences areas such as livestock farming and human health.""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:AmbientTemperature .

lftdo:Panting a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
Panting = Panting(ATOL:00832)
\"any measurable or observable characteristic related to the ability of increasing breathing by polypnea or hyperpnea performed with open mouth and distinct thoracic movements, to increase O2-CO2 exchanges and/or to increase evaporative heat loss.\" (Meunier-Salaün et. al,2015)""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Panting .

lftdo:Sensor a sh:NodeShape ;
  rdfs:comment "1.Sensor is a Device that detect the changes on livestock and the environment" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasModulationFrequencyRange" ;
    sh:description "The device of type communication gateway has some modulation frequency range measured in hertz e.g. 10Khz etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationFrequencyRange ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasDeviceDescription" ;
    sh:description "Device has some Description" ;
    sh:path lftdo:hasDeviceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasDeviceID" ;
    sh:description "Device has a DeviceID" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceID ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSensorOf" ;
    sh:path lftdo:isSensorOf ;
    sh:class lftdo:Device ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasDeviceName" ;
    sh:description "Device has some DeviceName" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "transmitSensorDataTo" ;
    sh:description "Device(EndDevice) transmit some SensorDataTo a DataTransmission" ;
    sh:path lftdo:transmitSensorDataTo ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasManufacturerDate" ;
    sh:description "The device has the manufacture date." ;
    sh:path lftdo:hasManufacturerDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDeviceSensorType" ;
    sh:description "Device has some SensorType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "hasDeviceSerialNumber" ;
    sh:description "Device has some DeviceSerialNumber" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSerialNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "hasSensorType" ;
    sh:description "Sensor hasSensorType" ;
    sh:path lftdo:hasSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 13
  ] , [
    sh:name "hasDevicePrice" ;
    sh:description "Device has some DevicePrice" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDevicePrice ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "hasManufacturerName" ;
    sh:description "The device has some manufacturer" ;
    sh:minCount 1 ;
    sh:path lftdo:hasManufacturerName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] , [
    sh:name "generatesData" ;
    sh:description "Device generates some Data" ;
    sh:path lftdo:generatesData ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "hasPowerStatus" ;
    sh:description "A Device has power status 'On' or 'Off' for a battery or connected to some power outlet. If its 'Off' it can indicate the some TheftIndicator of Sabotage Indicator" ;
    sh:minCount 1 ;
    sh:path lftdo:hasPowerStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "isDeviceOnline" ;
    sh:description "Device has isDeviceOnline indicator" ;
    sh:path lftdo:isDeviceOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasDeviceBatteryLife" ;
    sh:description "Device has some BatteryLife" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceBatteryLife ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "hasDeviceCapacity" ;
    sh:description "Device has some Capacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasComponent" ;
    sh:description "Device has some Sensor Components" ;
    sh:path lftdo:hasComponent ;
    sh:class lftdo:Sensor ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 23
  ] , [
    sh:name "isSensorCalibrated" ;
    sh:description "Sensor is isSensorCalibrated" ;
    sh:path lftdo:isSensorCalibrated ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasDeviceProtocol" ;
    sh:description "Device has some DeviceProtocol" ;
    sh:path lftdo:hasDeviceProtocol ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "isSuitableForRuralAreas" ;
    sh:description "Checks if the device is Suitable to use for rural areas?" ;
    sh:path lftdo:isSuitableForRuralAreas ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasDeviceType" ;
    sh:description "Device has some DeviceType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "hasModulationType" ;
    sh:description "The device of type communication gateway has some modulation type e.g. Amplitude etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] ;
  sh:targetClass lftdo:Sensor .

lftdo:UnauthorisedPerson a sh:NodeShape ;
  rdfs:comment "UnauthorisedPerson: Represents individuals not permitted to access specific farm areas (also referred to as \"Unknown Person(s)\"). This class is essential for modeling security breaches and theft intent." ;
  sh:closed false ;
  sh:property [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] ;
  sh:targetClass lftdo:UnauthorisedPerson .

lftdo:TheftOfLivestockProducts a sh:NodeShape ;
  rdfs:comment "The theft of livestock-derived products (e.g., milk, wool, meat)." ;
  sh:closed false ;
  sh:property [
    sh:name "causedBy" ;
    sh:description "TheftEvent is caused by some UnauthorisedPerson an agentive cause (the intruder)" ;
    sh:minCount 1 ;
    sh:path lftdo:causedBy ;
    sh:class lftdo:UnauthorisedPerson ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:minCount 1 ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasTheftEventTime" ;
    sh:description "TheftEvent  has some Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasTheftEventReport" ;
    sh:path lftdo:hasTheftEventReport ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasAbnormalBehaviourState" ;
    sh:description "Livestock has Behaviour(s) has some AbnormalBehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAbnormalBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "InferredComplexTheftEvent" ;
    sh:path lftdo:InferredComplexTheftEvent ;
    sh:order 8
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:minCount 1 ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 9
  ] , [
    sh:name "hasTheftEventLocation" ;
    sh:description "TheftEvent happens at some Location" ;
    sh:path lftdo:hasTheftEventLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "hasTheftEventResolution" ;
    sh:description "TheftEvent has some TheftEventResolution" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventResolution ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasTheftEventStatus" ;
    sh:description "TheftEvent has some status." ;
    sh:minCount 1 ;
    sh:path lftdo:hasTheftEventStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] ;
  sh:targetClass lftdo:TheftOfLivestockProducts .

lftdo:Behaviour a sh:NodeShape ;
  rdfs:comment """Livestock behavior includes a broader range of activities exhibited by an animal over a period. It includes actions, reactions, and responses to various stimuli and situations. 

Sub-classess
1.Sleeping
2.Breeding
3.Grazing
4.Feeding
5.Sitting
6.AbnormalBehaviour
7.Agreession
8.NormalBehaviour
9.Running""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Behaviour .

lftdo:Breeding a sh:NodeShape ;
  rdfs:comment "1.Breeding is a behaviour" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Breeding .

lftdo:Feeding a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1.Feeding is a behaviour  =  feeding behavior(ATOL:0000363) \"any measurable or observable characteristic related to the consumption of solid ressources for nutritionnal needs.\"(Meunier-Salaün et. al,2015).

In ATOL under: animal trait of livestock->animal welfare trait->psychoneuroendocrinological state trait->behaviour trait->ingestive behavior->feeding behavior""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Feeding .

lftdo:NormalState a sh:NodeShape ;
  rdfs:comment """Behaviour state that are a social norm, that is statistically frequent and prevents livestock from functioning.
Sub-classes:
1.CatleRunningState
2.GoatGrazingState""" ;
  sh:closed false ;
  sh:property [
    sh:name "transitionsTo" ;
    sh:description "NormalState get transitioned to AbnormalState" ;
    sh:path lftdo:transitionsTo ;
    sh:class lftdo:AbnormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasBaseLineHeadingDirectionUoM" ;
    sh:description "baseLineHeadingDirectionUoM" ;
    sh:path lftdo:hasBaseLineHeadingDirectionUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDurationBaseline" ;
    sh:description "hasDurationBaseline define the NormalState" ;
    sh:path lftdo:hasDurationBaseline ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasBehaviourStateDeviation" ;
    sh:description "Normal BehaviourState has some DeviationThresholdIn%" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDeviation ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasBaseLineSignalStrength" ;
    sh:description "Signal Strength inidcaites the normal baseline for received signal strength indicator(RSSI) for e.g. a very weak RSSI, indicates the collar is nearing the edge of the network range." ;
    sh:path lftdo:hasBaseLineSignalStrength ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasBaseLineSignalStrengthUoM" ;
    sh:description "Measured in dBm (decibels-milliwatts)" ;
    sh:path lftdo:hasBaseLineSignalStrengthUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "hasBehaviourBaselineValues" ;
    sh:description "NormalState has some BaselineValue" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateBaselineValues ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 19
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasBaseLineHeadingDirection" ;
    sh:description "Baseline Heading direction to check if Livestock is moving away from define GeoLocation for to justify if its almost due East (90°), moving directly away from the farm center." ;
    sh:path lftdo:hasBaseLineHeadingDirection ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] ;
  sh:targetClass lftdo:NormalState .

lftdo:LivestockEvent a sh:NodeShape ;
  rdfs:comment "LivestockEvent  is the \"Outcome\" or \"Alert\" of the Livestock Indicators." ;
  sh:closed false ;
  sh:property [
    sh:name "isSupportedBy" ;
    sh:description "LivestockEvent is supportedby some LivestockIndicator" ;
    sh:path lftdo:isSupportedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 2
  ] , [
    sh:name "affects" ;
    sh:description "LivestockEvent affects some Location Livestock or Location or Device" ;
    sh:path lftdo:affectsLivestock ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Location ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "isAlertInitiatedBy" ;
    sh:description "HighTheftEvent is isInitiated by some TheftIndicator a logical cause (the data anomaly)" ;
    sh:path lftdo:isAlertInitiatedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "atIncidentLocation" ;
    sh:description "LivestockEvent happens at  some Location" ;
    sh:path lftdo:atIncidentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isRecordedIn" ;
    sh:path lftdo:isRecordedIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] ;
  sh:targetClass lftdo:LivestockEvent .

lftdo:CattleWithHighAbnormalBodyTempareture a sh:NodeShape ;
  rdfs:comment """Check the transition from normal to abnormal livestock Health condition when, for instance, a Cow's Body temperature
deviates from an normal body temperature of a healthy adult cow, which ranges from 38°C to 39.3°C, with an average of approximately 38.6°C.The the exceeded deviation from the norm could indicate synificant anomly and resulting in a potential theft or health alert issued to the farmer. 

e.g. Cattle with an Abnormal Body Temperatute has a hasBodyTemperature outside the normal range [>=38,>39.3]""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 29
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 32
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 34
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 35
  ] ;
  sh:targetClass lftdo:CattleWithHighAbnormalBodyTempareture .

lftdo:GoatGrazingState a sh:NodeShape ;
  rdfs:comment "GoatGrazingState is normalState" ;
  sh:closed false ;
  sh:property [
    sh:name "transitionsTo" ;
    sh:description "NormalState get transitioned to AbnormalState" ;
    sh:path lftdo:transitionsTo ;
    sh:class lftdo:AbnormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasBaseLineHeadingDirectionUoM" ;
    sh:description "baseLineHeadingDirectionUoM" ;
    sh:path lftdo:hasBaseLineHeadingDirectionUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDurationBaseline" ;
    sh:description "hasDurationBaseline define the NormalState" ;
    sh:path lftdo:hasDurationBaseline ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasBehaviourStateDeviation" ;
    sh:description "Normal BehaviourState has some DeviationThresholdIn%" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDeviation ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasBaseLineSignalStrength" ;
    sh:description "Signal Strength inidcaites the normal baseline for received signal strength indicator(RSSI) for e.g. a very weak RSSI, indicates the collar is nearing the edge of the network range." ;
    sh:path lftdo:hasBaseLineSignalStrength ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasBaseLineSignalStrengthUoM" ;
    sh:description "Measured in dBm (decibels-milliwatts)" ;
    sh:path lftdo:hasBaseLineSignalStrengthUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "hasBehaviourBaselineValues" ;
    sh:description "NormalState has some BaselineValue" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateBaselineValues ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 19
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasBaseLineHeadingDirection" ;
    sh:description "Baseline Heading direction to check if Livestock is moving away from define GeoLocation for to justify if its almost due East (90°), moving directly away from the farm center." ;
    sh:path lftdo:hasBaseLineHeadingDirection ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] ;
  sh:targetClass lftdo:GoatGrazingState .

lftdo:LivestockIndicator a sh:NodeShape ;
  rdfs:comment "LivestockIndicators satisfy the necessary and sufficient conditions to infer a different high-level LivestockEvent (e.g., TheftEvent), providing a clear audit trail from raw data to actionable alert." ;
  sh:closed false ;
  sh:property [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isIndicatorOf" ;
    sh:path lftdo:isIndicatorOf ;
    sh:or (
      [
        sh:class lftdo:Device ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:Livestock ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 3
  ] , [
    sh:name "initiatesAlert" ;
    sh:description "TheftIndicator initiates TheftEvent" ;
    sh:path lftdo:initiatesAlert ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "triggersAlertLevel" ;
    sh:description "TheftIndicator has a triggersAlertLevel" ;
    sh:path lftdo:triggersAlertLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "isExtractedFrom" ;
    sh:description "LivestockIndicator isExtractedFom some SensorData" ;
    sh:path lftdo:isExtractedFrom ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "characterises" ;
    sh:description "Livestock Indicator characterises some BehaviourState" ;
    sh:path lftdo:characterises ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:EnvironmentalCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:HealthCondition ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 7
  ] , [
    sh:name "evidenceFor" ;
    sh:description "LivestockIndicator provides evidenceFor some LivestockEvent" ;
    sh:path lftdo:evidenceFor ;
    sh:class lftdo:LivestockEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:LivestockIndicator .

lftdo:GPSMonitoringSystem a sh:NodeShape ;
  rdfs:comment "GPSTrackingSystem is a theft DetectionMethod" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDetectionMethodType" ;
    sh:description "DetectionMethod has a Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasFalsePositiveRate" ;
    sh:description "DetectionMethod has some FalsePositiveRate" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFalsePositiveRate ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:minCount 1 ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasMethodAttribute" ;
    sh:description "DetectionMethod has some Attributes" ;
    sh:minCount 1 ;
    sh:path lftdo:hasMethodAttribute ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasSensitivityLevel" ;
    sh:description "SensitivityLevel like \"High\", \"Medium\", \"Low\"" ;
    sh:path lftdo:hasSensitivityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "identifies" ;
    sh:description "DetectionMethod identifies some BehaviourState" ;
    sh:path lftdo:identifies ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isDetectionActive" ;
    sh:path lftdo:isDetectionActive ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDetectionThreshold" ;
    sh:description "Confidence level required to trigger" ;
    sh:path lftdo:hasDetectionThreshold ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "produces" ;
    sh:description "DetectionMethod produces some System Event" ;
    sh:path lftdo:produces ;
    sh:class lftdo:SystemEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isImplementedBy" ;
    sh:description """DetectionMethod isImplementedBy SoftwareApplication.

Usually, a specific logical Method (the \"Theft Logic\") is implemented by one specific Software Application. While there could be two apps doing the same thing, it’s rarely efficient in IoT.""" ;
    sh:path lftdo:isImplementedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasDetectionLatencyMs" ;
    sh:description "How many milliseconds it takes to process the data. This proves \"Real-time\" capability for theft." ;
    sh:path lftdo:hasDetectionLatencyMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasReliabilityScore" ;
    sh:description "A weight given to the method based on historical performance." ;
    sh:path lftdo:hasReliabilityScore ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasDetectionPriority" ;
    sh:description "A \"Theft\" detection should have a higher priority than a \"Low Battery\" warning." ;
    sh:path lftdo:hasDetectionPriority ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "analyses" ;
    sh:description "DetectionMethod analyses Database data" ;
    sh:minCount 1 ;
    sh:path lftdo:analyses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasTrainingData" ;
    sh:description "DetectionMethod has some TrainingData?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTrainingData ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLastScanTime" ;
    sh:path lftdo:hasLastScanTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "detects" ;
    sh:description "DetectictionMethod detects LivestockIndicators" ;
    sh:path lftdo:detects ;
    sh:or (
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:GPSMonitoringSystem .

lftdo:CloudService a sh:NodeShape ;
  rdfs:comment "Cloud Computing Service enables the on-demand and convenient delivery of shared configurable computing resources and services over a network (Kuo, 2011, Paul and Ghose, 2012). CC plays a key role in enabling the ability of IoT devices to send, store, analyze data, and receive analyzed data remotely. CC service includes machine learning algorithms to analyze livestock behavior to detect and indicate livestock theft." ;
  sh:closed false ;
  sh:property [
    sh:name "hasCloudServiceType" ;
    sh:description "CloudService has some Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCloudServiceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:description "isCloudEncrypted" ;
    sh:path lftdo:isCloudEncrypted ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasCloudServiceCost" ;
    sh:description "CloudService has some Cost" ;
    sh:path lftdo:hasCloudServiceCost ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hostsDatabase" ;
    sh:description "Cloud Service hosts some Database" ;
    sh:minCount 1 ;
    sh:path lftdo:hostsDatabase ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "cloudServiceName" ;
    sh:description "CloudService has a Name" ;
    sh:minCount 1 ;
    sh:path lftdo:cloudServiceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasCloudSecurityFeatures" ;
    sh:description "CloudService has some Features" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCloudSecurityFeatures ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "executesApplication" ;
    sh:description "CloudService executes some Software Application" ;
    sh:minCount 1 ;
    sh:path lftdo:executesApplication ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasUptimeGuarantee" ;
    sh:path lftdo:hasUptimeGuarantee ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "receivesDataFrom" ;
    sh:description "CloudService receive data from some Data Transmission" ;
    sh:path lftdo:receivesDataFrom ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasStorageCapacity" ;
    sh:description "To define the limits of the RoutineLogEvent storage." ;
    sh:path lftdo:hasStorageCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasCloudServiceDescription" ;
    sh:description "CloudService has some description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCloudServiceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isCloudServiceScalable" ;
    sh:description """is CloudService Scalable?
True/False: The system can handle horizontal or vertical growth.""" ;
    sh:path lftdo:isCloudServiceScalable ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "hasCloudServiceProvider" ;
    sh:description """CloudService has some Provider
To identify if you are using AWS, Azure, or a local TUT server.""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCloudServiceProvider ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] ;
  sh:targetClass lftdo:CloudService .

lftdo:Running a sh:NodeShape ;
  rdfs:comment """Referenced Ontology:
1.Running is a behaviour = running behavior(ATOL:0000806), \"any measurable or observable characteristic related to rapidely coordinated displacement of the body on foot or limbs\"  (Meunier-Salaün et. al,2015)
2.Running can have normal or abnomal behaviour state based on the livestock speed and running duration.

AOL Under: Animal trait of livestock->animal welfar trait->psychoneuroendocrinological state trait->motor activity->locomotor activity->running behaviour""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Running .

lftdo:ExtremeDayTimeHeat a sh:NodeShape ;
  rdfs:comment "Extereme Day Time Heat Temperature that is above than 35 degree celcius during 'DayTime'." ;
  sh:closed false ;
  sh:property [
    sh:name "hasTemporalContext" ;
    sh:description "Relating to time: \"the spatial and temporal dimensions of human interference in complex ecosystems\", this is demoted with \"DayTime\" or \"NightTime\"" ;
    sh:path lftdo:hasTemporalContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 11
  ] ;
  sh:targetClass lftdo:ExtremeDayTimeHeat .

lftdo:StatusUpdateEvent a sh:NodeShape ;
  rdfs:comment "Classified the state change event." ;
  sh:closed false ;
  sh:property [
    sh:name "statusUpdateInitiatedBy" ;
    sh:description "StatusUpdateEvent is initiated by some SoftwareApplication" ;
    sh:path lftdo:statusInitiatedBy ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 1
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasUpdateFrequency" ;
    sh:description """hasUpdateFrequency

hasUpdateFrequency ∈ {
  \"real-time\",
  \"near-real-time\",
  \"secondly\",
  \"sub-minute\",
  \"minutely\",
  \"five-minute\",
  \"quarter-hourly\",
  \"half-hourly\",
  \"hourly\",
  \"daily\",
  \"on-demand\",
  \"event-driven\",
  \"irregular\"
}""" ;
    sh:path lftdo:hasUpdateFrequency ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "isValidatedBy" ;
    sh:description "LivestockEvent isValidatedBy Farmer." ;
    sh:path lftdo:isValidatedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "isCurrentStatusOf" ;
    sh:path lftdo:isCurrentStatusOf ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "updatesUI" ;
    sh:description "StatusUpdateEvent updates some SoftwareApplication's UserInterface" ;
    sh:path lftdo:updatesUI ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "hasStatus" ;
    sh:description """Active (Default)
Processing
Pending
Ignored
Accepted
Rejected""" ;
    sh:path lftdo:hasStatus ;
    sh:order 7
  ] , [
    sh:name "isStoredIn" ;
    sh:description "This ensures the reasoner knows that log events are meant for storage, keeping the communication channel (the SoftwareApplication) clear of \"noise\"." ;
    sh:path lftdo:isStoredIn ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:StatusUpdateEvent .

lftdo:BehaviorMonitoringSystem a sh:NodeShape ;
  rdfs:comment "BehaviourMonitoringSystem is a theft DetectionMethod" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDetectionMethodType" ;
    sh:description "DetectionMethod has a Type" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasFalsePositiveRate" ;
    sh:description "DetectionMethod has some FalsePositiveRate" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFalsePositiveRate ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:minCount 1 ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasMethodAttribute" ;
    sh:description "DetectionMethod has some Attributes" ;
    sh:minCount 1 ;
    sh:path lftdo:hasMethodAttribute ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasSensitivityLevel" ;
    sh:description "SensitivityLevel like \"High\", \"Medium\", \"Low\"" ;
    sh:path lftdo:hasSensitivityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "identifies" ;
    sh:description "DetectionMethod identifies some BehaviourState" ;
    sh:path lftdo:identifies ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "isDetectionActive" ;
    sh:path lftdo:isDetectionActive ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDetectionThreshold" ;
    sh:description "Confidence level required to trigger" ;
    sh:path lftdo:hasDetectionThreshold ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 8
  ] , [
    sh:name "produces" ;
    sh:description "DetectionMethod produces some System Event" ;
    sh:path lftdo:produces ;
    sh:class lftdo:SystemEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isImplementedBy" ;
    sh:description """DetectionMethod isImplementedBy SoftwareApplication.

Usually, a specific logical Method (the \"Theft Logic\") is implemented by one specific Software Application. While there could be two apps doing the same thing, it’s rarely efficient in IoT.""" ;
    sh:path lftdo:isImplementedBy ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasDetectionLatencyMs" ;
    sh:description "How many milliseconds it takes to process the data. This proves \"Real-time\" capability for theft." ;
    sh:path lftdo:hasDetectionLatencyMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasReliabilityScore" ;
    sh:description "A weight given to the method based on historical performance." ;
    sh:path lftdo:hasReliabilityScore ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasDetectionPriority" ;
    sh:description "A \"Theft\" detection should have a higher priority than a \"Low Battery\" warning." ;
    sh:path lftdo:hasDetectionPriority ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "analyses" ;
    sh:description "DetectionMethod analyses Database data" ;
    sh:minCount 1 ;
    sh:path lftdo:analyses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasTrainingData" ;
    sh:description "DetectionMethod has some TrainingData?" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTrainingData ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLastScanTime" ;
    sh:path lftdo:hasLastScanTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "detects" ;
    sh:description "DetectictionMethod detects LivestockIndicators" ;
    sh:path lftdo:detects ;
    sh:or (
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:BehaviorMonitoringSystem .

lftdo:AbnormalBodyTemperature a sh:NodeShape ;
  rdfs:comment "The Abnormal body temperature is the opposite of any normal defined body temperature for Livestock." ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:minCount 1 ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:AbnormalBodyTemperature .

lftdo:Algorithm a sh:NodeShape ;
  rdfs:comment """1.Machine Learning(ML) algorithm is part of the cloud computing service for some behaviour analysis
2.ML Algorithm(MLA) uses data in the Database to detect theft""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDescription" ;
    sh:description "Software App, Algorithm, Cloud Service has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "useDatabaseData" ;
    sh:description "Machine Learning Algorithms uses some SensorData stored in the Database to analyse and make predictions." ;
    sh:path lftdo:useDatabaseData ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasName" ;
    sh:description "Any instance like Software, Database, Algorithm and has some name" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAlgorithmName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasOutputFormat" ;
    sh:description "MLAlgorithm has some output format." ;
    sh:minCount 1 ;
    sh:path lftdo:hasOutputFormat ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "isUsedBy" ;
    sh:description "Algorithm is used by some DetectionMethod" ;
    sh:path lftdo:isUsedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "isOptimized" ;
    sh:path lftdo:isOptimized ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasInputFeatures" ;
    sh:description """Algorithm has some InputFeatures
\"GPS_Coord, Velocity, Time_of_Day\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasInputFeatures ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasResourceRequirements" ;
    sh:description "MLA has some resource requirements." ;
    sh:minCount 1 ;
    sh:path lftdo:hasResourceRequirements ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasExecutionTimeMs" ;
    sh:path lftdo:hasExecutionTimeMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasAlgorithmType" ;
    sh:description "hasAlgorithmType like e.g., Machine Learning or Threshold-based or Moving Average)." ;
    sh:path lftdo:hasAlgorithmType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasPurpose" ;
    sh:description "MLAgorithm has some purpose." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPurpose ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "hasVersion" ;
    sh:description "Algorithm has version" ;
    sh:minCount 1 ;
    sh:path lftdo:hasVersion ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 11
  ] , [
    sh:name "hasComplexity" ;
    sh:description "hasComplexity such as HIGH. LOW, MEDIUM" ;
    sh:path lftdo:hasComplexity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "hasAccuracyRate" ;
    sh:description "DetectionMethod has some Accuracy" ;
    sh:path lftdo:hasDetectionMethodAccuracy ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] ;
  sh:targetClass lftdo:Algorithm .

lftdo:Grazing a sh:NodeShape ;
  rdfs:comment "1.Grazing  is a behaviour of Livestock looking for food" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasGoatGrazingSpeedInMS" ;
    sh:description """Speed meanured in meters per seconds(m/s)
hasSpeedInMetersPerSecond shorten to (hasSpeedInMS)""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGoatGrazingSpeedInMS ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:Grazing .

lftdo:EndDevice a sh:NodeShape ;
  rdfs:comment """1.End device is device attached to a livestock fitted with sensors 
2.Some end device has some sensor""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGeoPosition" ;
    sh:description "Location has some Georgraphical position" ;
    sh:path lftdo:hasGeoPosition ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasModulationFrequencyRange" ;
    sh:description "The device of type communication gateway has some modulation frequency range measured in hertz e.g. 10Khz etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationFrequencyRange ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasDeviceDescription" ;
    sh:description "Device has some Description" ;
    sh:path lftdo:hasDeviceDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "hasDeviceID" ;
    sh:description "Device has a DeviceID" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceID ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 5
  ] , [
    sh:name "hasDeviceName" ;
    sh:description "Device has some DeviceName" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "transmitSensorDataTo" ;
    sh:description "Device(EndDevice) transmit some SensorDataTo a DataTransmission" ;
    sh:path lftdo:transmitSensorDataTo ;
    sh:class lftdo:DataTransmission ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasManufacturerDate" ;
    sh:description "The device has the manufacture date." ;
    sh:path lftdo:hasManufacturerDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasDeviceSensorType" ;
    sh:description "Device has some SensorType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSensorType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasDeviceSerialNumber" ;
    sh:description "Device has some DeviceSerialNumber" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceSerialNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isAttachedToLivestock" ;
    sh:description "Device(EndDevice) is attached to some Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 12
  ] , [
    sh:name "hasDevicePrice" ;
    sh:description "Device has some DevicePrice" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDevicePrice ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 13
  ] , [
    sh:name "hasManufacturerName" ;
    sh:description "The device has some manufacturer" ;
    sh:minCount 1 ;
    sh:path lftdo:hasManufacturerName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "generatesData" ;
    sh:description "Device generates some Data" ;
    sh:minCount 1 ;
    sh:path lftdo:generatesData ;
    sh:class lftdo:SensorData ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "hasPowerStatus" ;
    sh:description "A Device has power status 'On' or 'Off' for a battery or connected to some power outlet. If its 'Off' it can indicate the some TheftIndicator of Sabotage Indicator" ;
    sh:minCount 1 ;
    sh:path lftdo:hasPowerStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 16
  ] , [
    sh:name "hasLatitude" ;
    sh:description "Geo location has some Latitude" ;
    sh:path lftdo:hasLatitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "isDeviceOnline" ;
    sh:description "Device has isDeviceOnline indicator" ;
    sh:path lftdo:isDeviceOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasLongitude" ;
    sh:description "Geo location has some Longitude" ;
    sh:path lftdo:hasLongitude ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "hasDeviceBatteryLife" ;
    sh:description "Device has some BatteryLife" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceBatteryLife ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasDeviceCapacity" ;
    sh:description "Device has some Capacity" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceCapacity ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "hasComponent" ;
    sh:description "Device has some Sensor Components" ;
    sh:path lftdo:hasComponent ;
    sh:class lftdo:Sensor ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 22
  ] , [
    sh:name "hasDeviceProtocol" ;
    sh:description "Device has some DeviceProtocol" ;
    sh:path lftdo:hasDeviceProtocol ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "isSuitableForRuralAreas" ;
    sh:description "Checks if the device is Suitable to use for rural areas?" ;
    sh:path lftdo:isSuitableForRuralAreas ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasDeviceType" ;
    sh:description "Device has some DeviceType" ;
    sh:minCount 1 ;
    sh:path lftdo:hasDeviceType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasModulationType" ;
    sh:description "The device of type communication gateway has some modulation type e.g. Amplitude etc." ;
    sh:minCount 1 ;
    sh:path lftdo:hasModulationType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] ;
  sh:targetClass lftdo:EndDevice .

lftdo:CattleRestingState a sh:NodeShape ;
  rdfs:comment "CattleRestingState is a NormalState" ;
  sh:closed false ;
  sh:property [
    sh:name "transitionsTo" ;
    sh:description "NormalState get transitioned to AbnormalState" ;
    sh:path lftdo:transitionsTo ;
    sh:class lftdo:AbnormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasBaseLineHeadingDirectionUoM" ;
    sh:description "baseLineHeadingDirectionUoM" ;
    sh:path lftdo:hasBaseLineHeadingDirectionUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasDurationBaseline" ;
    sh:description "hasDurationBaseline define the NormalState" ;
    sh:path lftdo:hasDurationBaseline ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasBehaviourStateDeviation" ;
    sh:description "Normal BehaviourState has some DeviationThresholdIn%" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDeviation ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasBaseLineSignalStrength" ;
    sh:description "Signal Strength inidcaites the normal baseline for received signal strength indicator(RSSI) for e.g. a very weak RSSI, indicates the collar is nearing the edge of the network range." ;
    sh:path lftdo:hasBaseLineSignalStrength ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasBaseLineSignalStrengthUoM" ;
    sh:description "Measured in dBm (decibels-milliwatts)" ;
    sh:path lftdo:hasBaseLineSignalStrengthUoM ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "hasBehaviourBaselineValues" ;
    sh:description "NormalState has some BaselineValue" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateBaselineValues ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 18
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 19
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 20
  ] , [
    sh:name "hasBaseLineHeadingDirection" ;
    sh:description "Baseline Heading direction to check if Livestock is moving away from define GeoLocation for to justify if its almost due East (90°), moving directly away from the farm center." ;
    sh:path lftdo:hasBaseLineHeadingDirection ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] ;
  sh:targetClass lftdo:CattleRestingState .

lftdo:GoatRunningState a sh:NodeShape ;
  sh:closed false ;
  sh:targetClass lftdo:GoatRunningState .

lftdo:SystemEvent a sh:NodeShape ;
  rdfs:comment "SystemEvent (Events related to the software's operations)" ;
  sh:closed false ;
  sh:property [
    sh:name "isTriggeredBy" ;
    sh:description """Event(s) such as SystemEvent or LivestockEvent or LivestockIndicator are triggered by BehaviourState. 

A LivestockEvent is usually triggered by exactly one method. However, a SystemEvent (like a \"System Overload\") might be triggered by many detection methods running at once. An event could also have zero detection methods if it was triggered manually by a human (Farmer).""" ;
    sh:path lftdo:isTriggeredBy ;
    sh:or (
      [
        sh:class lftdo:BehaviourState ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:DetectionMethod ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:LivestockIndicator ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 0
  ] , [
    sh:name "isDetectedBy" ;
    sh:description "System or Livestock Event is detected by some DetectionMethod" ;
    sh:path lftdo:isDetectedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] ;
  sh:targetClass lftdo:SystemEvent .

lftdo:Sick a sh:NodeShape ;
  rdfs:comment "Sick is health condition" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSymptoms" ;
    sh:description "HealthCondition has some Symptoms" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSymptoms ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isExperiencedBy" ;
    sh:description "HealthCondition isExperiencedBy Livestock" ;
    sh:path lftdo:isExperiencedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "healthConditionBelongsTo" ;
    sh:description "HealthConditionBelongsTo to a specific Livestock type such Cattle, Sheep or Goat." ;
    sh:path lftdo:healthConditionBelongsTo ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:path lftdo:hasHealthStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "biologicallyAffects" ;
    sh:description "HealthCondition biologicallyAffects some Livestock" ;
    sh:path lftdo:biologicallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "lastVetCheck" ;
    sh:path lftdo:lastVetCheck ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "hasHealthDescription" ;
    sh:description "Health has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasHealthDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "healthInfluencesBehaviourState" ;
    sh:description "healthCondition Influences some Livestock BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:healthInfluencesBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] ;
  sh:targetClass lftdo:Sick .

lftdo:Goat a sh:NodeShape ;
  rdfs:comment "Goat is a livestock" ;
  sh:closed false ;
  sh:property [
    sh:name "hasGroupSize" ;
    sh:description "Livestock has some GroupSize" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGroupSize ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasCattleBodyConditionScore" ;
    sh:description "Livestock(Cattle) has some CattleBodyConditionScore" ;
    sh:path lftdo:hasCattleBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "hasSittingDuration" ;
    sh:description "Livestock has some sitting duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSittingDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "isLocatedAtFarm" ;
    sh:description "Livestock is located at a Farm" ;
    sh:minCount 1 ;
    sh:path lftdo:isLocatedAtFarm ;
    sh:class lftdo:Farm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasLastSeenTimestamp" ;
    sh:path lftdo:hasLastSeenTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "isOutsideGeofence" ;
    sh:description "Livestock isOutsideGeofence, True or False." ;
    sh:minCount 1 ;
    sh:path lftdo:isOutsideGeofence ;
    sh:order 5
  ] , [
    sh:name "hasMobilityScore" ;
    sh:path lftdo:hasMobilityScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isNearBoundary" ;
    sh:description "Represent a spatial relationship between an entity (like a Livestock) and a specific Boundary instance." ;
    sh:path lftdo:isNearBoundary ;
    sh:class lftdo:Boundary ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasSpecies" ;
    sh:description """Livestock has belong to a specific type of species
\"Livestock species are defined as domesticated farm animals, such as buffalo, chicken, sheep, goats, pigs, cattle, duck, camel, horse, mole, and turkey, primarily raised for labor, meat, eggs, milk, fur, leather, and wool. They play a crucial role in agriculture and contribute significantly to the livelihoods of farm families.\" https://www.sciencedirect.com/topics/agricultural-and-biological-sciences/livestock-species""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpecies ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBodyTemperature" ;
    sh:description "Livestock has some Body Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBodyTemperature ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "isExternallyAffectedBy" ;
    sh:description "Livestock isExternallyAffectedBy EnvironmentalCondition" ;
    sh:path lftdo:isExternallyAffectedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 10
  ] , [
    sh:name "isOwnedByFarmer" ;
    sh:description "Livestock is Owned by some Farmer." ;
    sh:minCount 1 ;
    sh:path lftdo:isOwnedByFarmer ;
    sh:class lftdo:Farmer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSleepingDuration" ;
    sh:description "Livestock has some Sleeping Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSleepingDuration ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "isManagedBy" ;
    sh:description "Livestock is managed by some ExtendedOfficer" ;
    sh:path lftdo:isManagedBy ;
    sh:class lftdo:ExtendedOfficer ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "isBiologicallyAffectedBy" ;
    sh:description "Livestock isBiologicallyAffectedBy HealthCondition" ;
    sh:path lftdo:isBiologicallyAffectedBy ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 15
  ] , [
    sh:name "healthConfirmedBy" ;
    sh:description "Participant(Veterinarian) confirm Livestock Health Condition" ;
    sh:minCount 1 ;
    sh:path lftdo:healthConfirmedBy ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 16
  ] , [
    sh:name "isPregnant" ;
    sh:description "is a Livestock Pregnant?" ;
    sh:minCount 1 ;
    sh:path lftdo:isPregnant ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasRunningSpeed" ;
    sh:description "Livestock has some average running speed in (meters per seconds or kilometers per seconds)." ;
    sh:path lftdo:hasRunningSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] , [
    sh:name "hasGender" ;
    sh:description "Livestock has some Gender" ;
    sh:minCount 1 ;
    sh:path lftdo:hasGender ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 19
  ] , [
    sh:name "isAttachedToDevice" ;
    sh:description "Livestock is attached to some Device(EndDevice)" ;
    sh:minCount 1 ;
    sh:path lftdo:isAttachedToDevice ;
    sh:class lftdo:EndDevice ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 20
  ] , [
    sh:name "hasGoatBodyConditionScore" ;
    sh:description "Goat has some GoatBodyConditionScore" ;
    sh:path lftdo:hasGoatBodyConditionScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 21
  ] , [
    sh:name "hasAge" ;
    sh:description "Livestock has some Age" ;
    sh:minCount 1 ;
    sh:path lftdo:hasAge ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 22
  ] , [
    sh:name "isSuspectedOfTheft" ;
    sh:description "is the Livestock suspected of Theft?" ;
    sh:minCount 1 ;
    sh:path lftdo:isSuspectedOfTheft ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 23
  ] , [
    sh:name "hasWeightInKg" ;
    sh:description "Livestock has some Weight in Kilograms(Kg)" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeightInKg ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 24
  ] , [
    sh:name "hasBreed" ;
    sh:description "Livestock has some Breed" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBreed ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 25
  ] , [
    sh:name "hasAnimalID" ;
    sh:description "Livestock has Animal ID" ;
    sh:maxCount 1 ;
    sh:path lftdo:hasAnimalID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 26
  ] , [
    sh:name "hasBirthDate" ;
    sh:description "Livestock has some birthdate." ;
    sh:path lftdo:hasBirthDate ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 27
  ] , [
    sh:name "hasRunningDuration" ;
    sh:description "Livestock has some average running duration." ;
    sh:minCount 1 ;
    sh:path lftdo:hasRunningDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 28
  ] , [
    sh:name "isElectronicIdentified" ;
    sh:path lftdo:isElectronicIdentified ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 29
  ] , [
    sh:name "hasCurrentStatus" ;
    sh:path lftdo:hasCurrentStatus ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 30
  ] , [
    sh:name "exhibits" ;
    sh:description "Livestock exhibit some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibits ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 31
  ] , [
    sh:name "experiences" ;
    sh:minCount 1 ;
    sh:path lftdo:experiences ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 32
  ] , [
    sh:name "hasLastUpdateTimestamp" ;
    sh:path lftdo:hasLastUpdateTimestamp ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 33
  ] , [
    sh:name "hasTagMark" ;
    sh:description "Livestock has some TagMark" ;
    sh:minCount 1 ;
    sh:path lftdo:hasTagMark ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 34
  ] , [
    sh:name "isAffectedBy" ;
    sh:description "Livestock or Location or Device isAffectedBy LivestockEvent" ;
    sh:path lftdo:isAffectedBy ;
    sh:order 35
  ] , [
    sh:name "hasCurrentLocation" ;
    sh:description "Evironment condition and Livestock has a current Location at any point in time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 36
  ] ;
  sh:targetClass lftdo:Goat .

<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> .

lftdo:Resting a sh:NodeShape ;
  rdfs:comment """1.Resting is a behaviour
2.Resting can be a normal or abnormal behaviour state based on duration of the rest""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasDuration" ;
    sh:description "Behaviour has Duration in seconds (seconds/60 = Minutes)" ;
    sh:path lftdo:hasDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "behaviourOccursAt" ;
    sh:description "behaviour OccursAt some Location" ;
    sh:path lftdo:behaviourOccursAt ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasMovementDistance" ;
    sh:description "Behaviour has some Movement distance covered." ;
    sh:path lftdo:hasMovementDistance ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "hasCurrentBehaviourState" ;
    sh:description "Behaviour has some current BehaviourState" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCurrentBehaviourState ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasIntensity" ;
    sh:description "Behaviour has some level of intensity." ;
    sh:minCount 1 ;
    sh:path lftdo:hasIntensity ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStartTime" ;
    sh:description "Behaviour has Start Time" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStartTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasMovementDuration" ;
    sh:description "Livestock has some average movement duration." ;
    sh:path lftdo:hasMovementDuration ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasBehaviourEndTime" ;
    sh:description "Behaviour has EndTime" ;
    sh:path lftdo:hasBehaviourEndTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] , [
    sh:name "exhibitedBy" ;
    sh:description "Behaviour is exhibitedBy Livestock" ;
    sh:minCount 1 ;
    sh:path lftdo:exhibitedBy ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] ;
  sh:targetClass lftdo:Resting .

lftdo:AbnormalState a sh:NodeShape ;
  rdfs:comment """Behaviour state that breaks a social norm, that is statistically infrequent and prevents livestock from functioning.

Sub-classes:
1.DistressVocalization
2.Restlessness
3.UnusualMovement""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSeverityLevel" ;
    sh:description "AbnormalState has some severity level." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSeverityLevel ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:minCount 1 ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "isCurrentBehaviourStateOf" ;
    sh:description "BehaviourState is related to some Behaviour" ;
    sh:minCount 1 ;
    sh:path lftdo:isCurrentBehaviourStateOf ;
    sh:class lftdo:Behaviour ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "initiateStatusUpdate" ;
    sh:description "Software Application initiate some StatusUpdateEvent" ;
    sh:path lftdo:initiateStatusUpdate ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasBehaviourStateDescription" ;
    sh:description "BehaviourState has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasEventDateTime" ;
    sh:path lftdo:hasEventDateTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "isInfluencedBy" ;
    sh:description """BehaviourState is influenced by some EnvironmentalConditions

isInfluencedBy (Active/Causal): This means the environment is changing the behavior.
Example: \"The sheep stopped grazing because the rain became a heavy storm.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedBy ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "inferredByRule" ;
    sh:description "Indicates which SWRL rule was executed and Inferred results." ;
    sh:path lftdo:inferredByRule ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "hasBehaviourStateConfidenceScore" ;
    sh:description "BehaviourState has some ConfidenceScore" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateConfidenceScore ;
    sh:datatype xsd:integer ;
    sh:nodeKind sh:Literal ;
    sh:order 9
  ] , [
    sh:name "hasSpeed" ;
    sh:description "Livestock BehaviourState has some Speed measured in meters per second" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSpeed ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "isInfluencedByHealthCondition" ;
    sh:description "BehaviourState is influencedBy some HealthCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:isInfluencedByHealthCondition ;
    sh:class lftdo:HealthCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "isTransitionedFrom" ;
    sh:description "AbnormalBehaviour State is transitionedFrom some Normal Behaviour State" ;
    sh:path lftdo:isTransitionedFrom ;
    sh:class lftdo:NormalState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 12
  ] , [
    sh:name "isIdentifiedBy" ;
    sh:description "BehaviourState is isIdentifiedBy Detection Method." ;
    sh:path lftdo:isIdentifiedBy ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasEnvironmentalContext" ;
    sh:description "BehaviourState has some EnvironmentalCondition Context" ;
    sh:path lftdo:hasEnvironmentalContext ;
    sh:class lftdo:EnvironmentalCondition ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 14
  ] , [
    sh:name "triggers" ;
    sh:description """BehaviourState or DetectionMethod triggers some Event(Livestock or System Event)

A DetectionMethod (like TheftDetection) may trigger zero events if everything is normal. However, if a theft is detected, it might trigger many events simultaneously (e.g., a TheftEvent for the farmer and a StatusUpdateEvent for the system log).""" ;
    sh:path lftdo:triggers ;
    sh:or (
      [
        sh:class lftdo:LivestockEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
      [
        sh:class lftdo:SystemEvent ;
        sh:nodeKind sh:BlankNodeOrIRI
      ]
    ) ;
    sh:order 15
  ] , [
    sh:name "hasHealthIndicator" ;
    sh:path lftdo:hasHealthIndicator ;
    sh:in ( lftdo:FeverIndicator lftdo:LethargyIndicator lftdo:HighHealthTheftIndicator002 ) ;
    sh:order 16
  ] , [
    sh:name "isResolved" ;
    sh:path lftdo:isResolved ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 17
  ] , [
    sh:name "hasBehaviourStateContext" ;
    sh:description "BehaviourState has some Context" ;
    sh:minCount 1 ;
    sh:path lftdo:hasBehaviourStateContext ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 18
  ] ;
  sh:targetClass lftdo:AbnormalState .

lftdo:Participant a sh:NodeShape ;
  rdfs:comment """A participant in livestock farming such as Farmers, and others such as extended officers, veterinarians, and Law enforcement agents.
A Farmer owns various domestic animals such as cattle, sheep, and goats. 
The veterinarian understands the behavior of domestic animals and often treats the domestic animals for diseases.    
Extended officers, work on a farm, to manage livestock such as feeding, keeping count, managing their well-being, and protecting against theft.
Law enforcement agents, enforce the law of the country if not being adhered to such as theft, and abuse of livestock.

Sub-classes:
1. Farmer
2.ExtendedOfficer
3.LawEnforcementAgency
4.Veterinarian""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasAccessTo" ;
    sh:description "Participant has access to some SoftwareApplication" ;
    sh:path lftdo:hasAccessTo ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 0
  ] , [
    sh:name "hasParticipantEmail" ;
    sh:path lftdo:hasParticipantEmail ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isNotifiedBySoftwareApp" ;
    sh:description "Participant(Farmer) is notified by some SoftwareApplication" ;
    sh:path lftdo:isNotifiedBySoftwareApp ;
    sh:class lftdo:SoftwareApplication ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasParticipantName" ;
    sh:description "Participant has a name." ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 3
  ] , [
    sh:name "validateStatusOfEvent" ;
    sh:description "Farmer updates the status of some TheftEvent" ;
    sh:minCount 1 ;
    sh:path lftdo:validateStatusOfEvent ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasParticipantRole" ;
    sh:description """Participant has ParticipantRole.

Data property to define if they are an \"Auditor\" or \"Observer.\"""" ;
    sh:minCount 1 ;
    sh:path lftdo:hasParticipantRole ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasContactNumber" ;
    sh:description "Participant has some Contact Number." ;
    sh:minCount 1 ;
    sh:path lftdo:hasContactNumber ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "hasParticipantID" ;
    sh:description "Participant has identification." ;
    sh:maxCount 1 ;
    sh:path lftdo:hasParticipantID ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 7
  ] ;
  sh:targetClass lftdo:Participant .

lftdo:EnvironmentalCondition a sh:NodeShape ;
  rdfs:comment """Environmental condition influence livestock behavior, such as grazing, sleeping, and feeding, are also significantly influenced by their environmental conditions and weather changes such as rain, heat, and cold (Chaudhry et al., 2020).

Sub-classes:
1.ExtreamHeat""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasWeatherCondition" ;
    sh:description "Enviromental Condition has some WeatherCondition" ;
    sh:minCount 1 ;
    sh:path lftdo:hasWeatherCondition ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "hasPrecipitation" ;
    sh:description "Environmental condition has some precipitation e.g. No rain." ;
    sh:minCount 1 ;
    sh:path lftdo:hasPrecipitation ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 1
  ] , [
    sh:name "isCharacterisedBy" ;
    sh:description "AbnormalState isCharacterisedBy TheftIndicator" ;
    sh:path lftdo:isCharacterisedBy ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 2
  ] , [
    sh:name "hasLivestockIndicator" ;
    sh:description "LivestockIndicators are indicated by some Livestock Abnormal Behaviour or Device or Health or Environment conditions" ;
    sh:path lftdo:hasLivestockIndicator ;
    sh:class lftdo:LivestockIndicator ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "isContextOf" ;
    sh:description """EnvironmentalCondition is context of some BehaviourState

isContextOf (Passive/Spatio-Temporal): This simply means the behavior and the environment happened at the same time and place.
Example: \"The sheep is grazing while it is raining.\"""" ;
    sh:path lftdo:isContextOf ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 4
  ] , [
    sh:name "hasEnvironmentDescription" ;
    sh:description "EnvironmentCondition has some Description" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvironmentDescription ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "externallyAffects" ;
    sh:description "EnvironmentalCondition externallyAffects Livestock" ;
    sh:path lftdo:externallyAffects ;
    sh:class lftdo:Livestock ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 6
  ] , [
    sh:name "influences" ;
    sh:description "EnvironmentalCondition influences Livestock Behaviour." ;
    sh:path lftdo:influences ;
    sh:class lftdo:BehaviourState ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "hasEnvValue" ;
    sh:description "EnvironmentCondition has some Tempareture" ;
    sh:minCount 1 ;
    sh:path lftdo:hasEnvValue ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 8
  ] , [
    sh:name "OccursAtLocation" ;
    sh:description "Some Enviromental Condition, TheftIndicator, TheftEvent Occurrs at some Location" ;
    sh:path lftdo:OccursAtLocation ;
    sh:class lftdo:Location ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasEnvUnit" ;
    sh:description """Unit of measure e.g. Celsius
\"°C\", \"%\"""" ;
    sh:path lftdo:hasEnvUnit ;
    sh:order 10
  ] ;
  sh:targetClass lftdo:EnvironmentalCondition .

lftdo:SoftwareApplication a sh:NodeShape ;
  rdfs:comment """1.Software application is part of cloud computing services and uses some Machine Learning algorithm
2.Software Application uses results from ML Algorithm
(MLA)""" ;
  sh:closed false ;
  sh:property [
    sh:name "hasSoftwareVersion" ;
    sh:description "The software application has some version." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSoftwareVersion ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 0
  ] , [
    sh:name "notifies" ;
    sh:description "Software Application notify some Participant" ;
    sh:minCount 1 ;
    sh:path lftdo:notifies ;
    sh:class lftdo:Participant ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 1
  ] , [
    sh:name "isOnline" ;
    sh:path lftdo:isOnline ;
    sh:datatype xsd:boolean ;
    sh:nodeKind sh:Literal ;
    sh:order 2
  ] , [
    sh:name "uses" ;
    sh:description """TheftDetectionMethod uses some Algorithm
The software runs the code.""" ;
    sh:path lftdo:uses ;
    sh:class lftdo:Algorithm ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 3
  ] , [
    sh:name "hasSystemStatus" ;
    sh:path lftdo:hasSystemStatus ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 4
  ] , [
    sh:name "hasResponseTimeMs" ;
    sh:path lftdo:hasResponseTimeMs ;
    sh:datatype xsd:decimal ;
    sh:nodeKind sh:Literal ;
    sh:order 5
  ] , [
    sh:name "hasCompatibility" ;
    sh:description "SoftwareApplication has some Compatibility" ;
    sh:minCount 1 ;
    sh:path lftdo:hasCompatibility ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 6
  ] , [
    sh:name "implements" ;
    sh:description """SoftwareApplication implements some DetectionMethod.
A single App (like SoftwareApp001) can contain multiple detection \"modules\" (e.g., one for Theft, one for Health, one for Heat Detection). It can also exist with Zero methods if it’s just a data-viewer app.""" ;
    sh:minCount 1 ;
    sh:path lftdo:implements ;
    sh:class lftdo:DetectionMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 7
  ] , [
    sh:name "accesses" ;
    sh:description "SoftwareApplication accesses some Database" ;
    sh:path lftdo:accesses ;
    sh:class lftdo:Database ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 8
  ] , [
    sh:name "isDeployedOn" ;
    sh:description "SoftwareApplication is deployed on some cloudservice." ;
    sh:path lftdo:isDeployedOn ;
    sh:class lftdo:CloudService ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 9
  ] , [
    sh:name "hasFunctionality" ;
    sh:description "SoftwareApplication has some Functionality" ;
    sh:minCount 1 ;
    sh:path lftdo:hasFunctionality ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 10
  ] , [
    sh:name "SoftwareApplication's UI is updated by StatusUpdateEvent" ;
    sh:path lftdo:uiUpdatedBy ;
    sh:class lftdo:StatusUpdateEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 11
  ] , [
    sh:name "hasSoftwareAppName" ;
    sh:description "Software application has a name" ;
    sh:minCount 1 ;
    sh:path lftdo:hasSoftwareAppName ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 12
  ] , [
    sh:name "generatesLog" ;
    sh:description "SoftwareApplication generate some RoutineLog" ;
    sh:path lftdo:generatesLog ;
    sh:class lftdo:RoutineLogEvent ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:order 13
  ] , [
    sh:name "hasLastSyncTime" ;
    sh:path lftdo:hasLastSyncTime ;
    sh:datatype xsd:dateTime ;
    sh:nodeKind sh:Literal ;
    sh:order 14
  ] , [
    sh:name "hasSoftwareAppType" ;
    sh:description "Software has some Application Type." ;
    sh:minCount 1 ;
    sh:path lftdo:hasSoftwareAppType ;
    sh:datatype xsd:string ;
    sh:nodeKind sh:Literal ;
    sh:order 15
  ] ;
  sh:targetClass lftdo:SoftwareApplication .
