From b6c04131dd30546d2e49c35ef62f905258d21c33 Mon Sep 17 00:00:00 2001 From: Florian Thiery Date: Fri, 17 Nov 2017 12:53:19 +0100 Subject: [PATCH] apidoc modified --- apidoc/README.md | 54 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/apidoc/README.md b/apidoc/README.md index 5b7fd18..4569c5f 100644 --- a/apidoc/README.md +++ b/apidoc/README.md @@ -11,7 +11,6 @@ package run; import org.linkedgeodesy.gazetteerjson.log.Logging; import org.linkedgeodesy.gazetteerjson.gazetteer.ChronOntology; -import org.linkedgeodesy.gazetteerjson.gazetteer.IDAIGazetteer; import java.io.IOException; import java.sql.SQLException; @@ -38,7 +37,10 @@ Die resultierende JSON-Struktur ist [hier](https://github.com/linkedgeodesy/geoj package run; import org.linkedgeodesy.gazetteerjson.log.Logging; +import org.linkedgeodesy.gazetteerjson.gazetteer.GeoNames; +import org.linkedgeodesy.gazetteerjson.gazetteer.GettyTGN; import org.linkedgeodesy.gazetteerjson.gazetteer.IDAIGazetteer; +import org.linkedgeodesy.gazetteerjson.gazetteer.Pleiades; import java.io.IOException; import java.sql.SQLException; @@ -66,7 +68,10 @@ Die resultierende JSON-Struktur ist [hier](https://github.com/linkedgeodesy/geoj package run; import org.linkedgeodesy.gazetteerjson.log.Logging; +import org.linkedgeodesy.gazetteerjson.gazetteer.GeoNames; +import org.linkedgeodesy.gazetteerjson.gazetteer.GettyTGN; import org.linkedgeodesy.gazetteerjson.gazetteer.IDAIGazetteer; +import org.linkedgeodesy.gazetteerjson.gazetteer.Pleiades; import java.io.IOException; import java.sql.SQLException; @@ -106,7 +111,10 @@ Die resultierende JSON-Struktur ist [hier](https://github.com/linkedgeodesy/geoj package run; import org.linkedgeodesy.gazetteerjson.log.Logging; +import org.linkedgeodesy.gazetteerjson.gazetteer.GeoNames; +import org.linkedgeodesy.gazetteerjson.gazetteer.GettyTGN; import org.linkedgeodesy.gazetteerjson.gazetteer.IDAIGazetteer; +import org.linkedgeodesy.gazetteerjson.gazetteer.Pleiades; import java.io.IOException; import java.sql.SQLException; @@ -123,3 +131,47 @@ public class Main { } } ``` + +### Linked Data + +```java +package run; + +import org.linkedgeodesy.gazetteerjson.log.Logging; +import java.io.IOException; +import java.sql.SQLException; +import org.linkedgeodesy.org.gazetteerjson.json.JSONLD; + +public class Main { + public static void main(String[] args) throws IOException, SQLException { + try { + JSONLD.getJSONLDGazetteerResource(json); + JSONLD.getJSONLDChronOntologyJSON(json); + JSONLD.getJSONLDGazetteerSearch(json); + } catch (Exception e) { + System.out.println(Logging.getMessageJSON(e, "org.linkedgeodesy.gazetteerjson.run.Main").toJSONString()); + } + } +} +``` + +```java +package run; + +import org.linkedgeodesy.gazetteerjson.log.Logging; +import java.io.IOException; +import java.sql.SQLException; +import org.linkedgeodesy.org.gazetteerjson.json.JSONLD; + +public class Main { + public static void main(String[] args) throws IOException, SQLException { + try { + JSONLD.getRDF(JSONLD.getJSONLDGazetteerResource(json), format); + JSONLD.getRDF(JSONLD.getJSONLDChronOntologyJSON(json), format); + JSONLD.getRDF(JSONLD.getJSONLDGazetteerSearch(json), format); + } catch (Exception e) { + System.out.println(Logging.getMessageJSON(e, "org.linkedgeodesy.gazetteerjson.run.Main").toJSONString()); + } + } +} +```