Skip to content

Commit

Permalink
Added initial version of schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
metatype committed Sep 5, 2024
0 parents commit 2b007b3
Show file tree
Hide file tree
Showing 6 changed files with 3,280 additions and 0 deletions.
1,502 changes: 1,502 additions & 0 deletions schema/cache/cache-1.0.xsd

Large diffs are not rendered by default.

1,513 changes: 1,513 additions & 0 deletions schema/cache/cache-8.1.xsd

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions schema/jdbc/jdbc-1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<xsd:schema
targetNamespace="http://geode.apache.org/schema/jdbc"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">

<xsd:annotation>
<xsd:documentation><![CDATA[
XML schema for JDBC Connector Service in Geode.
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:jdbc="http://geode.apache.org/schema/jdbc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache
http://geode.apache.org/schema/cache/cache-1.0.xsd
http://geode.apache.org/schema/jdbc
http://geode.apache.org/schema/jdbc/jdbc-1.0.xsd"
version="1.0">
]]></xsd:documentation>
</xsd:annotation>
<xsd:element name="mapping">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="field-mapping" maxOccurs="unbounded" minOccurs="0">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute type="xsd:string" name="pdx-name" use="required"/>
<xsd:attribute type="xsd:string" name="pdx-type" use="required"/>
<xsd:attribute type="xsd:string" name="jdbc-name" use="required"/>
<xsd:attribute type="xsd:string" name="jdbc-type" use="required"/>
<xsd:attribute type="xsd:boolean" name="jdbc-nullable" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute type="xsd:string" name="data-source" use="required"/>
<xsd:attribute type="xsd:string" name="table" use="optional"/>
<xsd:attribute type="xsd:string" name="pdx-name" use="required"/>
<xsd:attribute type="xsd:string" name="ids" use="optional"/>
<xsd:attribute type="xsd:boolean" name="specified-ids" use="optional"/>
<xsd:attribute type="xsd:string" name="catalog" use="optional"/>
<xsd:attribute type="xsd:string" name="schema" use="optional"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
66 changes: 66 additions & 0 deletions schema/lucene/lucene-1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xsd:schema
targetNamespace="http://geode.apache.org/schema/lucene"
xmlns:gf="http://geode.apache.org/schema/cache"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">

<xsd:import
namespace="http://geode.apache.org/schema/cache"
schemaLocation="http://geode.apache.org/schema/cache/cache-1.0.xsd"/>

<xsd:annotation>
<xsd:documentation><![CDATA[
XML schema for Lucene indexes in Geode.
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:lucene="http://geode.apache.org/schema/lucene"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache
http://geode.apache.org/schema/cache/cache-1.0.xsd
http://geode.apache.org/schema/lucene
http://geode.apache.org/schema/lucene/lucene-1.0.xsd"
version="1.0">
]]></xsd:documentation>
</xsd:annotation>
<xsd:element name="index">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="field" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="analyzer" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="serializer" minOccurs="0" maxOccurs="1" type="gf:declarable-type">
<xsd:annotation>
<xsd:documentation>
A serializer controls how objects are converted to lucene documents
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
59 changes: 59 additions & 0 deletions schema/query-config-service/query-config-service-1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<xsd:schema
targetNamespace="http://geode.apache.org/schema/query-config-service"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">

<xsd:annotation>
<xsd:documentation><![CDATA[
XML schema for configuring the query-config-service in Geode.
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:query="http://geode.apache.org/schema/query-config-service"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache
http://geode.apache.org/schema/cache/cache-1.0.xsd
http://geode.apache.org/schema/query-config-service
http://geode.apache.org/schema/query-config-service/query-config-service-1.0.xsd"
version="1.0">
]]></xsd:documentation>
</xsd:annotation>
<xsd:element name="query-config-service">
<xsd:complexType>
<xsd:all>
<xsd:element name="method-authorizer" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="parameter" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute type="xsd:string" name="parameter-value" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute type="xsd:string" name="class-name" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:schema>
73 changes: 73 additions & 0 deletions schema/vectordb/vectordb-1.0.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<xsd:schema
targetNamespace="https://gemfire.dev/schema/vectordb"
xmlns:gf="http://geode.apache.org/schema/cache"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">

<xsd:import
namespace="http://geode.apache.org/schema/cache"
schemaLocation="http://geode.apache.org/schema/cache/cache-1.0.xsd"/>

<xsd:annotation>
<xsd:documentation><![CDATA[
XML schema for VectorDB Indexes in GemFire.
<cache
xmlns="http://geode.apache.org/schema/cache"
xmlns:vectordb="https://gemfire.dev/schema/vectordb"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://geode.apache.org/schema/cache
http://geode.apache.org/schema/cache/cache-1.0.xsd
https://gemfire.dev/schema/vectordb
https://gemfire.dev/schema/vectordb/vectordb-1.0.xsd"
version="1.0">
]]></xsd:documentation>
</xsd:annotation>
<xsd:element name="index">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="field" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="analyzer" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="config" minOccurs="0" maxOccurs="1" type="gf:declarable-type">
<xsd:annotation>
<xsd:documentation>
Configuration information for a VectorDB index
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="serializer" minOccurs="0" maxOccurs="1" type="gf:declarable-type">
<xsd:annotation>
<xsd:documentation>
A serializer controls how objects are converted to VectorDB documents
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>

0 comments on commit 2b007b3

Please sign in to comment.