sub:assertion {
rdf:Property rdfs:label "property" .
rdf:type rdfs:label "is a" .
rdfs:domain rdfs:label "has its subject values from the class (domain)" .
rdfs:label rdfs:label "is read as" .
rdfs:range rdfs:label "has its object values from the class (range)" .
<
http://www.w3.org/2002/07/owl#DatatypeProperty>
rdfs:label "datatype property - a relation between an object (any entity) and a literal (a text or number)" .
<
http://www.w3.org/2002/07/owl#ObjectProperty>
rdfs:label "object property - a relation between two objects (any kinds of entities)" .
<
http://www.w3.org/2004/02/skos/core#definition>
rdfs:label "is defined as follows:" .
sub:assertion dct:description "This template helps to define object properties and datatype properties with domains and ranges from diverse sources." ;
a nt:AssertionTemplate ;
rdfs:label "Defining a new object/datatype property" ;
nt:hasNanopubLabelPattern "Property: ${label}" ;
nt:hasStatement sub:st0 ,
sub:st1 ,
sub:st2 ,
sub:st3 ,
sub:st4 ,
sub:st5 ;
nt:hasTag "Terms" .
sub:definition a nt:LongLiteralPlaceholder ;
rdfs:label "definition of the property" .
sub:domain a nt:UriPlaceholder ;
rdfs:label "URI of the domain class" ;
nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23Class&searchterm=" , "https://www.wikidata.org/w/api.php?action=wbsearchentities&language=en&format=json&limit=5&search=" .
sub:label a nt:LiteralPlaceholder ;
rdfs:label "how the property is read, e.g. 'contains' or 'is used by'" .
sub:property a nt:IntroducedResource ,
nt:LocalResource ,
nt:UriPlaceholder ;
rdfs:label "short name, used as URI suffix" .
sub:propertytype a nt:RestrictedChoicePlaceholder ;
rdfs:label "type of property (object or datatype property)" ;
nt:possibleValue <
http://www.w3.org/2002/07/owl#DatatypeProperty> , <
http://www.w3.org/2002/07/owl#ObjectProperty> .
sub:range a nt:UriPlaceholder ;
rdfs:label "URI of the range class" ;
nt:possibleValuesFromApi "http://purl.org/nanopub/api/find_signed_things?type=http%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23Class&searchterm=" , "https://www.wikidata.org/w/api.php?action=wbsearchentities&language=en&format=json&limit=5&search=" .
sub:st0 rdf:object rdf:Property ;
rdf:predicate rdf:type ;
rdf:subject sub:property .
sub:st1 rdf:object sub:propertytype ;
rdf:predicate rdf:type ;
rdf:subject sub:property ;
a nt:OptionalStatement .
sub:st2 rdf:object sub:label ;
rdf:predicate rdfs:label ;
rdf:subject sub:property .
sub:st3 rdf:object sub:definition ;
rdf:predicate <
http://www.w3.org/2004/02/skos/core#definition> ;
rdf:subject sub:property .
sub:st4 rdf:object sub:domain ;
rdf:predicate rdfs:domain ;
rdf:subject sub:property ;
a nt:OptionalStatement .
sub:st5 rdf:object sub:range ;
rdf:predicate rdfs:range ;
rdf:subject sub:property ;
a nt:OptionalStatement .
}