Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

APIFunctionalitiesQuery (example)Result (example)
/tgn/v1/starts-with(.json)?q=beginning-of-some-place-name

Returns:

  • Place name
  • where the place is located
  • Getty ID
https://ref.de.dariah.eu/tgn/v1/starts-with?q=vagen


Code Block
languagexml
themeConfluence
<term id="tgn:7091421">
	<name>Vagen</name>
	<path>Bavaria | Germany | Europe | World</path>
</term>
<term id="tgn:7220304">
	<name>Vagenítion</name>
	<path>Ioánnina | Epirus | Greece | Europe | World</path>
</term>


/tgn/v1/starts-with(.json)?q=beginning-of-some-place-name

Returns:

  • Place name
  • where the place is located
  • Getty ID
https://ref.de.dariah.eu/tgn/v1/starts-with?q=vagen
Code Block
languagejs
themeConfluence
TBD
/tgn/v1/starts-with(.json)?q=beginning-of-some-place-name&georef=true-or-false

Returns:

  • Place name
  • where the place is located
  • Getty ID
  • Geo coordinates (longitude and latitude)
https://ref.de.dariah.eu/tgn/v1/starts-with?q=vagen&georef=true


Code Block
languagexml
themeConfluence
<term id="tgn:7091421">
	<name>Vagen</name>
	<path>Bavaria | Germany | Europe | World</path>
	<longitude>11.866667</longitude>
	<latitude>47.866667</latitude>
</term>
<term id="tgn:7220304">
	<name>Vagenítion</name>
	<variant>Vageníti</variant>
	<path>Ioánnina | Epirus | Greece | Europe | World</path>
	<longitude>20.712778</longitude>
	<latitude>39.645278</latitude>
</term>


/tgn/v1/starts-with(.json)?q=beginning-of-some-place-name&details=true-or-false

Returns:

  • Place name
  • where the place is located
  • Getty ID
  • Geo coordinates (longitude and latitude)
  • link to RDF data set of the place in TNG
https://ref.de.dariah.eu/tgn/v1/starts-with?q=vagen&details=true


Code Block
languagexml
themeConfluence
<term id="tgn:7220304">
	<match_name>Vagenítion</match_name>
	<preferred_name>Vagenítion</preferred_name>
	<variant>Vageníti</variant>
	<path>Ioánnina | Epirus | Greece | Europe | World</path>
	<link target="http://textgridlab.org/tgnsearch/tgnquery.xql?id=7220304"/>
	<rdf-link target="http://vocab.getty.edu/tgn/7220304.rdf"/>
</term>
<term id="tgn:7091421">
	<match_name>Vagen</match_name>
	<preferred_name>Vagen</preferred_name>
	<path>Bavaria | Germany | Europe | World</path>
	<longitude>11.866667</longitude>
	<latitude>47.866667</latitude>
	<link target="http://textgridlab.org/tgnsearch/tgnquery.xql?id=7091421"/>
	<rdf-link target="http://vocab.getty.edu/tgn/7091421.rdf"/>
</term>


...