• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » JSON-LD in Details

By Abhishek Ghosh August 29, 2014 6:37 am Updated on August 29, 2014

JSON-LD in Details

Advertisement

JSON-LD (JSON for Linked data) refer to the recommendations of the W3C, embedded linked data in the lightweight JSON Format. We already talked about JSON or JavaScript Object Notation. JSONP is JSON with padding. With JSON, we can easily fetch data and display in format we want, for example here is working feed of my Twitter. Possibly it is known to the reader that we can develop RESTful API for WordPress to get Posts, Post Excerpt as JSON. JSON-LD is used for representing Linked Data, Linked Data describes a method of publishing structured data to allow the web services and web applications to embed their data JSON format usually within HTML, for building Semantic Web.

Table of Contents

  • 1 Introduction
  • 2 Definitions and Concepts
  • 3 Classification
  • 4 Syntax
  • 5 Processing
  • 6 Go to End

 

Introduction to JSON-LD

 

Development of JSON-LD began in 2010 and in January 2014 adoption of the first version was published in documents. For the web publishing industry, embedding JSON data into HTML is interesting because it so the associated with simple usage of toolkit to retrieve data from databases. The developers tried to orient it as JSON is been used for data exchange. This is the conversion of software from JSON to JSON-LD intended to be as simple as possible.

Advertisement

---

JSON-LD behaves similar to JSON, HTML + RDFa, HTML Microdata or a micro format, programs which uses the conventional JSON are practically not affected by the extension to JSON-LD. At the same time it also allows for the enrichment (to become machine-interpretable), importance stands as the other method for semantic annotation.

However, the traditional of use of JSON is not the interface between man and machine, but the machine between each other. The separation of (typographic) markup and semantic data can even represent a simplification. JSON replaced XML off to XHTML. XML – Parser, RDF storage and SPARQL – are sometimes referred to as “overhead perceived in the Web environment”. Even handy formats from the RDF environment are hardly used as a base format in web protocols. JSON-LD is intended to solve the problems that could not be resolved with the other formats.

 

Definition and Classification of JSON-LD

 

Unlike the other serialization formats for Linked Data and RDF, JSON-LD remains in its flat shape preference entity. JSON-LD includes (compared with JSON) a standard convention for using IRIs (external) references and easy links (similar to extensions such as JSON Reference, but without the interpretation of the fragment identifier as JSON Pointer; JSON-LD follows RDF practices from this point of usage. It can also represent standardized data types and schema information from the RDF environment. It is true that JSON-LD has no own language or HTTP applications are available (such as JSON HAL or JSON Hyper Schema). However, such vocabularies for service or interface description includable. JSON-LD is not compatible with (the older) RDF / JSON. See also: Section predecessors and alternatives. Example :

Vim
1
2
3
4
5
6
7
8
9
10
11
{
   "id": "Subject (IRI)",
   "Predicate (IRI)": {
     "id": "Object (IRI)"
   }
   "Predicate (IRI)":
     Object (literal),
   "Predicate (IRI)": [
     Object, ...
   ]
}

 

Syntax of JSON-LD

 

Regarding the syntax of JSON applies – each JSON-LD-text is a valid JSON text (according to RFC 4627 ). Representing JSON texts conversely valid JSON-LD, the subject is mainly the first document. A JSON-LD-text must include a JSON object or a JSON array of such objects while newer versions of JSON and JSON parser also allow other JSON values ‹.

All names and key the name-value pairs must be unique per object. It must also be dispensed with the empty string as a name, because not all JSON implementations can handle this. All other syntax elements of JSON-LD can be realized via special JSON strings (called keywords ) that contains the character @ and thirteen previously (context,id,value,language, @ type,container,list,set,reverse,Index,Base,vocal,graph) known keywords. Particular importance is the “:” character string to predict the location (thus context-dependent than compact IRIs can be interpreted as an absolute IRI or as long as a custom definition for the string as a whole, this does not override).
In principle, the order of the pairs does not matter. Based on this, grammar includes various types of JSON objects (node ‹‹object, object value, object list, set object, language map, index map and context definition).

The basic and advanced concepts of JSON-LD in non-normative sections introduced by means of examples. The most formal definition consists of about eighty normative sentences in English.

 

Processing of JSON-LD

 

JSON-LD in Details

Regardless of the source of a JSON-LD-text, the same data can be interpreted as JSON-LD (in compact form) and expanded before being processed or parsed only as a simple JSON (as before migrating from JSON by JSON-LD). Various modules can also handle this differently. Example of a JavaScript environment (e.g. web browser ) :

Vim
1
2
3
4
5
// JSON text in the variable data
// Module A (original app without awareness of Linked Data)
var legacy = JSON. parse  ( data )
// Module B (later extension for Semantic Web)
var advanced =  (  new JsonLdProcessor ) . expand  ( JSON. parse  ( data ))

To embed JSON-LD in the HTML script element is recommended:

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script type="application/ld+json" id="json-ld-data">
{
  "@context": {
    "name": "http://xmlns.com/foaf/0.1/name",
    "homepage": {
      "@id": "http://xmlns.com/foaf/0.1/workplaceHomepage",
      "@type": "@id"
    },
    "Person": "http://xmlns.com/foaf/0.1/Person"
  },
  "@id": "http://abhishekghosh.pro",
  "@type": "Person",
  "name": "Abhishek Ghosh",
  "homepage": "https://thecustomizewindows.com/"
}
</script>

As for the vocabularies, we can use FOAF, Schema.org.

Tagged With json hyper schema alternatives , json-ld

This Article Has Been Shared 688 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to JSON-LD in Details

  • YouTube Cosmic Panda : A New Experience for Videos and Channels

    YouTube Cosmic Panda is a new thought from Google for giving the users a New Experience for Videos, Playlists, and Channels. YouTube Cosmic Panda has minimalistic design some what in the Google Plus line.

  • Google Translator Bengali Language Alpha is Available Now

    Google Translator Bengali Language Alpha is Available now. Like other Languages, now Bengali – the sixth most spoken Language in the World can be shared easily.

  • Podcast and Podcasting

    Podcast and Podcasting is broadcasting media files either as audio or video over internet and combination of the words Pod of iPod and Casting of Broadcasting.

  • Cloud Storage : A Standard That Can Help You

    Cloud Storage has grown its market with the advent of cloud computing and its spread has caused much confusion among computer users where a standard is a need.

  • What Camera Mode to Choose Depending on the Situation?

    What Camera Mode to Choose Depending on the Situation? How does each program mode works and how to use it? Do not fumble what Camera mode to choose.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023
  • Web Design Cookbook: Accessibility March 21, 2023
  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023

About This Article

Cite this article as: Abhishek Ghosh, "JSON-LD in Details," in The Customize Windows, August 29, 2014, March 22, 2023, https://thecustomizewindows.com/2014/08/json-ld-details/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT