<commit_before>.. _schemaparamsets:

=========================
Schema and Parameter Sets
=========================

MyTARDIS stores metadata as *Parameters*, which are grouped in to *Parameter Sets*, 
which are defined by a *Schema*.

===============
Managing Schema
===============

MyTARDIS currently relies on the in-built Django administrative interface for managing schema.  The administrative interface is accesible from a link similar to::

   http://localhost/admin/

Schema definitions are the combination of two tables, Schema and ParameterName.

The Schema record identifies the schema (*namespace*), with a ParameterName record for 
each attribute of the schema.  Other attributes of the parameter include the type, 
e.g. string, number, URL, date, enumerated list, etc., 
whether the parameter is searchable or not,
and if it is an enumerated list, the valid choices.<commit_msg>Fix heading level and clarify native protocol implementation<commit_after>.. _schemaparamsets:

=========================
Schema and Parameter Sets
=========================

MyTARDIS stores metadata as *Parameters*, which are grouped in to *Parameter Sets*, 
which are defined by a *Schema*.

---------------
Managing Schema
---------------

MyTARDIS currently relies on the in-built Django administrative interface for managing schema.  The administrative interface is accesible from a link similar to::

   http://localhost/admin/

Schema definitions are the combination of two tables, Schema and ParameterName.

The Schema record identifies the schema (*namespace*), with a ParameterName record for 
each attribute of the schema.  Other attributes of the parameter include the type, 
e.g. string, number, URL, date, enumerated list, etc., 
whether the parameter is searchable or not,
and if it is an enumerated list, the valid choices.
{'fraction_non_alphanumeric': 0.1365374112506827, 'fraction_numerical': 0.0, 'mean_word_length': 4.619631901840491, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2065447', 'n_tokens_mistral': 436, 'n_tokens_neox': 408, 'n_words': 226}