<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="https://ontobee.org/ontology/view/AFO?iri=http://purl.allotrope.org/ontologies/property%23AFX_0002874"?>
<rdf:RDF xmlns="http://www.w3.org/2002/07/owl#"
     xml:base="http://www.w3.org/2002/07/owl"
     xmlns:shacl="http://www.w3.org/ns/shacl#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:owl="http://www.w3.org/2002/07/owl#"
     xmlns:oboInOwl="http://www.geneontology.org/formats/oboInOwl#"
     xmlns:property="http://purl.allotrope.org/ontologies/property#"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
     xmlns:skos="http://www.w3.org/2004/02/skos/core#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
     xmlns:obo="http://purl.obolibrary.org/obo/"
     xmlns:foaf="http://xmlns.com/foaf/0.1/"
     xmlns:dc="http://purl.org/dc/elements/1.1/">
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Annotation properties
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->

    <AnnotationProperty rdf:about="http://www.w3.org/2004/02/skos/core#definition"/>
    <AnnotationProperty rdf:about="http://purl.allotrope.org/ontologies/property#AFX_0002874">
        <rdfs:label>has polymorphic JSON schema</rdfs:label>
        <skos:example>The following shape defines a polymorphic &quot;peak width&quot; facet:

af-s:AFS_0005312 a sh:PropertyShape ;
  sh:path af-x:AFX_0002803 ; # has facet
  sh:qualifiedValueShape [
       sh:class af-r:AFR_0001075 ; # peak width
       af-x:AFX_0002874 true  # generate polymorphic JSON schema
   ] ;
   sh:qualifiedMinCount 1 ;
.

It is translated to a JSON schema that allows one of
&quot;peak width at half height&quot;: {}
&quot;peak width at 5% height&quot;: {}
&quot;peak width at 10% height&quot;: {}
&quot;peak width at baseline&quot; : {}

If the &#39;has polymorphic JSON schema&#39; annotation is false or unspecified, then only
&quot;peak width&quot;: {} 
is allowed and the JSON schema is more restrictive than the SHACL shape.</skos:example>
        <skos:definition>A shape that describes a facet by sh:qualifiedValueShape in an Allotrope Simple Model (ASM) shape library can be marked with this annotation property. The property controls how the facet is translated into a JSON schema for the property. By setting this property to true, the JSON schema behaves as in SHACL, allowing subclasses to be used, otherwise the class is used directly. [Allotrope]</skos:definition>
        <skos:prefLabel>has polymorphic JSON schema</skos:prefLabel>
        <rdfs:isDefinedBy rdf:resource="http://purl.allotrope.org/voc/afo/REC/2025/12/curation"/>
        <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#boolean"/>
        <rdfs:subPropertyOf rdf:resource="http://www.w3.org/2004/02/skos/core#note"/>
        <rdfs:domain rdf:resource="http://www.w3.org/ns/shacl#Shape"/>
    </AnnotationProperty>
    <AnnotationProperty rdf:about="http://www.w3.org/2004/02/skos/core#note">
        <rdfs:label>note</rdfs:label>
    </AnnotationProperty>
    <AnnotationProperty rdf:about="http://www.w3.org/2004/02/skos/core#prefLabel"/>
    <AnnotationProperty rdf:about="http://www.w3.org/2004/02/skos/core#example"/>
    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Datatypes
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->

    


    <!-- 
    ///////////////////////////////////////////////////////////////////////////////////////
    //
    // Classes
    //
    ///////////////////////////////////////////////////////////////////////////////////////
     -->

    


    <!-- http://www.w3.org/ns/shacl#Shape -->

    <Class rdf:about="http://www.w3.org/ns/shacl#Shape">
        <rdfs:label>Shape</rdfs:label>
    </Class>
</rdf:RDF>



<!-- Generated by the OWL API (version 3.2.4.1806) http://owlapi.sourceforge.net -->



