changes for n3 files for menu
This commit is contained in:
parent
1f3def7104
commit
baeac3f368
4 changed files with 32 additions and 337 deletions
|
@ -1,177 +0,0 @@
|
|||
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
#These are statements that should be added application.owl. For now adding these as a separate N3 file
|
||||
@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#> .
|
||||
|
||||
<http://www.w3.org/2002/07/owl#DatatypeProperty>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://www.w3.org/2000/01/rdf-schema#comment>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
a <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasElement>
|
||||
a <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
|
||||
<http://www.w3.org/2002/07/owl#ObjectProperty>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#MainMenu>
|
||||
a <http://www.w3.org/2002/07/owl#Class> ;
|
||||
<http://vitro.mannlib.cornell.edu/ns/vitro/0.7#customDisplayViewAnnot>
|
||||
"individual-menu.ftl"^^<http://www.w3.org/2001/XMLSchema#string> .
|
||||
|
||||
<http://www.w3.org/2000/01/rdf-schema#domain>
|
||||
a <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#excludeClass>
|
||||
a <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
|
||||
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasMenuText>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
|
||||
|
||||
<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\" .
|
||||
""" .
|
||||
|
||||
|
||||
<http://www.w3.org/2002/07/owl#versionInfo>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#linkText>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
|
||||
|
||||
<http://www.w3.org/2000/01/rdf-schema#label>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#HomePage>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#listViewConfigFile>
|
||||
a <http://www.w3.org/2002/07/owl#DatatypeProperty> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#mainMenu>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
|
||||
|
||||
<http://www.w3.org/2002/07/owl#Ontology>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
|
||||
<http://www.w3.org/2000/01/rdf-schema#range>
|
||||
a <http://www.w3.org/2002/07/owl#ObjectProperty> .
|
||||
|
||||
<http://www.w3.org/2002/07/owl#AnnotationProperty>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#IndividualsForClassesPage>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
||||
<http://www.w3.org/2002/07/owl#Class>
|
||||
a <http://www.w3.org/2002/07/owl#Class> .
|
||||
|
|
@ -1,97 +0,0 @@
|
|||
<?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#">
|
||||
]>
|
||||
<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;">
|
||||
|
||||
<!-- 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"/>
|
||||
|
||||
<!-- 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="#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="&owl;DatatypeProperty"/>
|
||||
<owl:DatatypeProperty rdf:about="&owl;topDataProperty"/>
|
||||
|
||||
<!-- Object Properties -->
|
||||
<owl:ObjectProperty rdf:about="#hasElement">
|
||||
<rdfs:domain rdf:resource="#Menu"/>
|
||||
<rdfs:range rdf:resource="&display;NavigationElement"/>
|
||||
</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="&owl;topObjectProperty"/>
|
||||
|
||||
</rdf:RDF>
|
|
@ -3,6 +3,7 @@
|
|||
@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 rdfs:<http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix core: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix vivoweb: <http://vivoweb.org/ontology#> .
|
||||
|
||||
|
@ -12,6 +13,7 @@
|
|||
|
||||
display:DefaultMenu
|
||||
a display:MainMenu ;
|
||||
rdfs:label "Default Menu" ;
|
||||
display:hasElement display:EventsMenuItem ;
|
||||
display:hasElement display:HomeMenuItem ;
|
||||
display:hasElement display:OrganizationsMenuItem ;
|
||||
|
@ -51,6 +53,7 @@ display:EventsMenuItem
|
|||
display:toPage display:Events .
|
||||
|
||||
########## Pages ############
|
||||
#Instead of type, now using dataGetter which uses an object that specifies information for data getter
|
||||
|
||||
display:Home
|
||||
a display:HomePage ;
|
||||
|
@ -63,14 +66,16 @@ display:Events
|
|||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGroupevents ;
|
||||
display:title "Events" ;
|
||||
display:urlMapping "/events" .
|
||||
display:urlMapping "/events" ;
|
||||
display:hasDataGetter display:eventsDataGetter .
|
||||
|
||||
display:Organizations
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGrouporganizations ;
|
||||
display:title "Organizations" ;
|
||||
display:urlMapping "/organizations" .
|
||||
display:urlMapping "/organizations";
|
||||
display:hasDataGetter display:organizationsDataGetter .
|
||||
|
||||
display:People
|
||||
a display:Page ;
|
||||
|
@ -78,11 +83,34 @@ display:People
|
|||
display:forClassGroup vivoweb:vitroClassGrouppeople ;
|
||||
display:requiresBodyTemplate "menupage--classgroup-people.ftl" ;
|
||||
display:title "People" ;
|
||||
display:urlMapping "/people" .
|
||||
display:urlMapping "/people" ;
|
||||
display:hasDataGetter display:peopleDataGetter .
|
||||
|
||||
display:Research
|
||||
a display:Page ;
|
||||
a display:ClassGroupPage;
|
||||
display:forClassGroup vivoweb:vitroClassGrouppublications ;
|
||||
display:title "Research" ;
|
||||
display:urlMapping "/research" .
|
||||
display:urlMapping "/research" ;
|
||||
display:hasDataGetter display:researchDataGetter .
|
||||
|
||||
#The data getter objects used above
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#peopleDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouppeople> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#researchDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouppublications> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#organizationsDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouporganizations> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#eventsDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGroupevents> .
|
|
@ -1,59 +0,0 @@
|
|||
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
#These are statements that should be added menu.n3. For now adding these as a separate N3 file
|
||||
@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#> .
|
||||
|
||||
#Adding label for Default Menu
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#DefaultMenu>
|
||||
<http://www.w3.org/2000/01/rdf-schema#label>
|
||||
"Default Menu" .
|
||||
|
||||
#Instead of type, now using dataGetter which uses an object that specifies information for data getter
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#People>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#peopleDataGetter> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Research>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#researchDataGetter> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Organizations>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#organizationsDataGetter> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#Events>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#hasDataGetter>
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#eventsDataGetter> .
|
||||
|
||||
#The data getter objects used above
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#peopleDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouppeople> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#researchDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouppublications> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#organizationsDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGrouporganizations> .
|
||||
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#eventsDataGetter>
|
||||
a <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#ClassGroupPage> ;
|
||||
<http://vitro.mannlib.cornell.edu/ontologies/display/1.1#forClassGroup>
|
||||
<http://vivoweb.org/ontology#vitroClassGroupevents> .
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue