@prefix ex: <https://example.com/json-values/query/array-elements/> .
@prefix json: <https://ontology.inferal.com/modules/json-values/> .

ex:items
    a json:Array ;
    json:hasElement ex:items-0, ex:items-1, ex:items-2 .

ex:items-0
    a json:Element ;
    json:elementOfArray ex:items ;
    json:elementIndex 0 ;
    json:elementValue ex:first .

ex:first
    a json:String ;
    json:stringValue "first" .

ex:items-1
    a json:Element ;
    json:elementOfArray ex:items ;
    json:elementIndex 1 ;
    json:elementValue ex:second .

ex:second
    a json:Number ;
    json:numberLexicalForm "2" .

ex:items-2
    a json:Element ;
    json:elementOfArray ex:items ;
    json:elementIndex 2 ;
    json:elementValue json:null .

json:null
    a json:Null .
