45 lines
1.8 KiB
XML
45 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
OpenSearch Relevance Extension 1.0 Draft 1 XML Schema
|
|
Copyright (c) 2021 ~lucidiot
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, version 3.
|
|
|
|
This program is distributed in the hope that it will be useful, but
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
This file was derived from the OpenSearch Relevance Extension 1.0 Draft 1 specification at
|
|
<https://github.com/dewitt/opensearch/blob/8446769af24e313f308beeb590173c1aca57de9f/mediawiki/Specifications/OpenSearch/Extensions/Relevance/1.0/Draft%201.wiki>
|
|
-->
|
|
<xs:schema
|
|
targetNamespace="http://a9.com/-/opensearch/extensions/relevance/1.0/"
|
|
elementFormDefault="qualified"
|
|
xmlns="http://a9.com/-/opensearch/extensions/relevance/1.0/"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
>
|
|
<xs:simpleType name="Score">
|
|
<xs:annotation>
|
|
<xs:documentation>
|
|
Contains a string indicating a relative assessment of relevance
|
|
for a particular search result with respect to the search query.
|
|
Decimal values less than 0 should be considered equal to 0.
|
|
Decimal values greater than 1 should be considered equal to 1.
|
|
Unparseable or empty values can be ignored by the client.
|
|
</xs:documentation>
|
|
</xs:annotation>
|
|
<xs:restriction base="xs:decimal">
|
|
<xs:minInclusive value="0" />
|
|
<xs:maxInclusive value="1" />
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:element name="score" type="Score" />
|
|
</xs:schema>
|