Copyright © 2015 Open Geospatial Consortium.
89 JSON pointer is used to specify a specific node in a JSON encoded document while
JSON Path mimics most of the XPath query functionalities. In JSON pointer the last XML fragment will look like:
context: http:www.opengis.netfes2.0, PropertyIsLessThanOrEqualTo: {
ValueReference: PersonmailAddressAddressstreetNumber
, Literal: 10999
}
In JSON Path the last XML fragment will look like:
context: http:www.opengis.netfes2.0, PropertyIsLessThanOrEqualTo: {
ValueReference: .Person.mailAddress.Address.streetNumber
, Literal: 10999
}
Recommendation 33: Consider using either JSON Pointer or JSON Path in places where a XPath is required.
Target: WFS.SWG
10.5 Metadata in JSON
In this subclause we discuss aspects about the official metadata provided mainly in ISO 19115 data model by the producer of the geospatial resource and geospatial user feedback
produced by the consumer of the resource.
10.5.1 ISO Metadata in JSON
This aspect has not been developed in this testbed but some effort has been found in the web. One of the most significants is:
https:github.comadiwgmdBookblobmastermdjson_schemasREADME.md.
10.5.2 Geospatial User Feedback in JSON
During the review of the schema.org materials we realize that there is already an standard for user feedback in the Internet. Google is providing support to it to shop user reviews
directly on the search results page:
90
Copyright © 2015 Open Geospatial Consortium.
Figure 13: Google search result showing a rating average.
The rating comes from the actual page internal structure http:www.imdb.comtitlett0382625 encoded in Microdata that we show here in a
simplified form:
div itemtype=http:schema.orgAggregateRating itemscope itemprop=aggregateRating
Ratings: span itemprop=ratingValue6.5spanspan
itemprop=bestRating10spanspan from span itemprop=ratingCount278,569span users
Reviews: span itemprop=reviewCount1,943 userspan|
span itemprop=reviewCount291 criticspan| div
Figure 14: How IMDb presents user feedback to users
Indeed, Microdata is used everywhere in this page to define the movie itself, the director, etc as can be seen in this html fragment.
div id=pagecontent itemscope itemtype=http:schema.orgMovie
span class=itemprop itemprop=nameThe Da Vinci Codespan time itemprop=duration datetime=PT149M 149 mintime
meta itemprop=datePublished content=2006-05-19 div class=txt-block itemprop=director itemscope
itemtype=http:schema.orgPerson... divdiv