https://vocab.methodandstructure.com/stochastic#spvThis extremely nascent vocabulary is intended to represent stochastic processes—initially discrete-time semi-Markov processes—in a compact, declarative, programming-language-agnostic exchange format that can be easily modified, with easily-reusable parts. Here it is in action:
@prefix dct: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix spv: <https://vocab.methodandstructure.com/stochastic#> .
<#s1> a spv:State ;
spv:transition [
a spv:Fork ;
spv:weight 0.3 ;
spv:p <#s1> ;
spv:q [
a spv:Fork ;
spv:function <#hazard> ;
spv:p <#s2> ;
spv:q <#s3> ] ] .
<#s2> a spv:State ;
spv:transition [
a spv:Fork ;
spv:weight 0.5 ;
spv:p <#s1> ;
spv:q <#s3> ] .
<#s3> a spv:State ;
dct:description "Absorbing state."@en .
<#hazard> a spv:Function ;
dct:description "A(n unspecified) hazard function."@en .
This description should yield the following system:
The state space is extended by affording transitions to take a hazard function, that in turn takes as an argument the dwell counter d on the given state.
StateA spv:State represents a step in a Markov chain.
spv:positionspv:transitionForkTransitions between one spv:State and another are represented as a sequence of one or more spv:Fork entities.
spv:functionspv:pspv:qspv:weightFunctionA representation of a mathematical function.
positionAsserts the position of a spv:State within a serialized representation of its network, to sidestep inconsistencies in e.g. topological sorting algorithms.
spv:Statexsd:positiveIntegertransitionRelates the spv:State to the root spv:Fork of the transition set.
spv:Statespv:ForkfunctionThe weight of a transition sets the proximate probability of the transition being selected.
spv:Forkspv:FunctionpRelates this transition's spv:Fork to the subsequent spv:State on the trial's success.
spv:Forkspv:StateqRelates this transition's spv:Fork to either a subsequent spv:State or another spv:Fork on the trial's failure.
spv:Forkspv:Fork ∪ spv:State weightThe weight of a transition sets the proximate probability of the transition being selected.
spv:Forkspv:unit-intervalunit-intervalA data type that represents the unit interval from 0 to 1.
xsd:decimal[0, 1]