Template

Difference between revisions of "LexemeQueriesGenerator"

(Created page with "<div id="qglexems"></div>")
 
Line 1: Line 1:
 +
== New ==
 
<div id="qglexems"></div>
 
<div id="qglexems"></div>
 +
 +
 +
== Old ==
 +
<link rel="stylesheet" href="https://maxcdn.boots_trapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
 +
<form>
 +
  <div class="row">
 +
    <div class="col">
 +
      <label for="lemma">Lemma</label>
 +
      <input type="text" class="form-control" placeholder="lemma" id="lemma" maxlength="15" name="lemma" id="lemma" value="book">
 +
    </div>
 +
    <div class="col">
 +
      <div class="form-group">
 +
        <label for="source_language">Source language</label>
 +
        <select class="form-control" id="source_language" name="source_language">
 +
          <option value="en">English</option>
 +
          <option value="fr">French</option>
 +
          <option value="es">Spanish</option>
 +
          <option value="pt">Portuguese</option>
 +
          <option value="de">German</option>
 +
          <option value="it">Italian</option>
 +
        </select>
 +
      </div>
 +
    </div>
 +
    <div class="col">
 +
      <div class="form-group">
 +
        <label for="part_of_speech_tag">Part-of-speech tag</label>
 +
        <select class="form-control" id="part_of_speech_tag" name="part_of_speech_tag">
 +
          <option>Noun</option>
 +
          <option>Adjective</option>
 +
          <option>Adverb</option>
 +
          <option>Verb</option>
 +
        </select>
 +
      </div>
 +
    </div>
 +
  </div>
 +
 +
  <div class="row">
 +
    <div class="col">
 +
      <div class="form-group">
 +
        <label for="information_categories">Information to retrieve (if available)</label>
 +
        <select class="form-control" id="information_categories" name="information_categories">
 +
          <option value="1">Just look it up!</option>
 +
          <option value="2">Senses</option>
 +
          <option value="3">Senses & Definitions</option>
 +
          <option value="4">Senses, Deinitions & Examples</option>
 +
        </select>
 +
      </div>
 +
    </div>
 +
    <div class="col">
 +
      <div class="form-group">
 +
        <label for="translation_languages">Translation language (only with Wikidata)</label>
 +
        <select class="form-control" id="translation_languages" name="translation_languages">
 +
          <option value="null"></option>
 +
          <option value="en">English</option>
 +
          <option value="fr">French</option>
 +
          <option value="es">Spanish</option>
 +
          <option value="pt">Portuguese</option>
 +
          <option value="de">German</option>
 +
          <option value="it">Italian</option>
 +
        </select>
 +
      </div>
 +
    </div>
 +
  </div>
 +
 +
  <div class="form-group">
 +
    <label for="exampleFormControlSelect2">Specify your target SPARQL endpoint: </label>
 +
    <div class="form-check form-check-inline">
 +
      <input class="form-check-input" type="radio" name="target_SPARQL" id="Wikidata" checked>
 +
      <label class="form-check-label" for="Wikidata">Wikidata</label>
 +
    </div>
 +
    <div class="form-check form-check-inline">
 +
      <input class="form-check-input" type="radio" name="target_SPARQL" id="Dbnary">
 +
      <label class="form-check-label" for="Dbnary">Dbnary</label>
 +
    </div>
 +
    <div class="form-check form-check-inline">
 +
      <input class="form-check-input" type="radio" name="target_SPARQL" id="lingualibre">
 +
      <label class="form-check-label" for="lingualibre">LinguaLibre</label>
 +
    </div>
 +
  </div>
 +
 +
  <div class="form-group">
 +
    <div class="row">
 +
      <div class="col">
 +
        <button type="button" class="btn btn-primary" onclick="generateQuery()" id="generate_query">Generate</button>
 +
      </div>
 +
      <div class="col">
 +
        <div class="form-check">
 +
          <input type="checkbox" class="form-check-input" id="limit_100" name="limit_100">
 +
          <label class="form-check-label" for="limit_100">LIMIT 100 (for faster running)</label>
 +
        </div>
 +
      </div>
 +
    </div>
 +
  </div>
 +
 +
  <div class="form-group">
 +
    <!-- <label for="generated_sparql_query">Generated SPARQL query</label> -->
 +
    <textarea class="form-control bg-light" id="generated_sparql_query" rows="20" name="generated_sparql_query"></textarea>
 +
  </div>
 +
  <button type="button" class="btn btn-primary" id="run_query" onclick="runQuery()">Run the query!</button>
 +
</form>

Revision as of 10:28, 14 December 2021

New


Old

<link rel="stylesheet" href="https://maxcdn.boots_trapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> <form>

     <label for="lemma">Lemma</label>
     <input type="text" class="form-control" placeholder="lemma" id="lemma" maxlength="15" name="lemma" id="lemma" value="book">
       <label for="source_language">Source language</label>
       <select class="form-control" id="source_language" name="source_language">
         <option value="en">English</option>
         <option value="fr">French</option>
         <option value="es">Spanish</option>
         <option value="pt">Portuguese</option>
         <option value="de">German</option>
         <option value="it">Italian</option>
       </select>
       <label for="part_of_speech_tag">Part-of-speech tag</label>
       <select class="form-control" id="part_of_speech_tag" name="part_of_speech_tag">
         <option>Noun</option>
         <option>Adjective</option>
         <option>Adverb</option>
         <option>Verb</option>
       </select>
       <label for="information_categories">Information to retrieve (if available)</label>
       <select class="form-control" id="information_categories" name="information_categories">
         <option value="1">Just look it up!</option>
         <option value="2">Senses</option>
         <option value="3">Senses & Definitions</option>
         <option value="4">Senses, Deinitions & Examples</option>
       </select>
       <label for="translation_languages">Translation language (only with Wikidata)</label>
       <select class="form-control" id="translation_languages" name="translation_languages">
         <option value="null"></option>
         <option value="en">English</option>
         <option value="fr">French</option>
         <option value="es">Spanish</option>
         <option value="pt">Portuguese</option>
         <option value="de">German</option>
         <option value="it">Italian</option>
       </select>
   <label for="exampleFormControlSelect2">Specify your target SPARQL endpoint: </label>
     <input class="form-check-input" type="radio" name="target_SPARQL" id="Wikidata" checked>
     <label class="form-check-label" for="Wikidata">Wikidata</label>
     <input class="form-check-input" type="radio" name="target_SPARQL" id="Dbnary">
     <label class="form-check-label" for="Dbnary">Dbnary</label>
     <input class="form-check-input" type="radio" name="target_SPARQL" id="lingualibre">
     <label class="form-check-label" for="lingualibre">LinguaLibre</label>
       <button type="button" class="btn btn-primary" onclick="generateQuery()" id="generate_query">Generate</button>
         <input type="checkbox" class="form-check-input" id="limit_100" name="limit_100">
         <label class="form-check-label" for="limit_100">LIMIT 100 (for faster running)</label>
   <textarea class="form-control bg-light" id="generated_sparql_query" rows="20" name="generated_sparql_query"></textarea>
 <button type="button" class="btn btn-primary" id="run_query" onclick="runQuery()">Run the query!</button>

</form>