56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
|
# Sanity check for taxonomies automatically generated from a SKOS RDF/XML source.
|
||
|
# Author: Andrew Sales
|
||
|
# Date: 20161220
|
||
|
# Version: 0.3
|
||
|
# Comments:
|
||
|
# 20161220 [AS] Added search relevance prologue
|
||
|
|
||
|
default namespace = ""
|
||
|
namespace rel = 'http://rdf.bloomsbury.com/ssp/search#relevance'
|
||
|
|
||
|
start =
|
||
|
element taxonomy {
|
||
|
attribute id { text },
|
||
|
attribute name { text },
|
||
|
attribute releaseDate { xsd:date },
|
||
|
xmlBase?,
|
||
|
search-relevance-prologue?,
|
||
|
facet+
|
||
|
}
|
||
|
facet =
|
||
|
element facet {
|
||
|
attribute behaviour { string 'subject' }?,
|
||
|
(attribute xml:id { xsd:ID } | attribute xref{ xsd:IDREF }),
|
||
|
attribute sortAs { string }?,
|
||
|
xmlBase?,
|
||
|
(browse-display-atts|relevance-atts),
|
||
|
(facet
|
||
|
| element names {
|
||
|
element name {
|
||
|
attribute level { xsd:NCName },
|
||
|
attribute xml:lang{ xsd:language }?,
|
||
|
text
|
||
|
}+
|
||
|
})*
|
||
|
}
|
||
|
|
||
|
xmlBase = attribute xml:base{ xsd:anyURI }
|
||
|
|
||
|
browse-display-atts =
|
||
|
attribute suppressInBrowse { xsd:boolean }?,
|
||
|
attribute displayHint {'alphaSorted'}?
|
||
|
|
||
|
relevance-atts =
|
||
|
attribute rel:combinedMatchOnly{ xsd:boolean }?,
|
||
|
attribute rel:matchCombination{ xsd:IDREFS }?,
|
||
|
attribute rel:minimumMatchLevel{ xsd:int }?,
|
||
|
attribute rel:minimumMatches{ xsd:int }?
|
||
|
|
||
|
#defines the relevance of search results
|
||
|
search-relevance-prologue =
|
||
|
element rel:relatedContent{
|
||
|
element rel:ranking {
|
||
|
attribute type{ string 'relevance' }?,
|
||
|
facet+
|
||
|
}
|
||
|
}
|