This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
to be placed in /[PROJECTS]/[PROJECT-NAME]/templates/tmpl1/ | |
requires: module and sign-up.html | |
--> | |
<div data-template="templates:init"> | |
<div data-template="templates:surround" data-template-with="page_index.html" data-template-at="content-container"> | |
<div data-template="usr:new"/> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Stylesheet imporved by hriebl! --> | |
<xsl:stylesheet | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:tei="http://www.tei-c.org/ns/1.0" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
version="2.0" | |
exclude-result-prefixes="xs tei" | |
xpath-default-namespace="http://www.tei-c.org/ns/1.0"> | |
<xsl:output method="xml" indent="yes" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
several useful XQuery snippets, mainly used with eXist-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>TG Rep - Publikationsliste</title> | |
</head> | |
<body> | |
<ol> | |
<li>Bierbaum, Otto Julius Stilpe. Ein Roman aus der Froschperspektive | |
(1865 - 1910)</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule"; | |
declare namespace rdfs="http://www.w3.org/2000/01/rdf-schema#"; | |
declare namespace ps="http://www.wikidata.org/prop/statement/"; | |
declare namespace wdt="http://www.wikidata.org/prop/direct/"; | |
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; | |
declare option exist:serialize "method=xhtml media-type=application/vnd.google-earth.kml+xml highlight-matches=none"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
let $url := xs:anyURI('https://www.conftool.pro/dhd2016/sessions.php'), | |
$persist:= false(), | |
$request-headers := (), | |
$node as node() := httpclient:get($url, $persist, $request-headers)//httpclient:body/*, | |
$origList := tokenize( | |
string-join( | |
$node//*[contains(@class, 'paper_author')]/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace tei="http://www.tei-c.org/ns/1.0"; | |
declare option exist:serialize "method=text media-type=text/plain omit-xml-declaration=yes"; | |
declare function local:recurse($node as node()*) as xs:string* { | |
for $n in $node | |
return( | |
'{' || | |
string-join( | |
('"name": "', $n/local-name(), '"', | |
if( not($n/*) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace tei="http://www.tei-c.org/ns/1.0"; | |
declare function local:magic($nodes as node()*) { | |
(:let $test:= console:log($nodes/local-name()):) | |
(:return:) | |
for $node in $nodes return | |
typeswitch($node) | |
case element(*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace ore="http://www.openarchives.org/ore/terms/"; | |
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; | |
declare namespace tgmd="http://textgrid.info/namespaces/metadata/core/2010"; | |
let $seq:= ("textgrid:jfsm.0", | |
"textgrid:jg0m.0", | |
"textgrid:jk7p.0", | |
"textgrid:jkhw.0", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
declare namespace tei="http://www.tei-c.org/ns/1.0"; | |
(: TextGrid CRUD | |
: Store nodes in the TextGrid Repository | |
: https://textgridlab.org/doc/services/submodules/tg-crud/docs/index.html#create | |
: :) | |
(: ESX-2 = productive :) |
OlderNewer