This is an ontology to describe nanopublication templates, which can be published as nanopublications themselves.
By current convention (maybe to be revisited at some point), the assertion of a nanopublication that introduces a template also serves as the identifier for the template itself:
sub:assertion a nt:AssertionTemplate .
Minimally, a template should have a label and description, and point to at least one statement:
sub:assertion a nt:AssertionTemplate; rdfs:label "Minimal template"; dct:description "This is a minimal template."; nt:hasStatement sub:st1 .
Statements are then defined like this:
sub:st1 rdf:object sub:label; rdf:predicate rdfs:label; rdf:subject <https://example.org/> .
Internally minted IDs like sub:label
can be declared as placeholders:
sub:label a nt:LiteralPlaceholder.
We can declare labels to be shown to the users for the different elements like this:
sub:label rdfs:label "write label text here" . rdfs:label rdfs:label "has the label" .This gives us this complete (and almost minimal) template as a nanopublication assertion:
sub:assertion { sub:assertion a nt:AssertionTemplate; rdfs:label "Minimal template"; dct:description "This is a minimal template."; nt:hasStatement sub:st1 . sub:st1 rdf:object sub:label; rdf:predicate rdfs:label; rdf:subject <https://example.org/> . sub:label a nt:LiteralPlaceholder; rdfs:label "write label text here" . rdfs:label rdfs:label "has the label" . }
You can find the full nanopublicaton here and try out the template here.
The ontology term definitions below give you the information for more complex types of templates. The easiest way to generate such templates is in Nanodash itself, through these forms that are created by templates describing template definitions:
IRI: https://w3id.org/np/o/ntemplate/AssertionTemplate
IRI: https://w3id.org/np/o/ntemplate/GroupedStatement
IRI: https://w3id.org/np/o/ntemplate/GuidedChoicePlaceholder
IRI: https://w3id.org/np/o/ntemplate/LiteralPlaceholder
IRI: https://w3id.org/np/o/ntemplate/LocalResource
IRI: https://w3id.org/np/o/ntemplate/LongLiteralPlaceholder
IRI: http://www.nanopub.org/nschema#Nanopublication
IRI: https://w3id.org/np/o/ntemplate/NanopubTemplate
IRI: https://w3id.org/np/o/ntemplate/OptionalStatement
IRI: https://w3id.org/np/o/ntemplate/Placeholder
IRI: https://w3id.org/np/o/ntemplate/ProvenanceTemplate
IRI: https://w3id.org/np/o/ntemplate/PubinfoTemplate
IRI: https://w3id.org/np/o/ntemplate/RepeatableStatement
IRI: https://w3id.org/np/o/ntemplate/RestrictedChoicePlaceholder
IRI: https://w3id.org/np/o/ntemplate/SequenceElementPlaceholder
IRI: http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement
IRI: https://w3id.org/np/o/ntemplate/TemplateStatement
IRI: https://w3id.org/np/o/ntemplate/TrustyUriPlaceholder
IRI: https://w3id.org/np/o/ntemplate/UnlistedTemplate
IRI: https://w3id.org/np/o/ntemplate/UriPlaceholder
IRI: https://w3id.org/np/o/ntemplate/ValuePlaceholder
IRI: https://w3id.org/np/o/ntemplate/hasDefaultProvenance
IRI: https://w3id.org/np/o/ntemplate/hasRequiredPubinfoElement
IRI: https://w3id.org/np/o/ntemplate/hasStatement
IRI: https://w3id.org/np/o/ntemplate/hasTargetNamespace
IRI: https://w3id.org/np/o/ntemplate/hasTargetNanopubType
IRI: https://w3id.org/np/o/ntemplate/possibleValue
IRI: https://w3id.org/np/o/ntemplate/possibleValuesFrom
IRI: https://w3id.org/np/o/ntemplate/wasCreatedFromProvenanceTemplate
IRI: https://w3id.org/np/o/ntemplate/wasCreatedFromPubinfoTemplate
IRI: https://w3id.org/np/o/ntemplate/wasCreatedFromTemplate
IRI: https://w3id.org/np/o/ntemplate/hasNanopubLabelPattern
IRI: https://w3id.org/np/o/ntemplate/hasPrefix
IRI: https://w3id.org/np/o/ntemplate/hasPrefixLabel
IRI: https://w3id.org/np/o/ntemplate/hasRegex
IRI: https://w3id.org/np/o/ntemplate/hasTag
IRI: https://w3id.org/np/o/ntemplate/possibleValuesFromApi
IRI: https://w3id.org/np/o/ntemplate/statementOrder
IRI: https://w3id.org/np/o/ntemplate/ASSERTION
IRI: https://w3id.org/np/o/ntemplate/CREATOR
IRI: https://w3id.org/np/o/ntemplate/NANOPUB