sub:assertion {
dct:title rdfs:label "has the title" .
rdf:type rdfs:label "is a" .
<
https://w3id.org/kpxl/gen/terms/ResourceView>
rdfs:label "resource view" .
<
https://w3id.org/kpxl/gen/terms/hasActionTemplate>
rdfs:label "has the template" .
<
https://w3id.org/kpxl/gen/terms/hasViewAction>
rdfs:label "has the action" .
<
https://w3id.org/kpxl/gen/terms/hasViewQuery>
rdfs:label "has the query" .
sub:action a nt:LocalResource ,
nt:UriPlaceholder ;
rdfs:label "short ID suffix for the action" ;
nt:hasDefaultValue sub:action .
sub:actionLabel a nt:LiteralPlaceholder ;
rdfs:label "text shown on the action button" .
sub:actionTemplate a nt:GuidedChoicePlaceholder ;
rdfs:label "choose the template for this action" ;
nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/np/o/ntemplate/AssertionTemplate" .
sub:assertion dct:description "Declaring a view that to be shown on a resource page (i.e. user/space/maintained resource page)." ;
a nt:AssertionTemplate ;
rdfs:label "Declaring a resource view" ;
nt:hasNanopubLabelPattern "${space} has view for query: ${query}" ;
nt:hasStatement sub:st10 ,
sub:st20 ,
sub:st30 ,
sub:st50 ;
nt:hasTag "Spaces" .
sub:query a nt:GuidedChoicePlaceholder ;
rdfs:label "choose the query" ;
nt:possibleValuesFromApi "https://w3id.org/np/l/nanopub-query-1.1/api/RAyMrQ89RECTi9gZK5q7gjL1wKTiP8StkLy0NIkkCiyew/find-things?type=https://w3id.org/kpxl/grlc/grlc-query" .
sub:st10 rdf:object <
https://w3id.org/kpxl/gen/terms/ResourceView> ;
rdf:predicate rdf:type ;
rdf:subject sub:view .
sub:st20 rdf:object sub:title ;
rdf:predicate dct:title ;
rdf:subject sub:view .
sub:st30 rdf:object sub:query ;
rdf:predicate <
https://w3id.org/kpxl/gen/terms/hasViewQuery> ;
rdf:subject sub:view .
sub:st50 a nt:GroupedStatement ,
nt:OptionalStatement ,
nt:RepeatableStatement ;
nt:hasStatement sub:st51 ,
sub:st52 ,
sub:st53 .
sub:st51 rdf:object sub:action ;
rdf:predicate <
https://w3id.org/kpxl/gen/terms/hasViewAction> ;
rdf:subject sub:view .
sub:st52 rdf:object sub:actionTemplate ;
rdf:predicate <
https://w3id.org/kpxl/gen/terms/hasActionTemplate> ;
rdf:subject sub:action .
sub:st53 rdf:object sub:actionLabel ;
rdf:predicate rdfs:label ;
rdf:subject sub:action .
sub:title a nt:LiteralPlaceholder ;
rdfs:label "title for the view" .
sub:view a nt:EmbeddedResource ,
nt:LocalResource ,
nt:UriPlaceholder ;
rdfs:label "short ID suffix for the view" .
}