<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- Revision history
2021-06-06  XSD definition for B2FIND schema v2.0
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://b2find.eudat.eu/schema/b2f/2.0"
  targetNamespace="http://b2find.eudat.eu/schema/b2f/2.0" attributeFormDefault="unqualified"
  elementFormDefault="qualified" xml:lang="EN">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace"
    schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>

  <xs:element name="resource">
    <xs:annotation>
      <xs:documentation>Root element of a single record.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:all>

        <!-- General information -->
        <xs:element name="community" type="xs:string" minOccurs="1" maxOccurs="1">
          <xs:annotation>
            <xs:documentation>The scientific community, Research Infrastructure, Project or Data provider from which B2FIND harvests the metadata.</xs:documentation>
          </xs:annotation>
        </xs:element>

        <xs:element name="titles" minOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="title" type="xs:string" minOccurs="1" maxOccurs="unbounded">
                <xs:annotation>
                  <xs:documentation>A name or title by which a resource is known.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence><commit_msg>updated community to optional.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- Revision history
2021-06-06  XSD definition for B2FIND schema v2.0
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://b2find.eudat.eu/schema/b2f/2.0"
  targetNamespace="http://b2find.eudat.eu/schema/b2f/2.0" attributeFormDefault="unqualified"
  elementFormDefault="qualified" xml:lang="EN">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace"
    schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>

  <xs:element name="resource">
    <xs:annotation>
      <xs:documentation>Root element of a single record.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:all>

        <!-- General information -->
        <xs:element name="community" type="xs:string" minOccurs="0" maxOccurs="1">
          <xs:annotation>
            <xs:documentation>The scientific community, Research Infrastructure, Project or Data provider from which B2FIND harvests the metadata.</xs:documentation>
          </xs:annotation>
        </xs:element>

        <xs:element name="titles" minOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="title" type="xs:string" minOccurs="1" maxOccurs="unbounded">
                <xs:annotation>
                  <xs:documentation>A name or title by which a resource is known.</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
{'fraction_non_alphanumeric': 0.15497553017944535, 'fraction_numerical': 0.03197389885807504, 'mean_word_length': 3.039525691699605, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 2, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 12}, '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': '6336088', 'n_tokens_mistral': 1023, 'n_tokens_neox': 948, 'n_words': 170}