Skip to content

Commit

Permalink
apidoc modified
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Thiery committed Nov 17, 2017
1 parent c4d4bd2 commit b6c0413
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion apidoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand All @@ -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());
}
}
}
```

0 comments on commit b6c0413

Please sign in to comment.