updates for menu management
This commit is contained in:
parent
5f14a66774
commit
7e4cf9a5c7
11 changed files with 429 additions and 97 deletions
134
webapp/ontologies/app/application.owl
Normal file
134
webapp/ontologies/app/application.owl
Normal file
|
@ -0,0 +1,134 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE rdf:RDF [
|
||||
<!ENTITY display "http://vitro.mannlib.cornell.edu/ontologies/display/1.1#">
|
||||
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
|
||||
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
|
||||
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
|
||||
<!ENTITY vitro "http://vitro.mannlib.cornell.edu/ns/vitro/0.7#">
|
||||
|
||||
]>
|
||||
<rdf:RDF xml:base="http://vitro.mannlib.cornell.edu/ontologies/display/1.1/"
|
||||
xmlns:display="&display;"
|
||||
xmlns:owl="&owl;"
|
||||
xmlns:rdf="&rdf;"
|
||||
xmlns:rdfs="&rdfs;"
|
||||
xmlns:vitro="&vitro;">
|
||||
|
||||
<!-- Ontology Information -->
|
||||
<owl:Ontology rdf:about=""
|
||||
rdfs:label="Vitro display ontology"
|
||||
owl:versionInfo="1.1"/>
|
||||
|
||||
<!-- Classes -->
|
||||
<owl:Class rdf:about="#Menu"/>
|
||||
<owl:Class rdf:about="#parameter"/>
|
||||
<owl:Class rdf:about="&display;ExternallyLinkedNamespace"
|
||||
rdfs:label="Externally Linked Namespace"/>
|
||||
<owl:Class rdf:about="&display;NavigationElement"
|
||||
rdfs:label="Navigation Element">
|
||||
<rdfs:comment>This represents a menu item or other general navigation item.</rdfs:comment>
|
||||
</owl:Class>
|
||||
|
||||
<owl:Class rdf:about="&display;Page"
|
||||
rdfs:comment="Class of pages."
|
||||
rdfs:label="Page"/>
|
||||
<owl:Class rdf:about="&rdfs;subPropertyOf"/>
|
||||
<owl:Class rdf:about="&owl;NamedIndividual"/>
|
||||
<owl:Class rdf:about="&owl;DatatypeProperty"/>
|
||||
<owl:Class rdf:about="&owl;ObjectProperty"/>
|
||||
<owl:Class rdf:about="&owl;AnnotationProperty"/>
|
||||
|
||||
|
||||
<owl:Class rdf:about="&owl;Class"/>
|
||||
<owl:Class rdf:about="&display;MainMenu">
|
||||
<vitro:customDisplayViewAnnot rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
|
||||
individual-menu.ftl
|
||||
</vitro:customDisplayViewAnnot>
|
||||
</owl:Class>
|
||||
<owl:Class rdf:about="&owl;Ontology"/>
|
||||
|
||||
<!-- types of pages -->
|
||||
<owl:Class rdf:about="&display;HomePage"/>
|
||||
<owl:Class rdf:about="&display;ClassGroupPage"/>
|
||||
<owl:Class rdf:about="&display;IndividualsForClassesPage"/>
|
||||
<owl:Class rdf:about="&display;InternalClassesPage"/>
|
||||
|
||||
|
||||
<!-- Annotation Properties -->
|
||||
<owl:AnnotationProperty rdf:about="&rdfs;comment"/>
|
||||
<owl:AnnotationProperty rdf:about="&rdfs;label"/>
|
||||
<owl:AnnotationProperty rdf:about="&owl;versionInfo"/>
|
||||
|
||||
<!-- Datatype Properties -->
|
||||
<owl:DatatypeProperty rdf:about="&owl;DatatypeProperty"/>
|
||||
<owl:DatatypeProperty rdf:about="&owl;topDataProperty"/>
|
||||
<!--Originall generated - check if need these-->
|
||||
<owl:DatatypeProperty rdf:about="&rdfs;comment"/>
|
||||
<owl:DatatypeProperty rdf:about="&rdfs;label"/>
|
||||
<owl:DatatypeProperty rdf:about="&owl;versionInfo"/>
|
||||
<!--end originally generated -->
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;linkText"
|
||||
rdfs:comment="Text to display to a link.">
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;menuPosition"
|
||||
rdfs:label="menu position">
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;parameterName"
|
||||
rdfs:label="parameter name"/>
|
||||
<owl:DatatypeProperty rdf:about="&display;parameterValue"
|
||||
rdfs:label="parameter value"/>
|
||||
<owl:DatatypeProperty rdf:about="&display;requiresBodyTemplate"
|
||||
rdfs:label="Body Template">
|
||||
<rdfs:comment>Indicates that a page requires a body template.</rdfs:comment>
|
||||
<rdfs:domain rdf:resource="&display;Page"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;title"
|
||||
rdfs:comment="Value for HTML title element."
|
||||
rdfs:label="title">
|
||||
<rdfs:domain rdf:resource="&display;Page"/>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;urlMapping">
|
||||
<rdfs:comment>Values from HttpRequest.getPathInfo() will be mapped to values from urlMapping.</rdfs:comment>
|
||||
</owl:DatatypeProperty>
|
||||
|
||||
<owl:DatatypeProperty rdf:about="&display;listViewConfigFile"/>
|
||||
<owl:DatatypeProperty rdf:about="&display;restrictResultsByInternalClass"/>
|
||||
|
||||
<!-- Object Properties -->
|
||||
<owl:ObjectProperty rdf:about="&owl;topObjectProperty"/>
|
||||
<owl:ObjectProperty rdf:about="&rdfs;domain"/>
|
||||
<owl:ObjectProperty rdf:about="&rdfs;range"/>
|
||||
<owl:ObjectProperty rdf:about="&display;hasElement">
|
||||
</owl:ObjectProperty>
|
||||
|
||||
<owl:ObjectProperty rdf:about="#hasParameter">
|
||||
<rdfs:domain rdf:resource="&display;Page"/>
|
||||
<rdfs:range rdf:resource="#parameter"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
<owl:ObjectProperty rdf:about="excludeClass">
|
||||
</owl:ObjectProperty>
|
||||
|
||||
<owl:ObjectProperty rdf:about="includeClass">
|
||||
</owl:ObjectProperty>
|
||||
|
||||
<owl:ObjectProperty rdf:about="&display;toPage">
|
||||
<rdfs:domain rdf:resource="&display;NavigationElement"/>
|
||||
<rdfs:range rdf:resource="&display;Page"/>
|
||||
</owl:ObjectProperty>
|
||||
<owl:ObjectProperty rdf:about="&display;forClassGroup"/>
|
||||
<owl:ObjectProperty rdf:about="&display;excludeClass"/>
|
||||
<owl:ObjectProperty rdf:about="&display;restrictResultsByClass"/>
|
||||
<owl:ObjectProperty rdf:about="&display;getIndividualsForClass"/>
|
||||
<owl:ObjectProperty rdf:about="&display;hasDataGetter"/>
|
||||
|
||||
<!--Custom properties-->
|
||||
|
||||
|
||||
</rdf:RDF>
|
96
webapp/ontologies/app/menuload/displayDisplay.n3
Normal file
96
webapp/ontologies/app/menuload/displayDisplay.n3
Normal file
|
@ -0,0 +1,96 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#MenuText>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasMenuText>
|
||||
"""# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix display: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||
|
||||
### This file defines the default menu for vivo. ###
|
||||
|
||||
#### Default Menu ####
|
||||
|
||||
display:DefaultMenu
|
||||
a display:MainMenu ;
|
||||
display:hasElement display:EventsMenuItem ;
|
||||
display:hasElement display:HomeMenuItem ;
|
||||
display:hasElement display:OrganizationsMenuItem ;
|
||||
display:hasElement display:PeopleMenuItem ;
|
||||
display:hasElement display:ResearchMenuItem .
|
||||
|
||||
#### Menu Items for Default Menu ####
|
||||
|
||||
display:HomeMenuItem
|
||||
a display:NavigationElement ;
|
||||
display:menuPosition 1;
|
||||
display:linkText \"Home\";
|
||||
display:toPage display:Home .
|
||||
|
||||
display:PeopleMenuItem
|
||||
a display:NavigationElement ;
|
||||
display:menuPosition 2;
|
||||
display:linkText \"People\";
|
||||
display:toPage display:People .
|
||||
|
||||
display:OrganizationsMenuItem
|
||||
a display:NavigationElement ;
|
||||
display:menuPosition 3;
|
||||
display:linkText \"Organizations\";
|
||||
display:toPage display:Organizations .
|
||||
|
||||
display:ResearchMenuItem
|
||||
a display:NavigationElement ;
|
||||
display:menuPosition 4;
|
||||
display:linkText \"Research\";
|
||||
display:toPage display:Research .
|
||||
|
||||
display:EventsMenuItem
|
||||
a display:NavigationElement ;
|
||||
display:menuPosition 5;
|
||||
display:linkText \"Events\";
|
||||
display:toPage display:Events .
|
||||
|
||||
########## Pages ############
|
||||
|
||||
display:Home
|
||||
a display:HomePage ;
|
||||
a display:Page ;
|
||||
display:title \"Home\" ;
|
||||
display:urlMapping \"/\" .
|
||||
|
||||
display:Events
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGroupevents ;
|
||||
display:title \"Events\" ;
|
||||
display:urlMapping \"/events\" .
|
||||
|
||||
display:Organizations
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGrouporganizations ;
|
||||
display:title \"Organizations\" ;
|
||||
display:urlMapping \"/organizations\" .
|
||||
|
||||
display:People
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGrouppeople ;
|
||||
display:requiresBodyTemplate \"menupage--classgroup-people.ftl\" ;
|
||||
display:title \"People\" ;
|
||||
display:urlMapping \"/people\" .
|
||||
|
||||
display:Research
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGrouppublications ;
|
||||
display:title \"Research\" ;
|
||||
display:urlMapping \"/research\" .
|
||||
""" .
|
85
webapp/ontologies/app/menuload/displayTBOX.n3
Normal file
85
webapp/ontologies/app/menuload/displayTBOX.n3
Normal file
|
@ -0,0 +1,85 @@
|
|||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
|
||||
owl:Ontology
|
||||
a owl:Class .
|
||||
|
||||
rdfs:range
|
||||
a owl:ObjectProperty .
|
||||
|
||||
owl:AnnotationProperty
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#urlMapping>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#requiresBodyTemplate>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#toPage>
|
||||
a owl:ObjectProperty .
|
||||
|
||||
rdfs:label
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#excludeClass>
|
||||
a owl:ObjectProperty .
|
||||
|
||||
owl:DatatypeProperty
|
||||
a owl:Class .
|
||||
|
||||
rdfs:comment
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
a owl:ObjectProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#menuPosition>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Page>
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#HomePage>
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
a owl:ObjectProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage>
|
||||
a owl:Class .
|
||||
|
||||
owl:Class
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasElement>
|
||||
a owl:ObjectProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#title>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
owl:ObjectProperty
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#MainMenu>
|
||||
a owl:Class .
|
||||
|
||||
rdfs:domain
|
||||
a owl:ObjectProperty .
|
||||
|
||||
owl:versionInfo
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#listViewConfigFile>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#linkText>
|
||||
a owl:DatatypeProperty .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#NavigationElement>
|
||||
a owl:Class .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ns/vitro/0.7#customDisplayViewAnnot>
|
||||
a owl:DatatypeProperty .
|
Loading…
Add table
Add a link
Reference in a new issue