I'm trying to encode in JSON-LD the semantic information related to a website using Schema.org. The web site is very basic: it contains the home page, a gallery page with a list of images and the image detail page.
Reading the different examples from the Schema.org website, and having a look also at the "get started" section, it is not so easy to understand which information have to be provided in each page.
To clarify the question, I can provide a snippet of code that I'm trying to create, by deducing the needed information after reading the Schema.org documentation.
Below the list of specific questions:
- Does the information provided in the home page need to be repeated in all of the other pages? In this case, how the additional information shall be encoded (how to state that the page is a
ImageGallery
orImageObject
)? - How to match (in the image detail page) the image with a URI to semantically link the thing in the image to a real world thing (using for example a dbpedia.org/resource/URI)?
Example
HOME PAGE
{ "@context":"http://schema.org",
"@type":"WebSite",
"name":"Site name abc",
"alternateName":"ABC",
"description":"description",
"keywords":"keywords",
"inLanguage":"en",
"url":"http://www.thewebsiteurl.com",
"potentialAction":{
"@type":"SearchAction",
"target":"http://www.thewebsiteurl.com/find/{search_term_string}",
"query-input":"required name=search_term_string"
}
}
GALLERY PAGE
{ "@context":"http://schema.org",
"@type":"ImageGallery",
"description":"description",
"keywords":"keywords",
"associatedMedia":[
{
"@type":"ImageObject",
"contentUrl": "http://...../image1URL.jpg",
},
{
"@type":"ImageObject",
"contentUrl": "http://...../image2URL.jpg",
},
.....
]
}
IMAGE DETAIL PAGE
{
"@context": "http://schema.org",
"@type": "ImageObject",
"author":{
"@type": "Person",
"name":"abc"
},
"contentLocation":{
"@type": "Place",
"geo": {
"@type": "GeoCoordinates",
"latitude": "[latitude]",
"longitude": "[longitude]"
},
"name": "Place name"
},
"copyrightHolder":{
"@type": "Organization",
"email": "info@example.mail",
"url" : "http://www.thewebsiteurl.com"
},
"contentUrl": "http://...../image1URL.jpg",
"datePublished": "[date]",
"description": "description",
"keywords":"keywords",
"name": "Image name",
"exifData":[
{
"@type": "PropertyValue",
"name": "Exposure Time",
"value": "1/10 sec."
},
.....
]
}