Skip to content

IRI field

Description

An iri field can be used to store an rdf iri.

Shacl definition in the RecordType

sh:property                     [ 
    rdf:type    sh:PropertyShape ;
    rdfs:label  "IRI" ;
    dash:editor memorix:IriEditor ;
    sh:path     image:iri ;
    sh:maxCount 1 ;
    sh:order    4.0 ;
    sh:nodeKind sh:IRI ;
    sh:message  "Value must start with http:// or https:// consist of a valid IRI" ;
    sh:pattern "^https?://" ;
    sh:flags   "i" ;
    sh:group    image:DisplayGroup ; 
] ;

It is not mandatory to add the regex pattern to the IRI field, but relative url's will always be converted to absolute url's with the base url of the API this can cause confusion e.g. <thingy> will be replaced by http://test.memorix.io/thingy