Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The ontology is presented below

Code Block
@prefix ocrerowl:   <http://purlwww.w3.org/net2002/OCRe07/research.owl#> .
@prefix prxsd:    <https<http://iphwww.rasw3.ruorg/2001/relationships#>XMLSchema#> .
@prefix owlrdfs:   <http://www.w3.org/20022000/0701/owl#>rdf-schema#> .
@prefix nssearch:    <http<https://www.w3vivoweb.org/2003ontology/06/sw-vocab-status/ns#> vitro-search#> .
@prefix sciresvitro: <http://vivoweb.org/ontology/scientific-research#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix swo:   <http://www.ebi.ac.uk/efo/swo/> .
@prefix ocresd: <http://purl.org/net/OCRe/study_design.owl#> .
@prefix cito:  <http://purl.org/spar/cito/> .
@prefix geo:   <http://aims.fao.org/aos/geopolitical.owl#> .
@prefix search: <https://vivoweb.org/ontology/vitro-search#> .
@prefix ocresst: <http://purl.org/net/OCRe/statistics.owl#> .
@prefix xml:   <http://www.w3.org/XML/1998/namespace> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vivo:  <http://vivoweb.org/ontology/core#> .
@prefix vann:  <http://purl.org/vocab/vann/> .
@prefix event: <http://purl.org/NET/c4dm/event.owl#> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix c4o:   <http://purl.org/spar/c4o/> .
@prefix fabio: <http://purl.org/spar/fabio/> .
@prefix vcard: <http://www.w3.org/2006/vcard/ns#> .
@prefix vitro: <http://vitro.mannlib.cornell.edu/ns/vitro/0.7#> .
@prefix skos2: <http://www.w3.org/2008/05/skos#> .
@prefix vitro-public: <http://vitro.mannlib.cornell.edu/ns/vitro/public#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ocresp: <http://purl.org/net/OCRe/study_protocol.owl#> .
@prefix ecrm:  <http://erlangen-crm.org/170309/> .
@prefix bibo:  <http://purl.org/ontology/bibo/> .
@prefix ro:    <http://purl.obolibrary.org/obo/ro.owl#> .
@prefix obo:   <http://purl.obolibrary.org/obo/> .
@prefix dc:    <http://purl.org/dc/elements/1.1/> .

<https://vivoweb.org/ontology/vitro-search>
        a      vitro.mannlib.cornell.edu/ns/vitro/0.7#> .

<https://vivoweb.org/ontology/vitro-search>
        a                          owl:Ontology ;
        vitro:ontologyPrefixAnnot  "search" .

search:PublicParameter  a             owl:Class .

search:SearchField  a                 owl:Class .

search:FilterValue  a                 owl:Class ;
        rdfs:subClassOf               search:PublicParameter .

search:Sort  a                        owl:Class ;
        rdfs:subClassOf               search:PublicParameter .

search:RangeFilter  a                 owl:Class ;
        rdfs:subClassOf               search:Filter .

search:FilterGroup  a                 owl:Class ;
        rdfs:subClassOf               search:PublicParameter .

search:Filter  a                      owl:Class ;
        rdfs:subClassOf               search:PublicParameter .

search:multivalued  a                 owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:SearchField ;
        rdfs:range                    xsd:boolean .

search:isAscending  a                 owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:Sort ;
        rdfs:range                    xsd:boolean .

search:indexField  a                  owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:SearchField ;
        rdfs:range                    xsd:string .

search:contains  a                    owl:OntologyObjectProperty ;
        vitro:ontologyPrefixAnnot  "search" .

search:PublicParameter  a    rdfs:domain                   search:FilterGroup ;
         owlrdfs:Class .

search:SearchFieldrange   a                 owlsearch:ClassFilter .

search:FilterValuestep  a                        owl:DatatypeProperty , owl:ClassFunctionalProperty ;
        rdfs:subClassOfdomain                   search:PublicParameterRangeFilter .

search:Sort;
    a    rdfs:range                    owlxsd:Class ;int .

search:isLanguageSpecific
        rdfs:subClassOfa               search:PublicParameter .

search:RangeFilter  a                 owl:DatatypeProperty , owl:ClassFunctionalProperty ;
        rdfs:subClassOfdomain                   search:FilterSearchField .

search:FilterGroup  a;
        rdfs:range                    owlxsd:Classboolean ;
 .

search:filterField  a     rdfs:subClassOf            owl:ObjectProperty ,  searchowl:PublicParameterFunctionalProperty .

search:Filter;
   a     rdfs:domain                 owl  search:ClassFilter ;
        rdfs:subClassOfrange                    search:PublicParameterSearchField .

search:multivaluedisUriValues  a                 owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:SearchFieldFilter ;
        rdfs:range                    xsd:boolean .

search:isAscendingorder  a                       owl:DatatypePropertyFunctionalProperty , owl:FunctionalPropertyDatatypeProperty ;
        rdfs:domain                   search:SortPublicParameter ;
        rdfs:range                    xsd:booleaninteger .

search:indexFielduserInput  a                   owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:SearchFieldFilter ;
        rdfs:range                    xsd:stringboolean .

search:containsfrom  a                        owl:DatatypeProperty , owl:ObjectPropertyFunctionalProperty ;
        rdfs:domain                   search:FilterGroupRangeFilter ;
        rdfs:range                    searchxsd:Filterstring .

search:stepuserInputRegex
        a                             owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:RangeFilterFilter ;
        rdfs:range                    xsd:intboolean .

search:isLanguageSpecific
 sortField       a                             owl:DatatypePropertyFunctionalProperty , owl:FunctionalPropertyObjectProperty ;
        rdfs:domain                   search:SearchFieldSort ;
        rdfs:range                    xsdsearch:booleanSearchField .

search:filterFieldid  a                          owl:ObjectPropertyDatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:FilterPublicParameter ;
        rdfs:range                    searchxsd:SearchFieldstring .

search:isUriValuesfacetResults  a                 owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:Filter ;
        rdfs:range                    xsd:boolean .

search:orderto  a                          owl:FunctionalPropertyDatatypeProperty , owl:DatatypePropertyFunctionalProperty ;
        rdfs:domain                   search:PublicParameterRangeFilter ;
        rdfs:range                    xsd:integerstring .

search:userInputhasKnownValue  a                   owl:DatatypeProperty , owl:FunctionalProperty ObjectProperty ;
        rdfs:domain                    search:Filter ;
        rdfs:range                    xsd search:booleanFilterValue .

search:frompublic  a                        owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain                   search:RangeFilterPublicParameter ;
        rdfs:range                    xsd:stringboolean .

search:userInputRegexdefaultPublic
        a                             owl:DatatypeProperty<http://www.w3.org/2002/07/owl#DatatypeProperty> , owl:FunctionalProperty<http://www.w3.org/2002/07/owl#FunctionalProperty> ;
        rdfs:domain                   search:Filter<https://vivoweb.org/ontology/vitro-search#FilterValue> ;
        rdfs:range          <http://www.w3.org/2001/XMLSchema#boolean> ;
        rdfs:subPropertyOf   xsd:boolean .

search:sortField<http://www.w3.org/2002/07/owl#topDataProperty> .

search:moreLimit
        a                   owl:FunctionalProperty<http://www.w3.org/2002/07/owl#DatatypeProperty> , owl:ObjectProperty<http://www.w3.org/2002/07/owl#FunctionalProperty> ;
        rdfs:domain     rdfs:domain     <https://vivoweb.org/ontology/vitro-search#Filter> ;
        rdfs:range          search:Sort<http://www.w3.org/2001/XMLSchema#int> ;
        rdfs:rangesubPropertyOf           <http://www.w3.org/2002/07/owl#topDataProperty> .


An example of configuration search page is provided below.

Code Block
@prefix :         search:SearchField<https://vivoweb.org/ontology/vitro-search-individual/> .

@prefix vitro-search:id  a                          owl:DatatypeProperty , owl:FunctionalProperty ;
        rdfs:domain <https://vivoweb.org/ontology/vitro-search#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .

:filter_group_search_filters  a    vitro-search:FilterGroup ;
        vitro-search:contains      :range_filter_dates , :filter_organizations , :filter_persons , search:PublicParameter ;
        rdfs:range    filter_publication_year .

:filter_publication_year  a        vitro-search:Filter ;
       xsd:string .

 vitro-search:facetResults  atrue ;
          vitro-search:filterField     owl:DatatypeProperty , owl:FunctionalProperty:field_publication_year ;
        rdfsvitro-search:domainid                   search:Filter"publication_year" ;
        rdfsvitro-search:rangepublic        true .

:field_persons  a         xsd:boolean .

search:to    a     vitro-search:SearchField ;
        vitro-search:indexField   "persons_ss" ;
        owlvitro-search:DatatypePropertyisLanguageSpecific ,true owl:FunctionalProperty ;
        rdfsvitro-search:domainmultivalued  true .

:range_filter_dates  a              vitro-search:RangeFilter ;
        rdfsvitro-search:rangefilterField  :field_dates ;
                 xsd:string .

vitro-search:hasKnownValuefrom  a       "1900" ;
        owl:ObjectProperty ;
  vitro-search:id       rdfs:domain    "dates" ;
        vitro-search:public       search:Filterfalse ;
        rdfsvitro-search:rangeto           "2030" .

:filter_organizations  a       search:FilterValue .

search:public  a vitro-search:Filter ;
         vitro-search:facetResults  true ;
        owl:DatatypeProperty , owl:FunctionalPropertyvitro-search:filterField   :field_organizations ;
        rdfsvitro-search:domainid            "organizations" ;
        vitro-search:PublicParameterisUriValues   true ;
        rdfsvitro-search:rangepublic        true .

:filter_persons  a         xsd:boolean .

search:defaultPublic
        avitro-search:Filter ;
        vitro-search:facetResults  true ;
        <http://www.w3.org/2002/07/owl#DatatypeProperty> , <http://www.w3.org/2002/07/owl#FunctionalProperty>vitro-search:filterField   :field_persons ;
        rdfs:domain   vitro-search:id      <https://vivoweb.org/ontology/vitro-search#FilterValue> ;
     "persons" ;
  rdfs:range      vitro-search:isUriValues    <http://www.w3.org/2001/XMLSchema#boolean>true ;
        rdfs:subPropertyOf  <http://www.w3.org/2002/07/owl#topDataProperty>vitro-search:public        true .

search:moreLimit
:field_dates  a        a            vitro-search:SearchField ;
       <http://www.w3.org/2002/07/owl#DatatypeProperty> , <http://www.w3.org/2002/07/owl#FunctionalProperty> ;
 vitro-search:indexField    "dates_drsim" .

:field_organizations  a            rdfsvitro-search:domainSearchField ;
        <https://vivoweb.org/ontology/vitro-search#Filter>vitro-search:indexField    "organizations_ss" ;
        vitro-search:multivalued   true .

:field_publication_year  rdfs:rangea          <http://www.w3.org/2001/XMLSchema#int>vitro-search:SearchField ;
        rdfs:subPropertyOf  <http://www.w3.org/2002/07/owl#topDataProperty>vitro-search:indexField    "publication_year_ss" .


Filters


Role based search filtering

...