PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX linkml: <https://w3id.org/linkml/>
PREFIX sdo: <https://schema.org/>
PREFIX ex: <https://example.org/linkml/hello-world/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX pav: <http://purl.org/pav/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX vann: <http://purl.org/vocab/vann/>

<https://example.org/linkml/hello-world> a owl:Ontology ;
  rdfs:label "Really basic LinkML model" ;
  dcterms:license <https://creativecommons.org/publicdomain/zero/1.0/> ;
  pav:version "0.0.1" ;
  vann:preferredNamespacePrefix "ex" ;
  vann:preferredNamespaceUri "https://example.org/linkml/hello-world/"^^xsd:anyURI ;
  sh:declare [
    sh:prefix "linkml" ;
    sh:namespace "https://w3id.org/linkml/"^^xsd:anyURI
  ] , [
    sh:prefix "sdo" ;
    sh:namespace "https://schema.org/"^^xsd:anyURI
  ] , [
    sh:prefix "ex" ;
    sh:namespace "https://example.org/linkml/hello-world/"^^xsd:anyURI
  ] .

sdo:Person a owl:Class ;
  rdfs:comment "Minimal information about a person" ;
  rdfs:subClassOf [
    a owl:Restriction ;
    owl:onProperty sdo:givenName ;
    owl:allValuesFrom xsd:string
  ] , [
    a owl:Restriction ;
    owl:onProperty sdo:givenName ;
    owl:minCardinality "1"^^xsd:nonNegativeInteger
  ] , [
    a owl:Restriction ;
    owl:onProperty sdo:familyName ;
    owl:allValuesFrom xsd:string
  ] , [
    a owl:Restriction ;
    owl:onProperty sdo:familyName ;
    owl:cardinality "1"^^xsd:nonNegativeInteger
  ] , [
    a owl:Restriction ;
    owl:onProperty <http://xmlns.com/foaf/0.1/knows> ;
    owl:allValuesFrom sdo:Person
  ] .

ex:FriendlyPerson a owl:Class ;
  rdfs:comment "A person who actually knows someone" ;
  rdfs:subClassOf sdo:Person , [
    a owl:Restriction ;
    owl:onProperty <http://xmlns.com/foaf/0.1/knows> ;
    owl:minCardinality "1"^^xsd:nonNegativeInteger
  ] .

sdo:givenName a owl:DatatypeProperty ;
  rdfs:range xsd:string .

sdo:familyName a owl:DatatypeProperty ;
  rdfs:range xsd:string ;
  a owl:FunctionalProperty .

<http://xmlns.com/foaf/0.1/knows> a owl:ObjectProperty ;
  rdfs:range sdo:Person .

dcterms:license a owl:AnnotationProperty .

pav:version a owl:AnnotationProperty .

vann:preferredNamespacePrefix a owl:AnnotationProperty .

vann:preferredNamespaceUri a owl:AnnotationProperty .

sh:declare a owl:AnnotationProperty .

sh:prefix a owl:AnnotationProperty .

sh:namespace a owl:AnnotationProperty .
