Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use json-ld for document description #38

Open
Tpt opened this issue Mar 15, 2016 · 4 comments
Open

Use json-ld for document description #38

Tpt opened this issue Mar 15, 2016 · 4 comments

Comments

@Tpt
Copy link

Tpt commented Mar 15, 2016

I'm not sure if it is relevant but it may be interesting to use json-ld [1] for document description, may be even with the schema.org [2] vocabulary.

For example https://en.wikipedia.org/wiki/Jean-François_Champollion could be represented by (in an amazing future when Common search will be able to guess page topics):

{
  "@context": "http://schema.org",
  "@type": "WebPage",
  "@id": "https://en.wikipedia.org/wiki/Jean-François_Champollion",
  "name": "Jean-François Champollion - Wikipedia, the free encyclopedia",
  "description": "Jean-François Champollion (a.k.a. Champollion le jeune; 23 December 1790 – 4 March 1832) was a French scholar, philologist and orientalist",
  "inLanguage": "en",
  "image": "//upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Leon_Cogniet_-_Jean-Francois_Champollion.jpg/220px-Leon_Cogniet_-_Jean-Francois_Champollion.jpg",
  "dateModified": "2016-03-01T14:47:00",
  "fileFormat": "text/html",
  "mainEntity":{
    "@type": "Person",
    "@id": "http://www.wikidata.org/entity/Q260",
    "name": "Jean-François Champollion"
  }
}

[1] http://json-ld.org
[2] http://schema.org

@sylvinus
Copy link
Contributor

Thanks @Tpt!

Where in the pipeline do you think such a description would make sense? As output of an API?

@Tpt
Copy link
Author

Tpt commented Mar 17, 2016

Yes, it would be very nice as API output but it also could be used as the documents format inside of Elasticsearch.

@sylvinus
Copy link
Contributor

Ok, let's keep it in mind for the API!

For Elasticsearch I don't think there would be any benefit. We should optimize for Elasticsearch storage and that will look very different from json-ld.

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

No branches or pull requests

3 participants