Adding ability to hide classes in search. NIHVIVO-643. Adding ability to have n3 files in ontology directories.
This commit is contained in:
parent
8b96e68e71
commit
ca27bf877e
2 changed files with 38 additions and 0 deletions
|
@ -7,12 +7,14 @@
|
|||
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
|
||||
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
|
||||
<!ENTITY display "http://vitro.mannlib.cornell.edu/ontologies/display/1.1#" >
|
||||
<!ENTITY display2 "http://vitro.mannlib.cornell.edu/ontologies/display/1.1/" >
|
||||
]>
|
||||
|
||||
|
||||
<rdf:RDF xmlns="http://vitro.mannlib.cornell.edu/ontologies/display/1.1#"
|
||||
xml:base="http://vitro.mannlib.cornell.edu/ontologies/display/1.1"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|
||||
xmlns:display2="http://vitro.mannlib.cornell.edu/ontologies/display/1.1/"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
|
@ -65,6 +67,22 @@
|
|||
|
||||
|
||||
|
||||
<!-- http://vitro.mannlib.cornell.edu/ontologies/display/1.1/excludeClass -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="&display2;excludeClass">
|
||||
<rdfs:subPropertyOf rdf:resource="&owl;topObjectProperty"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://vitro.mannlib.cornell.edu/ontologies/display/1.1/includeClass -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="&display2;includeClass">
|
||||
<rdfs:subPropertyOf rdf:resource="&owl;topObjectProperty"/>
|
||||
</owl:ObjectProperty>
|
||||
|
||||
|
||||
|
||||
<!-- http://www.w3.org/2002/07/owl#topObjectProperty -->
|
||||
|
||||
<owl:ObjectProperty rdf:about="&owl;topObjectProperty"/>
|
||||
|
|
20
productMods/WEB-INF/ontologies/app/search.n3
Normal file
20
productMods/WEB-INF/ontologies/app/search.n3
Normal file
|
@ -0,0 +1,20 @@
|
|||
# $This file is distributed under the terms of the license in /doc/license.txt$
|
||||
|
||||
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
||||
@prefix vitroDisplay: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> .
|
||||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix vivo: <http://vivoweb.org/ontology/core#> .
|
||||
@prefix localNav: <http://vitro.mannlib.cornell.edu/ns/localnav#> .
|
||||
|
||||
# All instances of a class can be excluded from the lucene
|
||||
# index by adding a vitroDisplay:excludeClass property between
|
||||
# vitroDisplay:PrimaryLuceneIndex and the URI of the class
|
||||
# that you would like to exclude.
|
||||
|
||||
vitroDisplay:PrimaryLuceneIndex
|
||||
rdf:type owl:Thing ;
|
||||
vitroDisplay:excludeClass vivo:AdvisingActivity ;
|
||||
vitroDisplay:excludeClass vivo:Authorship ;
|
||||
vitroDisplay:excludeClass vivo:SubjectArea ;
|
||||
vitroDisplay:excludeClass vivo:Position ;
|
||||
vitroDisplay:excludeClass vivo:EducationalBackground .
|
Loading…
Add table
Add a link
Reference in a new issue