-
Notifications
You must be signed in to change notification settings - Fork 18
Example JSON LD Script tag
Jeff McKenna edited this page Apr 4, 2022
·
4 revisions
<script type="application/ld+json">
{
"@context": {
"@vocab": "https://schema.org/",
"geosparql": "http://www.opengis.net/ont/geosparql#"
},
"@id": "http://maspawio.net/layers/geonode%3Agazi_fishing_intensity",
"@type": "Dataset",
"geosparql:hasGeometry": {
"@type": "http://www.opengis.net/ont/sf#Polygon",
"geosparql:asWKT": {
"@type": "geosparql:wktLiteral",
"@value": "POLYGON((39.3 -4.649999999999997, 39.3 -4.19, 39.709999999999994 -4.19, 39.709999999999994 -4.649999999999997, 39.3 -4.649999999999997))"
},
"geosparql:crs": {
"@id": "http://www.opengis.net/def/crs/OGC/1.3/CRS84"
}
},
"description": "This data shows high-resolution maps on fishing behavior and target resources of artisanal fishers in Gazi Kenya. The resource was developed using participatory mapping of fishing grounds using a handheld GPS mounted on selected fishing vessels. To access this resource, please contact [email protected] or [email protected]",
"keywords": "fishing, Africa, East Africa, Kenya",
"name": "Fishing intensity Gazi",
"url": "http://maspawio.net/layers/geonode%3Agazi_fishing_intensity"
}
</script>
- @id and "url" should point to the front-end page for that dataset (such as http://maspawio.net/layers/geonode%3Agazi_fishing_intensity )
- use the schema.org validator to check your syntax: https://validator.schema.org/
- place into the "Code Snippet" tab and then click "Run Test"