Skip to content

Instantly share code, notes, and snippets.

@jiemakel
Forked from Abbe98/output.rdf
Last active February 15, 2016 21:22
Show Gist options
  • Save jiemakel/6cff0d78de47d7b098f7 to your computer and use it in GitHub Desktop.
Save jiemakel/6cff0d78de47d7b098f7 to your computer and use it in GitHub Desktop.
RDF example/dummy output from the OpenStreetMap API(OpenHistoricalMap).
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:ohmdm="http://schemas.openhistoricalmap.org/#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:owl="http://www.w3.org/2002/07/owl#">
<rdf:Description xmlns:tags="http://schemas.openhistoricalmap.org/tag#" xmlns:element="http://schemas.openhistoricalmap.org/element#" rdf:about="http://www.openhistoricalmap.org/way/198179683">
<ohmdm:createdDate>2015-03-06</ohmdm:createdDate>
<ohmdm:latestChangeDate>2015-04-11</ohmdm:latestChangeDate>
<ohmdm:elementType rdf:resource="http://schemas.openhistoricalmap.org/element#way"/>
<ohmdm:osmVersion>0.6</ohmdm:osmVersion>
<ohmdm:osm format="XML">http://www.openhistoricalmap.org/api/0.6/way/198179683</ohmdm:osm>
<ohmdm:changeset>1141</ohmdm:changeset>
<ohmdm:version>8</ohmdm:version>
<ohmdm:user>Abbe98</ohmdm:user>
<ohmdm:userId>204</ohmdm:userId>
<ohmdm:commonElement>barrier:city_wall</ohmdm:commonElement>
<ohmdm:commonElementLabel>City Wall</ohmdm:commonElementLabel>
<ohmdm:name>Visby Ringmur</ohmdm:name>
<ohmdm:name xml:lang="en">City wall of Visby</ohmdm:name>
<ohmdm:contains rdf:resource="http://www.openhistoricalmap.org/way/2083278729" />
<ohmdm:is_described_by rdf:resource="http://www.platsr.se/platsr/visa/plats/id/51000000025180" />
<ohmdm:is_described_by rdf:resource="http://www.platsr.se/platsr/visa/plats/id/51000000025120" />
</rdf:Description>
<rdf:Description rdf:about="http://www.openhistoricalmap.org/way/2083278729">
<ohmdm:nodeId>2083278729</ohmdm:nodeId>
<ohmdm:platform rdf:resource="http://schemas.openhistoricalmap.org/platforms#openhistoricalmap"/>
<ohmdm:format rdf:resource="http://schemas.openhistoricalmap.org/format#xml"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.platsr.se/platsr/visa/plats/id/51000000025180">
<ohmdm:platform rdf:resource="http://schemas.openhistoricalmap.org/platforms#platsr"/>
<ohmdm:format rdf:resource="http://schemas.openhistoricalmap.org/format#presentation"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.platsr.se/platsr/visa/plats/id/51000000025120">
<ohmdm:platform rdf:resource="http://schemas.openhistoricalmap.org/platforms#platsr"/>
<ohmdm:format rdf:resource="http://schemas.openhistoricalmap.org/format#presentation"/>
</rdf:Description>
</rdf:RDF>
@jiemakel
Copy link
Author

jiemakel commented Feb 6, 2016

@jiemakel
Copy link
Author

jiemakel commented Feb 6, 2016

The data as Turtle, which is the preferred human-readable serialization of RDF nowadays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment