@prefix rdfs: . @prefix ex: . @prefix wdrs: . @prefix owl: . @prefix rdf: . <> rdf:type owl:Ontology ; ex:property1 "value" ; ex:property2 ; ex:property3 . [] rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Class ; rdfs:subClassOf [ rdf:type owl:Class ; owl:intersectionOf ([ rdf:type owl:Restriction ; owl:hasValue "red" ; owl:onProperty ex:color ] [ rdf:type owl:Restriction ; owl:hasValue "square" ; owl:onProperty ex:shape ]) ] ; wdrs:logo ; wdrs:text "Everything on example.com is red and square" ] ; owl:equivalentClass [ rdf:type owl:Class ; owl:intersectionOf ([ rdf:type owl:Restriction ; owl:hasValue "\\:\\/\\/(([^\\/\\?\\#]*)\\@)?([^\\:\\/\\?\\#\\@]+\\.)?(example\\.com)(:([0-9]+))?\\/"^^ ; owl:onProperty wdrs:matchesregex ]) ] .