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

Support export of schema.org JSON-LD formats #155

Open
ronaldtse opened this issue Jan 8, 2021 · 2 comments
Open

Support export of schema.org JSON-LD formats #155

ronaldtse opened this issue Jan 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Member

https://schema.org/DefinedTerm
https://schema.org/DefinedTermSet

Schema.org supports the DefinedTerm and DefinedTermSet structured data objects.

DefinedTerm sample:

{
 "@context": "https://schema.org/",
 "@type": "DefinedTerm",
 "name": "Shoe Machine Operators and Tenders",
 "termCode": "51-6042.00",
 "description": "Operate or tend a variety of machines to join, decorate, reinforce, or finish shoes and shoe parts.",
 "inDefinedTermSet": "http://onetonline.org"
}

DefinedTermSet sample:

[
        {
                "@context": "https://schema.org/"
        },
        {
                "@type": ["DefinedTermSet","Book"],
                "@id": "http://openjurist.org/dictionary/Ballentine",
                "name": "Ballentine's Law Dictionary"
        },
        {
                "@type": "DefinedTerm",
                "@id": "http://openjurist.org/dictionary/Ballentine/term/calendar-year",
                "name": "calendar year",
                "description": "The period from January 1st to December 31st, inclusive, of any year.",
                "inDefinedTermSet": "http://openjurist.org/dictionary/Ballentine"
        },
        {
                "@type": "DefinedTerm",
                "@id": "http://openjurist.org/dictionary/Ballentine/term/schema",
                "name": "schema",
                "description": "A representation of a plan or theory in the form of an outline or model.",
                "inDefinedTermSet": "http://openjurist.org/dictionary/Ballentine"
        }
]

We could:

  • Export schema.org formats of individual terms
  • Include such export inside the generated HTML
@ronaldtse ronaldtse added the enhancement New feature or request label Jan 8, 2021
@strogonoff
Copy link
Contributor

This should be another export format in addition to RDF, right?

@ronaldtse
Copy link
Member Author

Yes. Schema.org data structures can also be represented in RDF but these two objects (DefinedTerm, DefinedTermSet) only have examples available in JSON-LD. These are not "final" schema.org structures.

DefinedTerm corresponds to a single concept in a specific language

field name description
inDefinedTermSet URL of collection
termCode human-readable ID of concept/term
additionalType null
alternateName synonyms
description definition + Notes/Examples
disambiguatingDescription
identifier URN/ID of concept/term
image image for concept
mainEntityOfPage URL of term (applicable when used outside of site)
name designation of concept
potentialAction null
sameAs relations for "identical"
subjectOf URL of collection
url URL of concept

DefinedTermSet corresponds to a single "concept register" of a specific language

field name description
hasDefinedTerm the DefinedTerm data
name Name of collection
abstract Description
acquireLicensePage URL to copyright page
author URL to Author/About page
citation Some text about citation
copyrightHolder Author information
copyrightNotice URL to copyright page
copyrightYear year
dateCreated DateTime string of creation
dateModified DateTime string of last modified
datePublished DateTime string of publication
inLanguage BCP47 language code
license URL to license
publisher Publisher
usageInfo URL to about page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants