Template

LexemeQueriesGenerator

Revision as of 10:28, 14 December 2021 by Yug (talk | contribs)

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>