diff --git a/common/README.rb b/common/README.rb deleted file mode 100644 index e69de29b..00000000 diff --git a/common/algorithm-terms.html b/common/algorithm-terms.html deleted file mode 100644 index 3cc56e8f..00000000 --- a/common/algorithm-terms.html +++ /dev/null @@ -1,58 +0,0 @@ -
-
active graph
- The name of the currently active graph that the processor should use when - processing.
-
active object
- The currently active object that the processor should use when - processing.
-
active property
- The currently active property or keyword that the processor - should use when processing. The active property is represented in - the original lexical form, which is used for finding coercion mappings in - the active context.
-
active subject
- The currently active subject that the processor should use when - processing.
-
explicit inclusion flag
- A flag specifying that for properties to be included in the output, they - must be explicitly declared in the matching frame.
-
framing state
- A dictionary containing values for the - object embed flag, the - require all flag, the - explicit inclusion flag, and the - omit default flag.
-
input frame
- The initial Frame provided to the framing algorithm.
-
JSON-LD input
- The JSON-LD data structure that is provided as input to the algorithm.
-
JSON-LD output
- The JSON-LD data structure that is produced as output by the algorithm.
-
map of flattened subjects
- A map of subjects that is the result of the - Node Map Generation algorithm.
-
object embed flag
- A flag specifying that node objects should be directly embedded in the output, - instead of being referred to by their IRI.
-
omit default flag
- A flag specifying that properties that are missing from the - JSON-LD input, but present in the input frame - should be omitted from the output.
-
omit graph flag
- A flag that determines if framing output is always contained within a - @graph member, or only if required to represent multiple node objects.
-
processor state
- The processor state, which includes the active - context, active subject, and - active property. The processor state is managed - as a stack with elements from the previous processor state - copied into a new processor state when entering a new - JSON object.
-
promise
- A promise is an object that represents the eventual result of a single asynchronous operation. - Promises are defined in [[ECMASCRIPT]].
-
require all flag
- A flag specifying that all properties present in the input frame - MUST either have a default value or be present in the JSON-LD - input for the frame to match.
-
diff --git a/common/common.js b/common/common.js deleted file mode 100644 index 9a4a2361..00000000 --- a/common/common.js +++ /dev/null @@ -1,292 +0,0 @@ -/* globals omitTerms, respecConfig, $, require */ -/* JSON-LD Working Group common spec JavaScript */ -// We should be able to remove terms that are not actually -// referenced from the common definitions -// -// Add class "preserve" to a definition to ensure it is not removed. -// -// the termlist is in a block of class "termlist", so make sure that -// has an ID and put that ID into the termLists array so we can -// interrogate all of the included termlists later. -const termNames = [] ; -const termLists = [] ; -const termsReferencedByTerms = [] ; - -function restrictReferences(utils, content) { - const base = document.createElement("div"); - base.innerHTML = content; - - // New new logic: - // - // 1. build a list of all term-internal references - // 2. When ready to process, for each reference INTO the terms, - // remove any terms they reference from the termNames array too. - const noPreserve = base.querySelectorAll("dfn:not(.preserve)"); - for (const item of noPreserve) { - const $t = $(item) ; - const titles = $t.getDfnTitles(); - const n = $t.makeID("dfn", titles[0]); - if (n) { - termNames[n] = $t.parent(); - } - } - - const $container = $(".termlist", base) ; - const containerID = $container.makeID("", "terms") ; - termLists.push(containerID) ; - return (base.innerHTML); -} - -// add a handler to come in after all the definitions are resolved -// -// New logic: If the reference is within a 'dl' element of -// class 'termlist', and if the target of that reference is -// also within a 'dl' element of class 'termlist', then -// consider it an internal reference and ignore it. -require(["core/pubsubhub"], (respecEvents) => { - "use strict"; - respecEvents.sub('end', (message) => { - if (message === 'core/link-to-dfn') { - // all definitions are linked; find any internal references - const internalTerms = document.querySelectorAll(".termlist a.internalDFN"); - for (const item of internalTerms) { - const idref = item.getAttribute('href').replace(/^#/,"") ; - if (termNames[idref]) { - // this is a reference to another term - // what is the idref of THIS term? - const def = item.closest('dd'); - if (def) { - const tid = def.previousElementSibling - .querySelector('dfn') - .getAttribute('id'); - if (tid) { - if (termsReferencedByTerms[tid] === undefined) termsReferencedByTerms[tid] = []; - termsReferencedByTerms[tid].push(idref); - } - } - } - } - - // clearRefs is recursive. Walk down the tree of - // references to ensure that all references are resolved. - const clearRefs = (theTerm) => { - if (termsReferencedByTerms[theTerm] ) { - for (const item of termsReferencedByTerms[theTerm]) { - if (termNames[item]) { - delete termNames[item]; - clearRefs(item); - } - } - }; - // make sure this term doesn't get removed - if (termNames[theTerm]) { - delete termNames[theTerm]; - } - }; - - // now termsReferencedByTerms has ALL terms that - // reference other terms, and a list of the - // terms that they reference - const internalRefs = document.querySelectorAll("a.internalDFN"); - for (const item of internalRefs) { - const idref = item.getAttribute('href').replace(/^#/,"") ; - // if the item is outside the term list - if (!item.closest('dl.termlist')) { - clearRefs(idref); - } - } - - // delete any terms that were not referenced. - for (const term in termNames) { - const $p = $("#"+term); - if ($p.length > 0) { - const tList = $p.getDfnTitles(); - $p.parent().next().remove(); // remove dd - $p.remove(); // remove dt - for (const item of tList) { - if (respecConfig.definitionMap[item]) { - delete respecConfig.definitionMap[item]; - } - } - } - } - } - }); -}); - -/* -* -* Replace github.io references to /TR references. -* The issue is as follows: when several specs are developed in parallel, it is a good idea -* to use, for mutual references, the github.io URI-s. That ensures that the editors' drafts are always -* correct in terms of mutual references. -* -* However, when publishing the documents, all those references must be exchanged against the final, /TR -* URI-s. That process, when done manually, is boring and error prone. This script solves the issue: -* -* * Create a separate file with the 'conversions' array. See, e.g., https://github.com/w3c/csvw/blob/gh-pages/local-biblio.js -* for an example. -* * Include a reference to that file and this to the respec code, after the inclusion of respec. E.g.: -* ``` -* -* -* -* ``` -* -* This function will be automatically executed when the respec source is saved in an (X)HTML file. -* Note that -* -* * Links in the header part will *not* be changed. That part is usually generated automatically, and the reference to the -* editor's draft must stay unchanged -* * The text content of an element will also be converted (if needed). This means that the reference list may also -* use include the github.io address (as it should...) -* -*/ -require(["core/pubsubhub"], (respecEvents) => { - "use strict"; - respecEvents.sub('beforesave', (documentElement) => { - for (const anchor of document.querySelectorAll("a[href]")) { - const dd = anchor.closest('dd'); - - // Don't replace specific anchors - if (dd) { - const dt = dd.previousElementSibling; - if (dt.textContent.match(/Latest editor|Test suite|Implementation report/)) return; - } - if (anchor.closest('section.preserve')) return; - - if (anchor.href === undefined) return; - - for (const toReplace in jsonld.conversions) { - if (anchor.href.indexOf(toReplace) !== -1) { - const replacement = jsonld.conversions[toReplace]; - const newHref = anchor.href.replace(toReplace, replacement); - anchor.setAttribute('href', newHref); - if (anchor.textContent().indexOf(toReplace) !== -1) { - anchor.innerText = anchor.textContent().replace(toReplace, replacement); - } - } - } - } - }); -}); - -/* -* Implement tabbed examples. -*/ -require(["core/pubsubhub"], (respecEvents) => { - "use strict"; - respecEvents.sub('end-all', (documentElement) => { - // Add example button selection logic - for (const button of document.querySelectorAll(".ds-selector-tabs .selectors button")) { - button.onclick = () => { - const ex = button.closest(".ds-selector-tabs"); - ex.querySelector("button.selected").classList.remove("selected"); - ex.querySelector(".selected").classList.remove("selected"); - button.classList.add('selected'); - ex.querySelector("." + button.dataset.selects).classList.add("selected"); - } - } - - // Add playground links - for (const link of document.querySelectorAll("a.playground")) { - let pre; - if (link.dataset.resultFor) { - // Referenced pre element - pre = document.querySelector(link.dataset.resultFor + ' > pre'); - } else { - // First pre element of aside - pre = link.closest("aside").querySelector("pre"); - } - const content = unComment(document, pre.textContent) - .replace(/\*\*\*\*/g, '') - .replace(/####([^#]*)####/g, ''); - link.setAttribute('aria-label', 'playground link'); - link.innerText = "Open in playground"; - - // startTab defaults to "expand" - const linkQueryParams = { - startTab: "tab-expand", - "json-ld": content - } - - if (link.dataset.compact !== undefined) { - linkQueryParams.startTab = "tab-" + "compacted"; - linkQueryParams.context = '{}'; - } - - if (link.dataset.flatten !== undefined) { - linkQueryParams.startTab = "tab-" + "flattened"; - linkQueryParams.context = '{}'; - } - - if (link.dataset.frame !== undefined) { - linkQueryParams.startTab = "tab-" + "framed"; - const frameContent = unComment(document, document.querySelector(link.dataset.frame + ' > pre').innerText) - .replace(/\*\*\*\*/g, '') - .replace(/####([^#]*)####/g, ''); - linkQueryParams.frame = frameContent; - } - - // Set context - if (link.dataset.context) { - const contextContent = unComment(document, document.querySelector(link.dataset.context + ' > pre').innerText) - .replace(/\*\*\*\*/g, '') - .replace(/####([^#]*)####/g, ''); - linkQueryParams.context = contextContent; - } - - link.setAttribute('href', - 'https://json-ld.org/playground-dev/#' + - Object.keys(linkQueryParams).map(k => `${encodeURIComponent(k)}=${encodeURIComponent(linkQueryParams[k])}`) - .join('&')); - - // Wrap in a button - const button = document.createElement('button'); - link.parentNode.insertBefore(button, link); - button.appendChild(link); - } - - // Add highlighting and remove comment from pre elements - for (const pre of document.querySelectorAll("pre")) { - // First pre element of aside - const content = pre.innerHTML - .replace(/\*\*\*\*([^*]*)\*\*\*\*/g, '$1') - .replace(/####([^#]*)####/g, '$1'); - pre.innerHTML = content; - } - }); -}); - -function _esc(s) { - return s.replace(/&/g,'&') - .replace(/>/g,'>') - .replace(/"/g,'"') - .replace(/ s.trim()).map(s => s.search(/[^\s]/)); - const leastIndent = Math.min(...indents); - return lines.map(s => s.slice(leastIndent)).join("\n"); -} - -function updateExample(doc, content) { - // perform transformations to make it render and prettier - return _esc(reindent(unComment(doc, content))); -} - - -function unComment(doc, content) { - // perform transformations to make it render and prettier - return content - .replace(//, '') - .replace(/< !--/g, ''); -} diff --git a/common/extract-examples.rb b/common/extract-examples.rb deleted file mode 100755 index d3421dec..00000000 --- a/common/extract-examples.rb +++ /dev/null @@ -1,624 +0,0 @@ -#!/usr/bin/env ruby -# Extracts examples from a ReSpec document, verifies that example titles are unique. Numbering attempts to replicate that used by ReSpec. Examples in script elements, which are not visibile, may be used for describing the results of related examples -# -# Transformations from JSON-LD -# - @data-frame identifies the title of the frame used to process the example -# - @data-frame-for identifies the source to apply this frame to, verifies that the no errors are encountered -# - @data-context identifies the title of the context used to process the example -# - @data-context-for identifies the source to apply this context to, verifies that the no errors are encountered -# - @data-result-for identifies the title of the source which should result in the content. May be used along with @data-frame or @data-context -# - @data-options indicates the comma-separated option/value pairs to pass to the processor -require 'getoptlong' -require 'json' -require 'nokogiri' -require 'linkeddata' -require 'fileutils' -require 'colorize' -require 'yaml' - -PREFIXES = { - dc: "http://purl.org/dc/terms/", - cred: "https://w3id.org/credentials#", - ex: "http://example.org/", - foaf: "http://xmlns.com/foaf/0.1/", - prov: "http://www.w3.org/ns/prov#", - rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#", - schema: "http://schema.org/", - xsd: "http://www.w3.org/2001/XMLSchema#" -} -example_dir = yaml_dir = verbose = number = nil - -opts = GetoptLong.new( - ["--example-dir", GetoptLong::REQUIRED_ARGUMENT], - ["--yaml-dir", GetoptLong::REQUIRED_ARGUMENT], - ["--verbose", '-v', GetoptLong::NO_ARGUMENT], - ["--number", '-n', GetoptLong::REQUIRED_ARGUMENT], -) -opts.each do |opt, arg| - case opt - when '--example-dir' then example_dir = arg && FileUtils::mkdir_p(arg) - when '--yaml-dir' then yaml_dir = arg && FileUtils::mkdir_p(arg) - when '--verbose' then verbose = true - when '--number' then number = arg.to_i - end -end - -num_errors = 0 - -# Justify and remove leading and trailing blank lines from str -# Remove highlighting and commented out sections -def justify(str) - str = str. - sub(/^\s*\s*$/, ''). - gsub('****', ''). - gsub(/####([^#]*)####/, '') - - # remove blank lines - lines = str.split("\n").reject {|s| s =~ /\A\s*\z/} - - # count minimum leading space - leading = lines.map {|s| s.length - s.lstrip.length}.min - - # remove leading blank space - lines.map {|s| s[leading..-1]}.join("\n") -end - -def table_to_dataset(table) - repo = RDF::Repository.new - titles = table.xpath('thead/tr/th/text()').map(&:to_s) - - table.xpath('tbody/tr').each do |row| - gname, subject, predicate, object = nil - row.xpath('td/text()').map(&:to_s).each_with_index do |cell, ndx| - case titles[ndx] - when 'Graph' - gname = case cell - when nil, '', " " then nil - when /^_:/ then RDF::Node.intern(cell[2..-1]) - else RDF::Vocabulary.expand_pname(cell) - end - when 'Subject' - subject = case cell - when /^_:/ then RDF::Node.intern(cell[2..-1]) - else RDF::Vocabulary.expand_pname(cell) - end - when 'Property' - predicate = RDF::Vocabulary.expand_pname(cell) - when 'Value' - object = case cell - when /^_:/ then RDF::Node.intern(cell[2..-1]) - when /^\w+:/ then RDF::Vocabulary.expand_pname(cell) - else RDF::Literal(cell) - end - when 'Value Type' - case cell - when /IRI/, '-', /^\s*$/, " " - else - # We might think something was an IRI, but determine that it's not - object = RDF::Literal(object.to_s) unless object.literal? - object.datatype = RDF::Vocabulary.expand_pname(cell) - end - when 'Language' - case cell - when '-', /^\s*$/ - else - # We might think something was an IRI, but determine that it's not - object = RDF::Literal(object.to_s) unless object.literal? - object.datatype = RDF.langString - object.language = cell.to_sym - end - end - end - repo << RDF::Statement.new(subject, predicate, object, graph_name: gname) - end - - repo -end - -def dataset_to_table(repo) - has_graph = !repo.graph_names.empty? - litereals = repo.objects.select(&:literal?) - has_datatype = litereals.any?(&:datatype?) - has_language = litereals.any?(&:language?) - positions = {} - - head = [] - head << "Graph" if has_graph - head += %w(Subject Property Value) - - if has_datatype && has_language - head += ["Value Type", "Language"] - positions = {datatype: (has_graph ? 4 : 3), language: (has_graph ? 5 : 4)} - elsif has_datatype - positions = {datatype: (has_graph ? 4 : 3)} - head << "Value Type" - elsif has_language - positions = {language: (has_graph ? 4 : 3)} - head << "Language" - end - - rows = [] - repo.each_statement do |statement| - row = [] - row << (statement.graph_name || " ").to_s if has_graph - row += statement.to_triple.map do |term| - if term.uri? && RDF::Vocabulary.find_term(term) - RDF::Vocabulary.find_term(term).pname - else - term.to_s - end - end - - if has_datatype - if statement.object.literal? && statement.object.datatype? - row[positions[:datatype]] = RDF::Vocabulary.find_term(statement.object.datatype).pname - else - row[positions[:datatype]] = " " - end - end - - if has_language - if statement.object.literal? && statement.object.language? - row[positions[:language]] = statement.object.language.to_s - else - row[positions[:language]] = " " - end - end - - rows << row - end - - "\n " + - head.map {|cell| ""}.join("") + - "\n \n " + - rows.map do |row| - "" + row.map {|cell| ""}.join("") + "" - end.join("\n ") + "\n \n
#{cell}
#{cell}
" -end - -ARGV.each do |input| - $stderr.puts "\ninput: #{input}" - example_number = 1 # Account for imported Example 1 in typographical conventions - examples = {} - errors = [] - warnings = [] - - File.open(input, "r") do |f| - doc = Nokogiri::HTML.parse(f.read) - doc.css(".example, .illegal-example").each do |element| - error = nil - warn = nil - example_number += 1 if %w(pre aside).include?(element.name) - - if (title = element.attr('title').to_s).empty? - error = "Example #{example_number} at line #{element.line} has no title" - end - - if examples[title] - warn = "Example #{example_number} at line #{element.line} uses duplicate title: #{title}" - end - - def save_example(examples:, element:, title:, example_number:, error:, warn:) - content = justify(element.inner_html) - - ext = case element.attr('data-content-type') - when nil, '', 'application/ld+json' then "jsonld" - when 'application/json' then 'json' - when 'application/ld-frame+json' then 'jsonldf' - when 'application/n-quads', 'nq' then 'nq' - when 'text/html', 'html' then 'html' - when 'text/turtle', 'ttl' then 'ttl' - when 'application/trig', 'trig' then 'trig' - else 'txt' - end - - # Capture HTML table - if element.name == 'table' - ext, content = 'table', element - end - - fn = "example-#{"%03d" % example_number}-#{title.gsub(/[^\w]+/, '-')}.#{ext}" - examples[title] = { - title: title, - filename: fn, - content: content, - content_type: element.attr('data-content-type'), - number: example_number, - ext: ext, - context_for: element.attr('data-context-for'), - context: element.attr('data-context'), - base: element.attr('data-base'), - ignore: element.attr('data-ignore'), - flatten: element.attr('data-flatten'), - compact: element.attr('data-compact'), - fromRdf: element.attr('data-from-rdf'), - toRdf: element.attr('data-to-rdf'), - frame_for: element.attr('data-frame-for'), - frame: element.attr('data-frame'), - result_for: element.attr('data-result-for'), - options: element.attr('data-options'), - target: element.attr('data-target'), - element: element.name, - line: element.line, - warn: warn, - error: error, - } - #puts "example #{example_number}: #{content}" - end - - if element.name == 'aside' - # If element is aside, look for sub elements with titles - element.css('.original, .compacted, .expanded, .flattened, .turtle, .trig, .statements, .graph, .context, .frame').each do |sub| - cls = (%w(original compacted expanded flattened turtle trig statements graph context frame) & sub.classes).first - save_example(examples: examples, - element: sub, - title: "#{title}-#{cls}", - example_number: example_number, - error: error, - warn: warn) - end - else - # otherwise, this is the example - save_example(examples: examples, - element: element, - title: title, - example_number: example_number, - error: error, - warn: warn) - end - end - end - - # Process API functions for - examples.values.sort_by {|ex| ex[:number]}.each do |ex| - next if number && number != ex[:number] - - xpath = '//script[@type="application/ld+json"]' - xpath += %([@id="#{ex[:target][1..-1]}"]) if ex[:target] - args = [] - content = ex[:content] - - $stderr.puts "example #{ex[:number]}: #{ex.select{|k,v| k != :content}.to_json(JSON::LD::JSON_STATE)}" if verbose - $stderr.puts "content: #{ex[:content]}" if verbose - - if ex[:ignore] - $stdout.write "i".colorize(:yellow) - next - end - - if ex[:error] - errors << ex[:error] - $stdout.write "F".colorize(:red) - next - end - - if !%w(pre script table).include?(ex[:element]) - errors << "Example #{ex[:number]} at line #{ex[:line]} has unknown element type #{ex[:element]}" - $stdout.write "F".colorize(:red) - next - end - - # Perform example syntactic validation based on extension - case ex[:ext] - when 'json', 'jsonld', 'jsonldf' - begin - ::JSON.parse(content) - rescue JSON::ParserError => exception - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error: #{exception.message}" - $stdout.write "F".colorize(:red) - next - end - when 'html' - begin - doc = Nokogiri::HTML.parse(content) {|c| c.strict} - doc.errors.each do |er| - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error: #{er}" - end - unless doc.errors.empty? - $stdout.write "F".colorize(:red) - next - end - script_content = doc.at_xpath(xpath) - if script_content - # Remove (faked) XML comments and unescape sequences - content = script_content - .inner_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') - .gsub(/</, '<') - end - - rescue Nokogiri::XML::SyntaxError => exception - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error: #{exception.message}" - $stdout.write "F".colorize(:red) - next - end - when 'table' - # already in parsed form - when 'ttl', 'trig' - begin - reader_errors = [] - RDF::Repository.new << RDF::TriG::Reader.new(content, validate: true, logger: reader_errors) - rescue - reader_errors.each do |er| - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error: #{er}" - end - $stdout.write "F".colorize(:red) - next - end - when 'nq' - begin - reader_errors = [] - RDF::Repository.new << RDF::NQuads::Reader.new(content, validate: true, logger: reader_errors) - rescue - reader_errors.each do |er| - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error: #{er}" - end - $stdout.write "F".colorize(:red) - next - end - end - - options = ex[:options].to_s.split(',').inject({}) do |memo, pair| - k, v = pair.split('=') - v = case v - when 'true' then true - when 'false' then false - else v - end - memo.merge(k.to_sym => v) - end - - # Set API to use - method = case - when ex[:compact] then :compact - when ex[:flatten] then :flatten - when ex[:fromRdf] then :fromRdf - when ex[:toRdf] then :toRdf - when ex[:ext] == 'table' then :toRdf - when %w(json ttl trig).include?(ex[:ext] ) - nil - else - :expand - end - - # Set args to parse example content - if ex[:frame_for] - unless examples[ex[:frame_for]] - errors << "Example Frame #{ex[:number]} at line #{ex[:line]} references unknown example #{ex[:frame_for].inspect}" - $stdout.write "F".colorize(:red) - next - end - - method = :frame - args = [StringIO.new(examples[ex[:frame_for]][:content]), StringIO.new(content), options] - elsif ex[:context_for] - unless examples[ex[:context_for]] - errors << "Example Context #{ex[:number]} at line #{ex[:line]} references unknown example #{ex[:context_for].inspect}" - $stdout.write "F".colorize(:red) - next - end - - # Either exapand with this external context, or compact using it - case method - when :expand - options[:externalContext] = StringIO.new(content) - options[:base] = ex[:base] if ex[:base] - args = [StringIO.new(examples[ex[:context_for]][:content]), options] - when :compact, :flatten, nil - options[:base] = ex[:base] if ex[:base] - args = [StringIO.new(examples[ex[:context_for]][:content]), StringIO.new(content), options] - end - elsif %w(jsonld html).include?(ex[:ext]) - # Either exapand with this external context, or compact using it - case method - when :expand, :toRdf, :fromRdf - options[:externalContext] = StringIO.new(ex[:context]) if ex[:context] - options[:base] = ex[:base] if ex[:base] - args = [StringIO.new(content), options] - when :compact, :flatten - # Fixme how to find context? - options[:base] = ex[:base] if ex[:base] - args = [StringIO.new(content), (StringIO.new(ex[:context]) if ex[:context]), options] - end - else - args = [StringIO.new(content), options] - end - - if ex[:result_for] - # Source is referenced - # Instead of parsing this example content, parse that which is referenced - unless examples[ex[:result_for]] - errors << "Example #{ex[:number]} at line #{ex[:line]} references unknown example #{ex[:result_for].inspect}" - $stdout.write "F".colorize(:red) - next - end - - # Set argument to referenced content to be parsed - args[0] = if examples[ex[:result_for]][:ext] == 'html' && method == :expand - # If we are expanding, and the reference is HTML, find the first script element. - doc = Nokogiri::HTML.parse(examples[ex[:result_for]][:content]) - script_content = doc.at_xpath(xpath) - unless script_content - errors << "Example #{ex[:number]} at line #{ex[:line]} references example #{ex[:result_for].inspect} with no JSON-LD script element" - $stdout.write "F".colorize(:red) - next - end - StringIO.new(script_content - .inner_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') - .gsub(/</, '<')) - elsif examples[ex[:result_for]][:ext] == 'html' && ex[:target] - # Only use the targeted script - doc = Nokogiri::HTML.parse(examples[ex[:result_for]][:content]) - script_content = doc.at_xpath(xpath) - unless script_content - errors << "Example #{ex[:number]} at line #{ex[:line]} references example #{ex[:result_for].inspect} with no JSON-LD script element" - $stdout.write "F".colorize(:red) - next - end - StringIO.new(script_content - .to_html - .sub(/^\s*< !--/, '') - .sub(/-- >\s*$/, '') - .gsub(/</, '<')) - else - StringIO.new(examples[ex[:result_for]][:content]) - end - - # :frame option indicates the frame to use on the referenced content - if ex[:frame] && !examples[ex[:frame]] - errors << "Example #{ex[:number]} at line #{ex[:line]} references unknown frame #{ex[:frame].inspect}" - $stdout.write "F".colorize(:red) - next - elsif ex[:frame] - method = :frame - args = [args[0], StringIO.new(examples[ex[:frame]][:content]), options] - end - - # :context option indicates the context to use on the referenced content - if ex[:context] && !examples[ex[:context]] - errors << "Example #{ex[:number]} at line #{ex[:line]} references unknown context #{ex[:context].inspect}" - $stdout.write "F".colorize(:red) - next - else - case method - when :expand, :toRdf, :fromRdf - options[:externalContext] = StringIO.new(examples[ex[:context]][:content]) if ex[:context] - args = [args[0], options] - when :compact, :flatten - args = [args[0], ex[:context] ? StringIO.new(examples[ex[:context]][:content]) : nil, options] - end - end - end - - # Save example - if example_dir - File.open(File.join(example_dir, ex[:filename]), 'w') {|f| f.write(content)} - end - - # Save example as YAML - if yaml_dir && ex[:filename].match?(/\.json.*$/) - fn = ex[:filename].sub(/\.json.*$/, '.yml') - File.open(File.join(yaml_dir, fn), 'w') do |f| - f.puts "Example #{"%03d" % ex[:number]}: #{ex[:title]}" - f.write(::JSON.parse(ex[:content]).to_yaml) - end - end - - # Generate result - # * If result_for is set, this is for the referenced example - # * otherwise, this is for this example - begin - ext = ex[:result_for] ? examples[ex[:result_for]][:ext] : ex[:ext] - result = case method - when nil then nil - when :fromRdf - args[0] = RDF::Reader.for(file_extension: ext).new(args[0]) - JSON::LD::API.fromRdf(*args) - when :toRdf - if ext == 'html' - # If the referenced example is HTML, read it using the RDFa reader - # FIXME: the API may be updated to provide a native mechanism for this - RDF::Dataset.new statements: RDF::RDFa::Reader.new(*args) - else - RDF::Dataset.new statements: JSON::LD::API.toRdf(*args) - end - else - JSON::LD::API.method(method).call(*args) - end - rescue - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error generating result: #{$!}" - $stdout.write "F".colorize(:red) - next - end - - if verbose - if result.is_a?(RDF::Dataset) - $stderr.puts "result:\n" + result.to_trig - else - $stderr.puts "result:\n" + result.to_json(JSON::LD::JSON_STATE) - end - end - - begin - if ex[:result_for] - # Compare to expected to result - case ex[:ext] - when 'ttl', 'trig', 'nq', 'html' - reader = RDF::Reader.for(file_extension: ex[:ext]).new(StringIO.new(content)) - expected = RDF::Dataset.new(statements: reader) - $stderr.puts "expected:\n" + expected.to_trig if verbose - when 'table' - expected = begin - table_to_dataset(content) - rescue - errors << "Example #{ex[:number]} at line #{ex[:line]} raised error reading table: #{$!}" - RDF::Dataset.new - end - - if verbose - $stderr.puts "expected:\n" + expected.to_trig - $stderr.puts "result table:\n" + begin - dataset_to_table(result) - rescue - errors << "Example #{ex[:number]} at line #{ex[:line]} raised error turning into table: #{$!}" - "" - end - end - else - expected = ::JSON.parse(content) - $stderr.puts "expected: " + expected.to_json(JSON::LD::JSON_STATE) if verbose - end - - # Perform appropriate comparsion - if expected.is_a?(RDF::Dataset) - expected_norm = RDF::Normalize.new(expected).map(&:to_nquads) - result_norm = RDF::Normalize.new(result).map(&:to_nquads) - unless expected_norm.sort == result_norm.sort - if verbose - $stderr.puts "expected_norm:\n" + expected_norm.sort.join("") - $stderr.puts "result_norm:\n" + result_norm.sort.join("") - end - errors << "Example #{ex[:number]} at line #{ex[:line]} not isomorphic with #{examples[ex[:result_for]][:number]}" - $stdout.write "F".colorize(:red) - next - end - else - unless result == expected - errors << "Example #{ex[:number]} at line #{ex[:line]} not equivalent to #{examples[ex[:result_for]][:number]}" - $stdout.write "F".colorize(:red) - next - end - end - end - rescue - errors << "Example #{ex[:number]} at line #{ex[:line]} parse error comparing result: #{$!}" - $stdout.write "F".colorize(:red) - next - end - - if ex[:warn] - warnings << ex[:warn] - $stdout.write "w".colorize(:yellow) - else - $stdout.write ".".colorize(:green) - end - end - - $stdout.puts "\nWarnings:" unless warnings.empty? - warnings.each {|e| $stdout.puts " #{e}".colorize(:yellow)} - $stdout.puts "\nErrors:" unless errors.empty? - errors.each {|e| $stdout.puts " #{e}".colorize(:red)} - num_errors += errors.length -end - -if num_errors == 0 - $stdout.puts "\nok".colorize(:green) -else - exit(1) -end - -exit(0) \ No newline at end of file diff --git a/common/jsonld.js b/common/jsonld.js deleted file mode 100644 index b278306b..00000000 --- a/common/jsonld.js +++ /dev/null @@ -1,25 +0,0 @@ -const jsonld = { - // Add as the respecConfig localBiblio variable - // Extend or override global respec references - localBiblio: { - // aliases to known references - "IEEE-754-2008": { - title: "IEEE 754-2008 Standard for Floating-Point Arithmetic", - href: "http://standards.ieee.org/findstds/standard/754-2008.html", - publisher: "Institute of Electrical and Electronics Engineers", - date: "2008" - }, - "PROMISES": { - title: 'Promise Objects', - href: 'https://github.com/domenic/promises-unwrapping', - authors: ['Domenic Denicola'], - status: 'unofficial', - date: 'January 2014' - } - }, - conversions: { - "https://w3c.github.io/json-ld-syntax/": "http://www.w3.org/TR/json-ld11/", - "https://w3c.github.io/json-ld-api/": "http://www.w3.org/TR/json-ld11-api/", - "https://w3c.github.io/json-ld-framing/": "http://www.w3.org/TR/json-ld11-framing/" - } -}; diff --git a/common/terms.html b/common/terms.html deleted file mode 100644 index 0b2ca17a..00000000 --- a/common/terms.html +++ /dev/null @@ -1,297 +0,0 @@ -
-
array
- In the JSON serialization, an array structure is represented as square brackets surrounding zero - or more values. Values are separated by commas. - In the internal representation, an array is an ordered collection of zero or more values. - While JSON-LD uses the same array representation as JSON, - the collection is unordered by default. While order is - preserved in regular JSON arrays, it is not in regular JSON-LD arrays - unless specifically defined (see - Sets and Lists in - the JSON-LD Syntax specification [[JSON-LD11]]).
-
JSON object
- In the JSON serialization, an object structure is represented as a pair of curly brackets surrounding zero or - more members composed of name-value pairs. A name is a string. A single colon comes after - each name, separating the name from the value. A single comma separates a value - from a following name. In JSON-LD the names in an object MUST be unique. - In the internal representation a JSON object is equivalent to a - dictionary (see [[!WEBIDL]]), - composed of dictionary members with key-value pairs.
-
JSON-LD internal representation
The JSON-LD - internal representation is the result of transforming a JSON syntactic structure - into the core data structures suitable for direct processing: - arrays, dictionaries, - strings, numbers, booleans, and null.
-
null
- The use of the null value within JSON-LD is used to - ignore or reset values. A dictionary member in the @context where - the value, or the @id of the value, is null - explicitly decouples a term's association with an IRI. A dictionary member in - the body of a JSON-LD document whose value is null has the - same meaning as if the dictionary member was not defined. If - @value, @list, or @set is set to - null in expanded form, then the entire JSON - object is ignored.
-
number
- In the JSON serialization, a number is similar to that used in most programming languages, except - that the octal and hexadecimal formats are not used and that leading - zeros are not allowed. - In the internal representation, a number is equivalent to either - a long - or double, depending - on if the number has a non-zero fractional part (see [[!WEBIDL]]).
-
scalar
- A scalar is either a JSON string, number, true, - or false.
-
string
- A string is a sequence of zero or more Unicode (UTF-8) characters, - wrapped in double quotes, using backslash escapes (if necessary). A - character is represented as a single character string.
-
true and false
- Values that are used to express one of two possible - boolean states.
-
- -

Furthermore, the following terminology is used throughout this document:

- -
-
absolute IRI
- An absolute IRI is defined in [[!RFC3987]] containing a scheme along with a path and - optional query and fragment segments.
-
active context
- A context that is used to resolve terms while the processing - algorithm is running.
-
base IRI
- The base IRI is an absolute IRI established in the context, - or is based on the JSON-LD document location. The base IRI is used to turn - relative IRIs into absolute IRIs.
-
blank node
- A node in a graph that is neither an - IRI, nor a JSON-LD value, nor a list. - A blank node does not contain a de-referenceable - identifier because it is either ephemeral in nature or does not contain information that needs to be - linked to from outside of the linked data graph. A blank node is assigned an identifier starting with - the prefix _:.
-
blank node identifier
- A blank node identifier is a string that can be used as an identifier for a - blank node within the scope of a JSON-LD document. Blank node identifiers - begin with _:.
-
compact IRI
- A compact IRI is has the form of prefix:suffix and is used as a way - of expressing an IRI without needing to define separate term definitions for - each IRI contained within a common vocabulary identified by prefix.
-
context
- A set of rules for interpreting a JSON-LD document as specified in - The Context of the JSON-LD Syntax specification [[JSON-LD11]].
-
datatype IRI
- A datatype IRI - as specified by [[RDF11-CONCEPTS]].
-
default graph
- The default graph is the only graph in a JSON-LD document which has no graph name. - When executing an algorithm, the graph where data should be placed - if a named graph is not specified.
-
default language
- The default language is set in the context using the @language key whose - value MUST be a string representing a [[!BCP47]] language code or null.
-
default object
- A default object is a dictionary that has a @default key.
-
edge
- Every edge has a direction associated with it and is labeled with - an IRI or a blank node identifier. Within the JSON-LD syntax - these edge labels are called properties. Whenever possible, an - edge should be labeled with an IRI.
-
expanded term definition
- An expanded term definition, is a term definition where the value is a dictionary - containing one or more keyword keys to define the associated absolute IRI, - if this is a reverse property, the type associated with string values, and a container mapping.
-
frame
- A JSON-LD document, which describes the form for transforming - another JSON-LD document using matching and embedding rules. - A frame document allows additional keywords and certain dictionary members - to describe the matching and transforming process.
-
JSON-LD Processor
- A JSON-LD Processor is a system which can perform the algorithms defined in [[JSON-LD11-API]].
-
frame object
- A frame object is a dictionary element within a frame - which represents a specific portion of the frame matching either a - node object or a value object in the input.
-
graph name
- The IRI identifying a named graph.
-
id map
- An id map is a dictionary value of a term defined with - @container set to @id, whose keys are - interpreted as IRIs representing the @id - of the associated node object; value MUST be a node object. - If the value contains a key expanding to @id, it's value MUST - be equivalent to the referencing key.
-
graph object
- A graph object represents a named graph represented as the - value of a dictionary member within a node object. When expanded, a - graph object MUST have an @graph member, and may also have - @id, and @index members. - A simple graph object is a - graph object which does not have an @id member. Note - that node objects may have a @graph member, but are - not considered graph objects if they include any other members. - A top-level object consisting of @graph is also not a graph object.
-
index map
- An index map is a dictionary value of a term defined with - @container set to @index, whose values MUST be any of the following types: - string, - number, - true, - false, - null, - node object, - value object, - list object, - set object, or - an array of zero or more of the above possibilities. -
-
IRI
- An Internationalized Resource Identifier as described in [[!RFC3987]].
-
JSON-LD document
- A JSON-LD document is a serialization of a collection of - graphs and comprises exactly one - default graph and zero or more named graphs.
-
JSON-LD value
- A JSON-LD value is a string, a number, - true or false, a typed value, or a - language-tagged string.
-
keyword
- A string that is specific to JSON-LD, specified in the JSON-LD Syntax specification [[JSON-LD11]] - in the section titled Syntax Tokens and Keywords.
-
language map
- An language map is a dictionary value of a term defined with - @container set to @language, whose keys MUST be strings representing - [[!BCP47]] language codes and the values MUST be any of the following types: - null, - string, or - an array of zero or more of the above possibilities. -
-
language-tagged string
- A language-tagged string consists of a string and a non-empty language - tag as defined by [[!BCP47]]. The language tag MUST be well-formed according to - section 2.2.9 Classes of Conformance - of [[!BCP47]], and is normalized to lowercase.
-
Linked Data
- A set of documents, each containing a representation of a linked data graph.
-
linked data graph
- A labeled directed graph, i.e., a set of nodes - connected by edges, - as specified in the Data Model - section of the JSON-LD specification [[JSON-LD11]]. - A linked data graph is a generalized representation of an - RDF graph - as defined in [[!RDF11-CONCEPTS]].
-
list
- A list is an ordered sequence of IRIs, - blank nodes, and JSON-LD values. - See RDF collection - in [[!RDF-SCHEMA]].
-
list object
- A list object is a dictionary that has a @list - key.
-
literal
- An object expressed as a value such as a string, number or in expanded form.
-
local context
- A context that is specified with a dictionary, - specified via the @context keyword.
-
named graph
- A named graph is a linked data graph that is identified by an IRI or blank node.
-
implicitly named graph
- A named graph created from the value of a dictionary member having an - expanded term definition where @container is set to @graph.
-
nested property
- A nested property is a key in a node object whose value is a - dictionary containing members which are treated as if they were values of the node object. - The nested property itself is semantically meaningless used only to create a sub-structure within - a node object. -
-
node
- Every node is an IRI, a blank node, - a JSON-LD value, or a list. - A piece of information that is represented in a linked data graph.
-
node object
- A node object represents zero or more properties of a - node in the graph serialized by the - JSON-LD document. A dictionary is a node object - if it exists outside of the JSON-LD context and: - - The members of a node object whose keys are not keywords are also called properties of the node object. -
-
node reference
- A node object used to reference a node having only the - @id key.
-
object
- An object is a node in a linked data graph with at least one incoming edge. - See RDF object in [[RDF11-CONCEPTS]].
-
prefix
- A prefix is the first component of a compact IRI which comes from a - term that maps to a string that, when prepended to the suffix of the compact IRI - results in an absolute IRI.
-
processing mode
- The processing mode defines how a JSON-LD document is processed. - By default, all documents are assumed to be conformant with - JSON-LD 1.0 [[!JSON-LD]]. By defining - a different version using the @version member in a - context, or via explicit API option, other processing modes - can be accessed. This specification defines extensions for the - json-ld-1.1 processing mode.
-
property
- The IRI label of an edge in a linked data graph. - See RDF predicate in [[RDF11-CONCEPTS]].
-
quad
- A piece of information that contains four items; a subject, a property, - an object, and a graph name.
-
RDF dataset
- A dataset as specified by [[RDF11-CONCEPTS]] representing a collection of - RDF graphs.
-
RDF resource
- A resource as specified by [[RDF11-CONCEPTS]].
-
RDF triple
- A triple as specified by [[RDF11-CONCEPTS]].
-
relative IRI
- A relative IRI is an IRI that is relative to some other absolute IRI, - typically the base IRI of the document. Note that - properties, values of @type, and values of terms defined to be vocabulary relative - are resolved relative to the vocabulary mapping, not the base IRI.
-
set object
- A set object is a dictionary that has an @set member.
-
subject
- A subject is anode in a linked data graph with at least one outgoing edge, related to an object node through a property. - See RDF subject in [[RDF11-CONCEPTS]].
-
term
- A term is a short word defined in a context that MAY be expanded to an IRI -
-
term definition
- A term definition is an entry in a context, where the key defines a term which may be used within - a dictionary as a key, type, or elsewhere that a string is interpreted as a vocabulary item. - Its value is either a string (simple term definition), expanding to an absolute IRI, or an expanded term definition. -
-
type map
- An type map is a dictionary value of a term defined with - @container set to @type, whose keys are - interpreted as IRIs representing the @type - of the associated node object; - value MUST be a node object, or array of node objects. - If the value contains a term expanding to @type, it's values - are merged with the map value when expanding.
-
typed literal
- A typed literal is a literal with an associated IRI - which indicates the literal's datatype. - See RDF literal in [[!RDF11-CONCEPTS]].
-
typed value
- A typed value consists of a value, which is a string, and a type, - which is an IRI.
-
value object
- A value object is a dictionary that has an @value member.
-
vocabulary mapping
- The vocabulary mapping is set in the context using the @vocab key whose - value MUST be an absolute IRI or null.
-
diff --git a/common/typographical-conventions.html b/common/typographical-conventions.html deleted file mode 100644 index d946ad1a..00000000 --- a/common/typographical-conventions.html +++ /dev/null @@ -1,35 +0,0 @@ -

The following typographic conventions are used in this specification:

- -
-
markup
-
Markup (elements, attributes, properties), machine processable values (string, characters, media types), property name, or a file name is in red-orange monospace font.
-
variable
-
A variable in pseudo-code or in an algorithm description is in italics.
-
definition
-
A definition of a term, to be used elsewhere in this or other specifications, is in bold and italics.
-
definition reference
-
A reference to a definition in this document is underlined and is also an active link to the definition itself.
-
markup definition reference
-
A references to a definition in this document, when the reference itself is also a markup, is underlined, red-orange monospace font, and is also an active link to the definition itself.
-
external definition reference
-
A reference to a definition in another document is underlined, in italics, and is also an active link to the definition itself.
-
markup external definition reference
-
A reference to a definition in another document, when the reference itself is also a markup, is underlined, in italics red-orange monospace font, and is also an active link to the definition itself.
-
hyperlink
-
A hyperlink is underlined and in blue.
-
[reference]
-
A document reference (normative or informative) is enclosed in square brackets and links to the references section.
-
Changes from Recommendation
-
Sections or phrases changed from the previous Recommendation are highlighted.
-
- -

Notes are in light green boxes with a green left border and with a "Note" header in green. Notes are always informative.

- -
-  Examples are in light khaki boxes, with khaki left border, and with a
-  numbered "Example" header in khaki. Examples are always informative.
-  The content of the example is in monospace font and may be syntax colored.
-
-  Examples may have tabbed navigation buttons to show the results of transforming
-  an example into other representations.
-
diff --git a/examples/example-002-Sample-JSON-document.jsonld b/examples/example-002-Sample-JSON-document.jsonld deleted file mode 100644 index 1561e5e8..00000000 --- a/examples/example-002-Sample-JSON-document.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/", - "image": "http://manu.sporny.org/images/manu.png" -} \ No newline at end of file diff --git a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.jsonld b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.jsonld deleted file mode 100644 index 232f5188..00000000 --- a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "http://schema.org/name": "Manu Sporny", - "http://schema.org/url": { "@id": "http://manu.sporny.org/" }, - "http://schema.org/image": { "@id": "http://manu.sporny.org/images/manu.png" } -} \ No newline at end of file diff --git a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-statements.table b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-statements.table deleted file mode 100644 index 5eb3a381..00000000 --- a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0schema:imagehttp://manu.sporny.org/images/manu.png
_:b0schema:nameManu Sporny
_:b0schema:urlhttp://manu.sporny.org/
\ No newline at end of file diff --git a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl deleted file mode 100644 index 903388a2..00000000 --- a/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . -@prefix xsd: . - [ - schema:image ; - schema:name "Manu Sporny"; - schema:url - ] . \ No newline at end of file diff --git a/examples/example-004-Context-for-the-sample-document-in-the-previous-section.jsonld b/examples/example-004-Context-for-the-sample-document-in-the-previous-section.jsonld deleted file mode 100644 index d82c43e2..00000000 --- a/examples/example-004-Context-for-the-sample-document-in-the-previous-section.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "name": "http://schema.org/name", - "image": { - "@id": "http://schema.org/image", - "@type": "@id" - }, - "homepage": { - "@id": "http://schema.org/url", - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-005-Referencing-a-JSON-LD-context-expanded.jsonld b/examples/example-005-Referencing-a-JSON-LD-context-expanded.jsonld deleted file mode 100644 index 9b795691..00000000 --- a/examples/example-005-Referencing-a-JSON-LD-context-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/homepage": [{ "@id": "http://manu.sporny.org/" }], - "http://xmlns.com/foaf/0.1/img": [{ "@id": "http://manu.sporny.org/images/manu.png" }] -}] \ No newline at end of file diff --git a/examples/example-005-Referencing-a-JSON-LD-context-original.jsonld b/examples/example-005-Referencing-a-JSON-LD-context-original.jsonld deleted file mode 100644 index 12e1be34..00000000 --- a/examples/example-005-Referencing-a-JSON-LD-context-original.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -{ - "@context": "https://json-ld.org/contexts/person.jsonld", - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/", - "image": "http://manu.sporny.org/images/manu.png" -} \ No newline at end of file diff --git a/examples/example-005-Referencing-a-JSON-LD-context-statements.table b/examples/example-005-Referencing-a-JSON-LD-context-statements.table deleted file mode 100644 index f35caea6..00000000 --- a/examples/example-005-Referencing-a-JSON-LD-context-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0foaf:nameManu Sporny
_:b0foaf:homepagehttp://manu.sporny.org/
_:b0foaf:imghttp://manu.sporny.org/images/manu.png
\ No newline at end of file diff --git a/examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl b/examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl deleted file mode 100644 index 317dfa1d..00000000 --- a/examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - [ - foaf:name "Manu Sporny"; - foaf:homepage ; - foaf:img - ] . \ No newline at end of file diff --git a/examples/example-006-In-line-context-definition-expanded.jsonld b/examples/example-006-In-line-context-definition-expanded.jsonld deleted file mode 100644 index 62d4cce8..00000000 --- a/examples/example-006-In-line-context-definition-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/url": [{ "@id": "http://manu.sporny.org/" }], - "http://schema.org/image": [{ "@id": "http://manu.sporny.org/images/manu.png" }] -}] \ No newline at end of file diff --git a/examples/example-006-In-line-context-definition-original.jsonld b/examples/example-006-In-line-context-definition-original.jsonld deleted file mode 100644 index 2d6025fe..00000000 --- a/examples/example-006-In-line-context-definition-original.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "name": "http://schema.org/name", - "image": { - "@id": "http://schema.org/image", - "@type": "@id" - }, - "homepage": { - "@id": "http://schema.org/url", - "@type": "@id" - } - }, - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/", - "image": "http://manu.sporny.org/images/manu.png" -} \ No newline at end of file diff --git a/examples/example-006-In-line-context-definition-statements.table b/examples/example-006-In-line-context-definition-statements.table deleted file mode 100644 index b5fcb93a..00000000 --- a/examples/example-006-In-line-context-definition-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0schema:imagehttp://manu.sporny.org/images/manu.png
_:b0schema:nameManu Sporny
_:b0schema:urlhttp://manu.sporny.org/
\ No newline at end of file diff --git a/examples/example-006-In-line-context-definition-turtle.ttl b/examples/example-006-In-line-context-definition-turtle.ttl deleted file mode 100644 index 903388a2..00000000 --- a/examples/example-006-In-line-context-definition-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . -@prefix xsd: . - [ - schema:image ; - schema:name "Manu Sporny"; - schema:url - ] . \ No newline at end of file diff --git a/examples/example-007-Values-of-id-are-interpreted-as-IRI.jsonld b/examples/example-007-Values-of-id-are-interpreted-as-IRI.jsonld deleted file mode 100644 index fc6140af..00000000 --- a/examples/example-007-Values-of-id-are-interpreted-as-IRI.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "homepage": { "@id": "http://example.com/" } -} \ No newline at end of file diff --git a/examples/example-008-IRIs-can-be-relative.jsonld b/examples/example-008-IRIs-can-be-relative.jsonld deleted file mode 100644 index 3360fbb3..00000000 --- a/examples/example-008-IRIs-can-be-relative.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "homepage": { "@id": "../" } -} \ No newline at end of file diff --git a/examples/example-009-IRI-as-a-key.jsonld b/examples/example-009-IRI-as-a-key.jsonld deleted file mode 100644 index 9af19792..00000000 --- a/examples/example-009-IRI-as-a-key.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -{ - "http://schema.org/name": "Manu Sporny" -} \ No newline at end of file diff --git a/examples/example-010-Term-expansion-from-context-definition-expanded.jsonld b/examples/example-010-Term-expansion-from-context-definition-expanded.jsonld deleted file mode 100644 index 72164ec6..00000000 --- a/examples/example-010-Term-expansion-from-context-definition-expanded.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -[{ - "http://schema.org/name": [{"@value": "Manu Sporny"}] -}] \ No newline at end of file diff --git a/examples/example-010-Term-expansion-from-context-definition-original.jsonld b/examples/example-010-Term-expansion-from-context-definition-original.jsonld deleted file mode 100644 index 19487619..00000000 --- a/examples/example-010-Term-expansion-from-context-definition-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "name": "http://schema.org/name" - }, - "name": "Manu Sporny", - "status": "trollin'" -} \ No newline at end of file diff --git a/examples/example-010-Term-expansion-from-context-definition-statements.table b/examples/example-010-Term-expansion-from-context-definition-statements.table deleted file mode 100644 index 830704bb..00000000 --- a/examples/example-010-Term-expansion-from-context-definition-statements.table +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0schema:nameManu Sporny
\ No newline at end of file diff --git a/examples/example-010-Term-expansion-from-context-definition-turtle.ttl b/examples/example-010-Term-expansion-from-context-definition-turtle.ttl deleted file mode 100644 index 1be95722..00000000 --- a/examples/example-010-Term-expansion-from-context-definition-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix schema: . -@prefix xsd: . - [ - schema:name "Manu Sporny" - ] . \ No newline at end of file diff --git a/examples/example-011-Type-coercion-expanded.jsonld b/examples/example-011-Type-coercion-expanded.jsonld deleted file mode 100644 index 95f17a6e..00000000 --- a/examples/example-011-Type-coercion-expanded.jsonld +++ /dev/null @@ -1,3 +0,0 @@ -[{ - "http://schema.org/url": [{"@id": "http://manu.sporny.org/"}] -}] \ No newline at end of file diff --git a/examples/example-011-Type-coercion-original.jsonld b/examples/example-011-Type-coercion-original.jsonld deleted file mode 100644 index aa06086d..00000000 --- a/examples/example-011-Type-coercion-original.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "homepage": { - "@id": "http://schema.org/url", - "@type": "@id" - } - }, - "homepage": "http://manu.sporny.org/" -} \ No newline at end of file diff --git a/examples/example-011-Type-coercion-statements.table b/examples/example-011-Type-coercion-statements.table deleted file mode 100644 index 0fee4b82..00000000 --- a/examples/example-011-Type-coercion-statements.table +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0schema:urlhttp://manu.sporny.org/
\ No newline at end of file diff --git a/examples/example-011-Type-coercion-turtle.ttl b/examples/example-011-Type-coercion-turtle.ttl deleted file mode 100644 index abb337b5..00000000 --- a/examples/example-011-Type-coercion-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix schema: . -@prefix xsd: . - [ - schema:url - ] . \ No newline at end of file diff --git a/examples/example-012-Identifying-a-node-expanded.jsonld b/examples/example-012-Identifying-a-node-expanded.jsonld deleted file mode 100644 index f7f2d537..00000000 --- a/examples/example-012-Identifying-a-node-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://me.markus-lanthaler.com/", - "http://schema.org/name": [{"@value": "Markus Lanthaler"}] -}] \ No newline at end of file diff --git a/examples/example-012-Identifying-a-node-original.jsonld b/examples/example-012-Identifying-a-node-original.jsonld deleted file mode 100644 index 6da6b6ff..00000000 --- a/examples/example-012-Identifying-a-node-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "name": "http://schema.org/name" - }, - "@id": "http://me.markus-lanthaler.com/", - "name": "Markus Lanthaler" -} \ No newline at end of file diff --git a/examples/example-012-Identifying-a-node-statements.table b/examples/example-012-Identifying-a-node-statements.table deleted file mode 100644 index 6fd3506c..00000000 --- a/examples/example-012-Identifying-a-node-statements.table +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - -
SubjectPropertyValue
http://me.markus-lanthaler.com/schema:nameMarkus Lanthaler
\ No newline at end of file diff --git a/examples/example-012-Identifying-a-node-turtle.ttl b/examples/example-012-Identifying-a-node-turtle.ttl deleted file mode 100644 index 3d28306c..00000000 --- a/examples/example-012-Identifying-a-node-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix schema: . -@prefix xsd: . - schema:name "Markus Lanthaler" . \ No newline at end of file diff --git a/examples/example-013-Specifying-the-type-for-a-node-expanded.jsonld b/examples/example-013-Specifying-the-type-for-a-node-expanded.jsonld deleted file mode 100644 index 70945bbe..00000000 --- a/examples/example-013-Specifying-the-type-for-a-node-expanded.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -[{ - "@id": "http://me.markus-lanthaler.com/", - "@type": ["http://schema.org/Person"], - "http://schema.org/givenName": [{"@value": "Markus"}], - "http://schema.org/familyName": [{"@value": "Lanthaler"}] -}] \ No newline at end of file diff --git a/examples/example-013-Specifying-the-type-for-a-node-original.jsonld b/examples/example-013-Specifying-the-type-for-a-node-original.jsonld deleted file mode 100644 index a5d1f5bd..00000000 --- a/examples/example-013-Specifying-the-type-for-a-node-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "givenName": "http://schema.org/givenName", - "familyName": "http://schema.org/familyName" - }, - "@id": "http://me.markus-lanthaler.com/", - "@type": "http://schema.org/Person", - "givenName": "Markus", - "familyName": "Lanthaler" -} \ No newline at end of file diff --git a/examples/example-013-Specifying-the-type-for-a-node-statements.table b/examples/example-013-Specifying-the-type-for-a-node-statements.table deleted file mode 100644 index 8ba64584..00000000 --- a/examples/example-013-Specifying-the-type-for-a-node-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://me.markus-lanthaler.com/rdf:typeschema:Person
http://me.markus-lanthaler.com/schema:givenNameMarkus
http://me.markus-lanthaler.com/schema:familyNameLanthaler
\ No newline at end of file diff --git a/examples/example-013-Specifying-the-type-for-a-node-turtle.ttl b/examples/example-013-Specifying-the-type-for-a-node-turtle.ttl deleted file mode 100644 index 5b8eef82..00000000 --- a/examples/example-013-Specifying-the-type-for-a-node-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Person; - schema:givenName "Markus"; - schema:familyName "Lanthaler" . \ No newline at end of file diff --git a/examples/example-014-Specifying-multiple-types-for-a-node-expanded.jsonld b/examples/example-014-Specifying-multiple-types-for-a-node-expanded.jsonld deleted file mode 100644 index 9ec0c7b3..00000000 --- a/examples/example-014-Specifying-multiple-types-for-a-node-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://me.markus-lanthaler.com/", - "@type": ["http://schema.org/Person", "http://xmlns.com/foaf/0.1/Person"] -}] \ No newline at end of file diff --git a/examples/example-014-Specifying-multiple-types-for-a-node-original.jsonld b/examples/example-014-Specifying-multiple-types-for-a-node-original.jsonld deleted file mode 100644 index d145c44f..00000000 --- a/examples/example-014-Specifying-multiple-types-for-a-node-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@id": "http://me.markus-lanthaler.com/", - "@type": [ - "http://schema.org/Person", - "http://xmlns.com/foaf/0.1/Person" - ] -} \ No newline at end of file diff --git a/examples/example-014-Specifying-multiple-types-for-a-node-statements.table b/examples/example-014-Specifying-multiple-types-for-a-node-statements.table deleted file mode 100644 index fb72a8e8..00000000 --- a/examples/example-014-Specifying-multiple-types-for-a-node-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://me.markus-lanthaler.com/rdf:typeschema:Person
http://me.markus-lanthaler.com/rdf:typefoaf:Person
\ No newline at end of file diff --git a/examples/example-014-Specifying-multiple-types-for-a-node-turtle.ttl b/examples/example-014-Specifying-multiple-types-for-a-node-turtle.ttl deleted file mode 100644 index 14168457..00000000 --- a/examples/example-014-Specifying-multiple-types-for-a-node-turtle.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix schema: . -@prefix foaf: . -@prefix xsd: . - a schema:Person, foaf:Person. \ No newline at end of file diff --git a/examples/example-015-Using-a-term-to-specify-the-type-expanded.jsonld b/examples/example-015-Using-a-term-to-specify-the-type-expanded.jsonld deleted file mode 100644 index d1bda8df..00000000 --- a/examples/example-015-Using-a-term-to-specify-the-type-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://example.org/places#BrewEats", - "@type": ["http://schema.org/Person"] -}] \ No newline at end of file diff --git a/examples/example-015-Using-a-term-to-specify-the-type-original.jsonld b/examples/example-015-Using-a-term-to-specify-the-type-original.jsonld deleted file mode 100644 index dd09b249..00000000 --- a/examples/example-015-Using-a-term-to-specify-the-type-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "Person": "http://schema.org/Person" - }, - "@id": "http://example.org/places#BrewEats", - "@type": "Person" -} \ No newline at end of file diff --git a/examples/example-015-Using-a-term-to-specify-the-type-statements.table b/examples/example-015-Using-a-term-to-specify-the-type-statements.table deleted file mode 100644 index 101473d0..00000000 --- a/examples/example-015-Using-a-term-to-specify-the-type-statements.table +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typeschema:Person
\ No newline at end of file diff --git a/examples/example-015-Using-a-term-to-specify-the-type-turtle.ttl b/examples/example-015-Using-a-term-to-specify-the-type-turtle.ttl deleted file mode 100644 index d8e2f9f0..00000000 --- a/examples/example-015-Using-a-term-to-specify-the-type-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Person. \ No newline at end of file diff --git a/examples/example-016-Referencing-Objects-on-the-Web-expanded.jsonld b/examples/example-016-Referencing-Objects-on-the-Web-expanded.jsonld deleted file mode 100644 index 3c768c8c..00000000 --- a/examples/example-016-Referencing-Objects-on-the-Web-expanded.jsonld +++ /dev/null @@ -1,6 +0,0 @@ -[{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/knows": [{"@id": "http://greggkellogg.net/foaf#me"}] -}] \ No newline at end of file diff --git a/examples/example-016-Referencing-Objects-on-the-Web-original.jsonld b/examples/example-016-Referencing-Objects-on-the-Web-original.jsonld deleted file mode 100644 index be244e74..00000000 --- a/examples/example-016-Referencing-Objects-on-the-Web-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/", - "knows": {"@type": "@id"} - }, - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" -} \ No newline at end of file diff --git a/examples/example-016-Referencing-Objects-on-the-Web-statements.table b/examples/example-016-Referencing-Objects-on-the-Web-statements.table deleted file mode 100644 index ecc5c3e2..00000000 --- a/examples/example-016-Referencing-Objects-on-the-Web-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://manu.sporny.org/about#manurdf:typeschema:Person
http://manu.sporny.org/about#manuschema:nameManu Sporny
http://manu.sporny.org/about#manuschema:knowshttp://greggkellogg.net/foaf#me
\ No newline at end of file diff --git a/examples/example-016-Referencing-Objects-on-the-Web-turtle.ttl b/examples/example-016-Referencing-Objects-on-the-Web-turtle.ttl deleted file mode 100644 index 1ac8634a..00000000 --- a/examples/example-016-Referencing-Objects-on-the-Web-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Person; - schema:name "Manu Sporny"; - schema:knows . \ No newline at end of file diff --git a/examples/example-017-Embedding-Objects-expanded.jsonld b/examples/example-017-Embedding-Objects-expanded.jsonld deleted file mode 100644 index 50b8c5d9..00000000 --- a/examples/example-017-Embedding-Objects-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/knows": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Gregg Kellogg"}] - }] -}] \ No newline at end of file diff --git a/examples/example-017-Embedding-Objects-original.jsonld b/examples/example-017-Embedding-Objects-original.jsonld deleted file mode 100644 index dce0cdd5..00000000 --- a/examples/example-017-Embedding-Objects-original.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/" - }, - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg" - } -} \ No newline at end of file diff --git a/examples/example-017-Embedding-Objects-statements.table b/examples/example-017-Embedding-Objects-statements.table deleted file mode 100644 index 496d6a61..00000000 --- a/examples/example-017-Embedding-Objects-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://manu.sporny.org/about#manurdf:typeschema:Person
http://manu.sporny.org/about#manuschema:nameManu Sporny
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
http://manu.sporny.org/about#manuschema:knowshttp://greggkellogg.net/foaf#me
\ No newline at end of file diff --git a/examples/example-017-Embedding-Objects-turtle.ttl b/examples/example-017-Embedding-Objects-turtle.ttl deleted file mode 100644 index 4aa4a9b9..00000000 --- a/examples/example-017-Embedding-Objects-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Person; - schema:name "Manu Sporny"; - schema:knows . - a schema:Person; - schema:name "Gregg Kellogg" . \ No newline at end of file diff --git a/examples/example-018-Using-multiple-contexts-expanded.jsonld b/examples/example-018-Using-multiple-contexts-expanded.jsonld deleted file mode 100644 index 392b75d5..00000000 --- a/examples/example-018-Using-multiple-contexts-expanded.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -[{ - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/homepage": [{"@id": "http://manu.sporny.org/"}], - "http://xmlns.com/foaf/0.1/depiction": [{"@id": "http://twitter.com/account/profile_image/manusporny"}] -}, { - "http://purl.org/dc/terms/title": [{"@value": "The Empire State Building"}], - "http://purl.org/dc/terms/description": [{ - "@value": "The Empire State Building is a 102-story landmark in New York City." - }], - "http://schema.org/geo": [{ - "http://www.w3.org/2003/01/geo/wgs84_pos#lat": [{ - "@type": "http://www.w3.org/2001/XMLSchema#decimal", - "@value": "40.75" - }], - "http://www.w3.org/2003/01/geo/wgs84_pos#long": [{ - "@type": "http://www.w3.org/2001/XMLSchema#decimal", - "@value": "73.98" - }] - }] -}] \ No newline at end of file diff --git a/examples/example-018-Using-multiple-contexts-original.jsonld b/examples/example-018-Using-multiple-contexts-original.jsonld deleted file mode 100644 index 822bef23..00000000 --- a/examples/example-018-Using-multiple-contexts-original.jsonld +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "@context": "https://json-ld.org/contexts/person.jsonld", - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/", - "depiction": "http://twitter.com/account/profile_image/manusporny" - }, - { - "@context": "https://json-ld.org/contexts/place.jsonld", - "name": "The Empire State Building", - "description": "The Empire State Building is a 102-story landmark in New York City.", - "geo": { - "latitude": "40.75", - "longitude": "73.98" - } - } -] \ No newline at end of file diff --git a/examples/example-018-Using-multiple-contexts-statements.table b/examples/example-018-Using-multiple-contexts-statements.table deleted file mode 100644 index 394a8a86..00000000 --- a/examples/example-018-Using-multiple-contexts-statements.table +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
_:b0foaf:nameManu Sporny
_:b0foaf:homepagehttp://manu.sporny.org/
_:b0foaf:depictionhttp://twitter.com/account/profile_image/manusporny
_:b1dc:titleThe Empire State Building
_:b1dc:descriptionThe Empire State Building is a 102-story landmark in New York City.
_:b2geo:lat40.75xsd:decimal
_:b2geo:long73.98xsd:decimal
_:b1schema:geo_:b2
\ No newline at end of file diff --git a/examples/example-018-Using-multiple-contexts-turtle.ttl b/examples/example-018-Using-multiple-contexts-turtle.ttl deleted file mode 100644 index 69d4e915..00000000 --- a/examples/example-018-Using-multiple-contexts-turtle.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix dc: . -@prefix foaf: . -@prefix geo: . -@prefix schema: . -@prefix xsd: . -[ - foaf:name "Manu Sporny"; - foaf:homepage ; - foaf:depiction -] . -[ - dc:title "The Empire State Building"; - dc:description "The Empire State Building is a 102-story landmark in New York City."; - schema:geo [ - geo:lat 40.75; - geo:long 73.98 - ] -] . \ No newline at end of file diff --git a/examples/example-019-Scoped-contexts-within-node-objects-expanded.jsonld b/examples/example-019-Scoped-contexts-within-node-objects-expanded.jsonld deleted file mode 100644 index d84971c0..00000000 --- a/examples/example-019-Scoped-contexts-within-node-objects-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "http://example.com/person#details": [{ - "http://example.com/organization#name": [{ - "@value": "Graz University of Technology" - }] - }], - "http://example.com/person#name": [{"@value": "Markus Lanthaler"}] -}] \ No newline at end of file diff --git a/examples/example-019-Scoped-contexts-within-node-objects-original.jsonld b/examples/example-019-Scoped-contexts-within-node-objects-original.jsonld deleted file mode 100644 index f7184fdf..00000000 --- a/examples/example-019-Scoped-contexts-within-node-objects-original.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "name": "http://example.com/person#name", - "details": "http://example.com/person#details" - }, - "name": "Markus Lanthaler", - "details": { - "@context": { - "name": "http://example.com/organization#name" - }, - "name": "Graz University of Technology" - } -} \ No newline at end of file diff --git a/examples/example-019-Scoped-contexts-within-node-objects-statements.table b/examples/example-019-Scoped-contexts-within-node-objects-statements.table deleted file mode 100644 index 226ad3ff..00000000 --- a/examples/example-019-Scoped-contexts-within-node-objects-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b1http://example.com/organization#nameGraz University of Technology
_:b0http://example.com/person#details_:b1
_:b0http://example.com/person#nameMarkus Lanthaler
\ No newline at end of file diff --git a/examples/example-019-Scoped-contexts-within-node-objects-turtle.ttl b/examples/example-019-Scoped-contexts-within-node-objects-turtle.ttl deleted file mode 100644 index 61412eb8..00000000 --- a/examples/example-019-Scoped-contexts-within-node-objects-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix person: . -@prefix org: . -[ - person:name "Markus Lanthaler"; - person:details [org:name "Graz University of Technology"] -] . \ No newline at end of file diff --git a/examples/example-020-Combining-external-and-local-contexts-expanded.jsonld b/examples/example-020-Combining-external-and-local-contexts-expanded.jsonld deleted file mode 100644 index a2ed8f07..00000000 --- a/examples/example-020-Combining-external-and-local-contexts-expanded.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -[{ - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/homepage": [{"@id": "http://manu.sporny.org/"}], - "http://xmlns.com/foaf/0.1/depiction": [{ - "@value": "http://twitter.com/account/profile_image/manusporny" - }] -}] \ No newline at end of file diff --git a/examples/example-020-Combining-external-and-local-contexts-original.jsonld b/examples/example-020-Combining-external-and-local-contexts-original.jsonld deleted file mode 100644 index 769b36e0..00000000 --- a/examples/example-020-Combining-external-and-local-contexts-original.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": [ - "https://json-ld.org/contexts/person.jsonld", - { - "pic": "http://xmlns.com/foaf/0.1/depiction" - } - ], - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/", - "pic": "http://twitter.com/account/profile_image/manusporny" -} \ No newline at end of file diff --git a/examples/example-020-Combining-external-and-local-contexts-statements.table b/examples/example-020-Combining-external-and-local-contexts-statements.table deleted file mode 100644 index 1a713ee4..00000000 --- a/examples/example-020-Combining-external-and-local-contexts-statements.table +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
_:b0foaf:nameManu Sporny
_:b0foaf:homepagehttp://manu.sporny.org/IRI
_:b0foaf:depictionhttp://twitter.com/account/profile_image/manuspornyxsd:string
\ No newline at end of file diff --git a/examples/example-020-Combining-external-and-local-contexts-turtle.ttl b/examples/example-020-Combining-external-and-local-contexts-turtle.ttl deleted file mode 100644 index d7410ebd..00000000 --- a/examples/example-020-Combining-external-and-local-contexts-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -[ - foaf:name "Manu Sporny"; - foaf:homepage ; - foaf:depiction "http://twitter.com/account/profile_image/manusporny" -] . \ No newline at end of file diff --git a/examples/example-021-Setting-version-in-context.jsonld b/examples/example-021-Setting-version-in-context.jsonld deleted file mode 100644 index 4caa4695..00000000 --- a/examples/example-021-Setting-version-in-context.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": { - "@version": 1.1 - } -} \ No newline at end of file diff --git a/examples/example-022-Using-a-common-vocabulary-prefix-expanded.jsonld b/examples/example-022-Using-a-common-vocabulary-prefix-expanded.jsonld deleted file mode 100644 index 48c63120..00000000 --- a/examples/example-022-Using-a-common-vocabulary-prefix-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "@id": "http://example.org/places#BrewEats", - "@type": ["http://schema.org/Restaurant"], - "http://schema.org/name": [{"@value": "Brew Eats"}] -}] \ No newline at end of file diff --git a/examples/example-022-Using-a-common-vocabulary-prefix-original.jsonld b/examples/example-022-Using-a-common-vocabulary-prefix-original.jsonld deleted file mode 100644 index 08f9ca75..00000000 --- a/examples/example-022-Using-a-common-vocabulary-prefix-original.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/" - }, - "@id": "http://example.org/places#BrewEats", - "@type": "Restaurant", - "name": "Brew Eats" -} \ No newline at end of file diff --git a/examples/example-022-Using-a-common-vocabulary-prefix-statements.table b/examples/example-022-Using-a-common-vocabulary-prefix-statements.table deleted file mode 100644 index 5bdb46cb..00000000 --- a/examples/example-022-Using-a-common-vocabulary-prefix-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typeschema:Restaurant
http://example.org/places#BrewEatsschema:nameBrew Eats
\ No newline at end of file diff --git a/examples/example-022-Using-a-common-vocabulary-prefix-turtle.ttl b/examples/example-022-Using-a-common-vocabulary-prefix-turtle.ttl deleted file mode 100644 index 61642179..00000000 --- a/examples/example-022-Using-a-common-vocabulary-prefix-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix schema: . - a schema:Restaurant; - schema:name "Brew Eats" . \ No newline at end of file diff --git a/examples/example-023-Using-the-null-keyword-to-ignore-data-expanded.jsonld b/examples/example-023-Using-the-null-keyword-to-ignore-data-expanded.jsonld deleted file mode 100644 index 48c63120..00000000 --- a/examples/example-023-Using-the-null-keyword-to-ignore-data-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "@id": "http://example.org/places#BrewEats", - "@type": ["http://schema.org/Restaurant"], - "http://schema.org/name": [{"@value": "Brew Eats"}] -}] \ No newline at end of file diff --git a/examples/example-023-Using-the-null-keyword-to-ignore-data-original.jsonld b/examples/example-023-Using-the-null-keyword-to-ignore-data-original.jsonld deleted file mode 100644 index 3a67c1ad..00000000 --- a/examples/example-023-Using-the-null-keyword-to-ignore-data-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/", - "databaseId": null - }, - "@id": "http://example.org/places#BrewEats", - "@type": "Restaurant", - "name": "Brew Eats", - "databaseId": "23987520" -} \ No newline at end of file diff --git a/examples/example-023-Using-the-null-keyword-to-ignore-data-statements.table b/examples/example-023-Using-the-null-keyword-to-ignore-data-statements.table deleted file mode 100644 index 65360c9d..00000000 --- a/examples/example-023-Using-the-null-keyword-to-ignore-data-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typeschema:Restaurant
http://example.org/places#BrewEatsschema:nameBrew Eats
\ No newline at end of file diff --git a/examples/example-023-Using-the-null-keyword-to-ignore-data-turtle.ttl b/examples/example-023-Using-the-null-keyword-to-ignore-data-turtle.ttl deleted file mode 100644 index 61642179..00000000 --- a/examples/example-023-Using-the-null-keyword-to-ignore-data-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix schema: . - a schema:Restaurant; - schema:name "Brew Eats" . \ No newline at end of file diff --git a/examples/example-024-Using-as-the-vocabulary-mapping.jsonld b/examples/example-024-Using-as-the-vocabulary-mapping.jsonld deleted file mode 100644 index 8454166e..00000000 --- a/examples/example-024-Using-as-the-vocabulary-mapping.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "@base": "http://example/document", - "@vocab": "" - }, - "@id": "http://example.org/places#BrewEats", - "@type": "#Restaurant", - "#name": "Brew Eats" -} \ No newline at end of file diff --git a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.jsonld b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.jsonld deleted file mode 100644 index d97ef8aa..00000000 --- a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "@id": "http://example.org/places#BrewEats", - "@type": ["http://example/document#Restaurant"], - "http://example/document#name": [{"@value": "Brew Eats"}] -}] \ No newline at end of file diff --git a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-statements.table b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-statements.table deleted file mode 100644 index 8b3c8417..00000000 --- a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typehttp://example/document#Restaurant
http://example.org/places#BrewEatshttp://example/document#nameBrew Eats
\ No newline at end of file diff --git a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-turtle.ttl b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-turtle.ttl deleted file mode 100644 index 8a64c1e9..00000000 --- a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-turtle.ttl +++ /dev/null @@ -1,2 +0,0 @@ - a ; - "Brew Eats" . \ No newline at end of file diff --git a/examples/example-026-Use-a-relative-IRI-as-node-identifier.jsonld b/examples/example-026-Use-a-relative-IRI-as-node-identifier.jsonld deleted file mode 100644 index 0a0eb483..00000000 --- a/examples/example-026-Use-a-relative-IRI-as-node-identifier.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "label": "http://www.w3.org/2000/01/rdf-schema#label" - }, - "@id": "", - "label": "Just a simple document" -} \ No newline at end of file diff --git a/examples/example-027-Setting-the-document-base-in-a-document-expanded.jsonld b/examples/example-027-Setting-the-document-base-in-a-document-expanded.jsonld deleted file mode 100644 index 8cd35f11..00000000 --- a/examples/example-027-Setting-the-document-base-in-a-document-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@id": "http://example.com/document.jsonld", - "http://www.w3.org/2000/01/rdf-schema#label": [{"@value": "Just a simple document"}] -}] \ No newline at end of file diff --git a/examples/example-027-Setting-the-document-base-in-a-document-original.jsonld b/examples/example-027-Setting-the-document-base-in-a-document-original.jsonld deleted file mode 100644 index e650ca32..00000000 --- a/examples/example-027-Setting-the-document-base-in-a-document-original.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "@base": "http://example.com/document.jsonld", - "label": "http://www.w3.org/2000/01/rdf-schema#label" - }, - "@id": "", - "label": "Just a simple document" -} \ No newline at end of file diff --git a/examples/example-027-Setting-the-document-base-in-a-document-statements.table b/examples/example-027-Setting-the-document-base-in-a-document-statements.table deleted file mode 100644 index 54ec57b8..00000000 --- a/examples/example-027-Setting-the-document-base-in-a-document-statements.table +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.com/document.jsonldrdfs:labelJust a simple document
\ No newline at end of file diff --git a/examples/example-027-Setting-the-document-base-in-a-document-turtle.ttl b/examples/example-027-Setting-the-document-base-in-a-document-turtle.ttl deleted file mode 100644 index 3da37cbf..00000000 --- a/examples/example-027-Setting-the-document-base-in-a-document-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@base . -@prefix rdfs: . -<> rdfs:label "Just a simple document" . \ No newline at end of file diff --git a/examples/example-028-Prefix-expansion-expanded.jsonld b/examples/example-028-Prefix-expansion-expanded.jsonld deleted file mode 100644 index 31a2b925..00000000 --- a/examples/example-028-Prefix-expansion-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Dave Longley"}] -}] \ No newline at end of file diff --git a/examples/example-028-Prefix-expansion-original.jsonld b/examples/example-028-Prefix-expansion-original.jsonld deleted file mode 100644 index 1d430e0f..00000000 --- a/examples/example-028-Prefix-expansion-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/" - }, - "@type": "foaf:Person", - "foaf:name": "Dave Longley" -} \ No newline at end of file diff --git a/examples/example-028-Prefix-expansion-statements.table b/examples/example-028-Prefix-expansion-statements.table deleted file mode 100644 index f8b614dc..00000000 --- a/examples/example-028-Prefix-expansion-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0rdf:typefoaf:Person
_:b0foaf:nameDave Longley
\ No newline at end of file diff --git a/examples/example-028-Prefix-expansion-turtle.ttl b/examples/example-028-Prefix-expansion-turtle.ttl deleted file mode 100644 index 7b4af95d..00000000 --- a/examples/example-028-Prefix-expansion-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - [ - a foaf:Person; - foaf:name "Dave Longley" - ] . \ No newline at end of file diff --git a/examples/example-029-Using-vocabularies-expanded.jsonld b/examples/example-029-Using-vocabularies-expanded.jsonld deleted file mode 100644 index 24ed00eb..00000000 --- a/examples/example-029-Using-vocabularies-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://me.markus-lanthaler.com/", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{ - "@value": "Markus Lanthaler" - }], - "http://xmlns.com/foaf/0.1/homepage": [{ - "@id": "http://www.markus-lanthaler.com/" - }], - "http://xmlns.com/foaf/0.1/depiction": [{ - "@id": "http://twitter.com/account/profile_image/markuslanthaler" - }] -}] \ No newline at end of file diff --git a/examples/example-029-Using-vocabularies-original.jsonld b/examples/example-029-Using-vocabularies-original.jsonld deleted file mode 100644 index 47d9ccd1..00000000 --- a/examples/example-029-Using-vocabularies-original.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "xsd": "http://www.w3.org/2001/XMLSchema#", - "foaf": "http://xmlns.com/foaf/0.1/", - "foaf:homepage": { "@type": "@id" }, - "picture": { "@id": "foaf:depiction", "@type": "@id" } - }, - "@id": "http://me.markus-lanthaler.com/", - "@type": "foaf:Person", - "foaf:name": "Markus Lanthaler", - "foaf:homepage": "http://www.markus-lanthaler.com/", - "picture": "http://twitter.com/account/profile_image/markuslanthaler" -} \ No newline at end of file diff --git a/examples/example-029-Using-vocabularies-statements.table b/examples/example-029-Using-vocabularies-statements.table deleted file mode 100644 index 869329d3..00000000 --- a/examples/example-029-Using-vocabularies-statements.table +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://me.markus-lanthaler.com/rdf:typefoaf:Person
http://me.markus-lanthaler.com/foaf:nameMarkus Lanthaler
http://me.markus-lanthaler.com/foaf:depictionhttp://twitter.com/account/profile_image/markuslanthaler
http://me.markus-lanthaler.com/foaf:homepagehttp://www.markus-lanthaler.com/
\ No newline at end of file diff --git a/examples/example-029-Using-vocabularies-turtle.ttl b/examples/example-029-Using-vocabularies-turtle.ttl deleted file mode 100644 index 7bf236b3..00000000 --- a/examples/example-029-Using-vocabularies-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - a foaf:Person; - foaf:name "Markus Lanthaler"; - foaf:homepage ; - foaf:depiction . \ No newline at end of file diff --git a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.jsonld b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.jsonld deleted file mode 100644 index 3263d375..00000000 --- a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "http://example.com/property": [{ - "@id": "http://example.com/compact-iris-are-considered", - "http://example.com/property": [{ - "@value": "@prefix does not require a gen-delim" - }] - }] -}] \ No newline at end of file diff --git a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.jsonld b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.jsonld deleted file mode 100644 index 409ccb51..00000000 --- a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true}, - "property": "http://example.com/property" - }, - "property": { - "@id": "compact-iris:are-considered", - "property": "@prefix does not require a gen-delim" - } -} \ No newline at end of file diff --git a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-statements.table b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-statements.table deleted file mode 100644 index 31d660bc..00000000 --- a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.com/compact-iris-are-consideredhttp://example.com/property@prefix does not require a gen-delim
_:b0http://example.com/propertyhttp://example.com/compact-iris-are-considered
\ No newline at end of file diff --git a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-turtle.ttl b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-turtle.ttl deleted file mode 100644 index 1c30bad2..00000000 --- a/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix compact-iris: . -@prefix xsd: . -[ compact-iris:are-considered ] . -compact-iris:are-considered - "@prefix does not require a gen-delim" . \ No newline at end of file diff --git a/examples/example-031-Aliasing-keywords-expanded.jsonld b/examples/example-031-Aliasing-keywords-expanded.jsonld deleted file mode 100644 index f34994b6..00000000 --- a/examples/example-031-Aliasing-keywords-expanded.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -[{ - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], - "@id": "http://example.com/about#gregg" -}] \ No newline at end of file diff --git a/examples/example-031-Aliasing-keywords-original.jsonld b/examples/example-031-Aliasing-keywords-original.jsonld deleted file mode 100644 index b5324408..00000000 --- a/examples/example-031-Aliasing-keywords-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "url": "@id", - "a": "@type", - "name": "http://xmlns.com/foaf/0.1/name" - }, - "url": "http://example.com/about#gregg", - "a": "http://xmlns.com/foaf/0.1/Person", - "name": "Gregg Kellogg" -} \ No newline at end of file diff --git a/examples/example-031-Aliasing-keywords-statements.table b/examples/example-031-Aliasing-keywords-statements.table deleted file mode 100644 index e982c318..00000000 --- a/examples/example-031-Aliasing-keywords-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.com/about#greggrdf:typefoaf:Person
http://example.com/about#greggfoaf:nameGregg Kellogg
\ No newline at end of file diff --git a/examples/example-031-Aliasing-keywords-turtle.ttl b/examples/example-031-Aliasing-keywords-turtle.ttl deleted file mode 100644 index 82d3bf74..00000000 --- a/examples/example-031-Aliasing-keywords-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix foaf: . - a foaf:Person; - foaf:name "Gregg Kellogg" . \ No newline at end of file diff --git a/examples/example-032-IRI-expansion-within-a-context.jsonld b/examples/example-032-IRI-expansion-within-a-context.jsonld deleted file mode 100644 index 78333c0c..00000000 --- a/examples/example-032-IRI-expansion-within-a-context.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "xsd": "http://www.w3.org/2001/XMLSchema#", - "name": "http://xmlns.com/foaf/0.1/name", - "age": { - "@id": "http://xmlns.com/foaf/0.1/age", - "@type": "xsd:integer" - }, - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.jsonld b/examples/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.jsonld deleted file mode 100644 index bb942223..00000000 --- a/examples/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "name": "foaf:name", - "age": { - "@id": "foaf:age", - "@type": "xsd:integer" - }, - "homepage": { - "@id": "foaf:homepage", - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-034-Using-a-compact-IRI-as-a-term.jsonld b/examples/example-034-Using-a-compact-IRI-as-a-term.jsonld deleted file mode 100644 index d5613fe9..00000000 --- a/examples/example-034-Using-a-compact-IRI-as-a-term.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "name": "foaf:name", - "foaf:age": { - "@type": "xsd:integer" - }, - "foaf:homepage": { - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-035-Associating-context-definitions-with-absolute-IRIs.jsonld b/examples/example-035-Associating-context-definitions-with-absolute-IRIs.jsonld deleted file mode 100644 index 0e9d8ad3..00000000 --- a/examples/example-035-Associating-context-definitions-with-absolute-IRIs.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "name": "foaf:name", - "foaf:age": { - "@id": "foaf:age", - "@type": "xsd:integer" - }, - "http://xmlns.com/foaf/0.1/homepage": { - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-037-Defining-an-context-within-a-term-definition-expanded.jsonld b/examples/example-037-Defining-an-context-within-a-term-definition-expanded.jsonld deleted file mode 100644 index f1d22bad..00000000 --- a/examples/example-037-Defining-an-context-within-a-term-definition-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "http://xmlns.com/foaf/0.1/interest": [ - { - "@id": "https://www.w3.org/TR/json-ld11/", - "http://schema.org/name": [{"@value": "JSON-LD"}], - "http://xmlns.com/foaf/0.1/topic": [{"@value": "Linking Data"}] - } - ], - "http://schema.org/name": [{"@value": "Manu Sporny"}] -}] \ No newline at end of file diff --git a/examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld b/examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld deleted file mode 100644 index 750b9ed9..00000000 --- a/examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "name": "http://schema.org/name", - "interest": { - "@id": "http://xmlns.com/foaf/0.1/interest", - "@context": {"@vocab": "http://xmlns.com/foaf/0.1/"} - } - }, - "name": "Manu Sporny", - "interest": { - "@id": "https://www.w3.org/TR/json-ld11/", - "name": "JSON-LD", - "topic": "Linking Data" - } -} \ No newline at end of file diff --git a/examples/example-037-Defining-an-context-within-a-term-definition-statements.table b/examples/example-037-Defining-an-context-within-a-term-definition-statements.table deleted file mode 100644 index 605b4564..00000000 --- a/examples/example-037-Defining-an-context-within-a-term-definition-statements.table +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
https://www.w3.org/TR/json-ld11/schema:nameJSON-LD
https://www.w3.org/TR/json-ld11/foaf:topicLinking Data
_:b0schema:nameManu Sporny
_:b0foaf:interesthttps://www.w3.org/TR/json-ld11/
\ No newline at end of file diff --git a/examples/example-037-Defining-an-context-within-a-term-definition-turtle.ttl b/examples/example-037-Defining-an-context-within-a-term-definition-turtle.ttl deleted file mode 100644 index da14b2b5..00000000 --- a/examples/example-037-Defining-an-context-within-a-term-definition-turtle.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix schema: . -[ - schema:name "Manu Sporny"; - foaf:interest -] . - schema:name "JSON-LD"; - foaf:topic "Linking Data" . \ No newline at end of file diff --git a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.jsonld b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.jsonld deleted file mode 100644 index 0e59dae8..00000000 --- a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -[{ - "@type": ["http://schema.org/Person"], - "http://xmlns.com/foaf/0.1/interest": [ - { - "@id": "https://www.w3.org/TR/json-ld11/", - "@type": ["http://xmlns.com/foaf/0.1/Document"], - "http://schema.org/name": [{"@value": "JSON-LD"}], - "http://xmlns.com/foaf/0.1/topic": [{"@value": "Linking Data"}] - } - ], - "http://schema.org/name": [{"@value": "Manu Sporny"}] -}] \ No newline at end of file diff --git a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld deleted file mode 100644 index dfac38c0..00000000 --- a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "name": "http://schema.org/name", - "interest": "http://xmlns.com/foaf/0.1/interest", - "Person": "http://schema.org/Person", - "Document": { - "@id": "http://xmlns.com/foaf/0.1/Document", - "@context": {"@vocab": "http://xmlns.com/foaf/0.1/"} - } - }, - "@type": "Person", - "name": "Manu Sporny", - "interest": { - "@id": "https://www.w3.org/TR/json-ld11/", - "@type": "Document", - "name": "JSON-LD", - "topic": "Linking Data" - } -} \ No newline at end of file diff --git a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-statements.table b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-statements.table deleted file mode 100644 index 8cdd2863..00000000 --- a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-statements.table +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0rdf:typeschema:Person
https://www.w3.org/TR/json-ld11/rdf:typefoaf:Document
https://www.w3.org/TR/json-ld11/schema:nameJSON-LD
https://www.w3.org/TR/json-ld11/foaf:topicLinking Data
_:b0schema:nameManu Sporny
_:b0foaf:interesthttps://www.w3.org/TR/json-ld11/
\ No newline at end of file diff --git a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-turtle.ttl b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-turtle.ttl deleted file mode 100644 index 6061f3d1..00000000 --- a/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-turtle.ttl +++ /dev/null @@ -1,10 +0,0 @@ -@prefix foaf: . -@prefix schema: . -[ - a schema:Person; - schema:name "Manu Sporny"; - foaf:interest -] . - a foaf:Document; - schema:name "JSON-LD"; - foaf:topic "Linking Data" . \ No newline at end of file diff --git a/examples/example-039-Expanded-term-definition-with-type-coercion-expanded.jsonld b/examples/example-039-Expanded-term-definition-with-type-coercion-expanded.jsonld deleted file mode 100644 index 2c526466..00000000 --- a/examples/example-039-Expanded-term-definition-with-type-coercion-expanded.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -[{ - "@id": "http://example.com/docs/1", - "http://purl.org/dc/terms/modified": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#dateTime", - "@value": "2010-05-29T14:17:39+02:00" - } - ] -}] \ No newline at end of file diff --git a/examples/example-039-Expanded-term-definition-with-type-coercion-original.jsonld b/examples/example-039-Expanded-term-definition-with-type-coercion-original.jsonld deleted file mode 100644 index fc060855..00000000 --- a/examples/example-039-Expanded-term-definition-with-type-coercion-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "modified": { - "@id": "http://purl.org/dc/terms/modified", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - } - }, - "@id": "http://example.com/docs/1", - "modified": "2010-05-29T14:17:39+02:00" -} \ No newline at end of file diff --git a/examples/example-039-Expanded-term-definition-with-type-coercion-statements.table b/examples/example-039-Expanded-term-definition-with-type-coercion-statements.table deleted file mode 100644 index 534fc4bd..00000000 --- a/examples/example-039-Expanded-term-definition-with-type-coercion-statements.table +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/docs/1dc:modified2010-05-29T14:17:39+02:00xsd:dateTime
\ No newline at end of file diff --git a/examples/example-039-Expanded-term-definition-with-type-coercion-turtle.ttl b/examples/example-039-Expanded-term-definition-with-type-coercion-turtle.ttl deleted file mode 100644 index 58bd5573..00000000 --- a/examples/example-039-Expanded-term-definition-with-type-coercion-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix dc: . -@prefix xsd: . - dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime . \ No newline at end of file diff --git a/examples/example-040-Expanded-value-with-type-expanded.jsonld b/examples/example-040-Expanded-value-with-type-expanded.jsonld deleted file mode 100644 index 20f26c02..00000000 --- a/examples/example-040-Expanded-value-with-type-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "http://purl.org/dc/terms/modified": [ - { - "@type": "http://www.w3.org/2001/XMLSchema#dateTime", - "@value": "2010-05-29T14:17:39+02:00" - } - ] -}] \ No newline at end of file diff --git a/examples/example-040-Expanded-value-with-type-original.jsonld b/examples/example-040-Expanded-value-with-type-original.jsonld deleted file mode 100644 index 91388f64..00000000 --- a/examples/example-040-Expanded-value-with-type-original.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "modified": { - "@id": "http://purl.org/dc/terms/modified" - } - }, - "modified": { - "@value": "2010-05-29T14:17:39+02:00", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - } -} \ No newline at end of file diff --git a/examples/example-040-Expanded-value-with-type-statements.table b/examples/example-040-Expanded-value-with-type-statements.table deleted file mode 100644 index 58d3187e..00000000 --- a/examples/example-040-Expanded-value-with-type-statements.table +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
_:b0dc:modified2010-05-29T14:17:39+02:00xsd:dateTime
\ No newline at end of file diff --git a/examples/example-040-Expanded-value-with-type-turtle.ttl b/examples/example-040-Expanded-value-with-type-turtle.ttl deleted file mode 100644 index 66f64e02..00000000 --- a/examples/example-040-Expanded-value-with-type-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix dc: . -@prefix xsd: . -[ dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime ] . \ No newline at end of file diff --git a/examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld b/examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld deleted file mode 100644 index 4272b88f..00000000 --- a/examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@id": "http://example.org/posts#TripToWestVirginia", - "@type": "http://schema.org/BlogPosting", - "http://purl.org/dc/terms/modified": { - "@value": "2010-05-29T14:17:39+02:00", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - } -} \ No newline at end of file diff --git a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-original.table b/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-original.table deleted file mode 100644 index 4fa2aee2..00000000 --- a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-original.table +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.org/posts#TripToWestVirginiardf:typeschema:BlogPosting
http://example.org/posts#TripToWestVirginiadc:modified2010-05-29T14:17:39+02:00xsd:dateTime
\ No newline at end of file diff --git a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-turtle.ttl b/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-turtle.ttl deleted file mode 100644 index f3850b08..00000000 --- a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix dc: . -@prefix schema: . -@prefix xsd: . - a schema:BlogPosting; - dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime . \ No newline at end of file diff --git a/examples/example-043-Expanded-term-definition-with-types-Turtle.ttl b/examples/example-043-Expanded-term-definition-with-types-Turtle.ttl deleted file mode 100644 index b8445574..00000000 --- a/examples/example-043-Expanded-term-definition-with-types-Turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix dc: . -@prefix foaf: . - foaf:name "John Smith"; - foaf:age 41; - foaf:homepage , - -. \ No newline at end of file diff --git a/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld b/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld deleted file mode 100644 index af64345f..00000000 --- a/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.com/people#john", - "http://xmlns.com/foaf/0.1/name": [{"@value": "John Smith"}], - "http://xmlns.com/foaf/0.1/age": [{ - "@value": "41", - "@type": "http://www.w3.org/2001/XMLSchema#integer" - }], - "http://xmlns.com/foaf/0.1/homepage": [{ - "@id": "http://personal.example.org/" - }, { - "@id": "http://work.example.com/jsmith/" - }] -}] \ No newline at end of file diff --git a/examples/example-043-Expanded-term-definition-with-types-original.jsonld b/examples/example-043-Expanded-term-definition-with-types-original.jsonld deleted file mode 100644 index b5f0b917..00000000 --- a/examples/example-043-Expanded-term-definition-with-types-original.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "xsd": "http://www.w3.org/2001/XMLSchema#", - "name": "http://xmlns.com/foaf/0.1/name", - "age": { - "@id": "http://xmlns.com/foaf/0.1/age", - "@type": "xsd:integer" - }, - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - }, - "@id": "http://example.com/people#john", - "name": "John Smith", - "age": "41", - "homepage": [ - "http://personal.example.org/", - "http://work.example.com/jsmith/" - ] -} \ No newline at end of file diff --git a/examples/example-043-Expanded-term-definition-with-types-statements.table b/examples/example-043-Expanded-term-definition-with-types-statements.table deleted file mode 100644 index 72571d25..00000000 --- a/examples/example-043-Expanded-term-definition-with-types-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/people#johnfoaf:nameJohn Smith 
http://example.com/people#johnfoaf:age41xsd:integer
http://example.com/people#johnfoaf:homepagehttp://personal.example.org/IRI
http://example.com/people#johnfoaf:homepagehttp://work.example.com/jsmith/IRI
\ No newline at end of file diff --git a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.jsonld b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.jsonld deleted file mode 100644 index e6e79e90..00000000 --- a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -[{ - "http://xmlns.com/foaf/0.1/age": [{"@type": "http://www.w3.org/2001/XMLSchema#integer", "@value": "41"}], - "http://xmlns.com/foaf/0.1/name": [{"@value": "John Smith"}], - "http://xmlns.com/foaf/0.1/homepage": [ - {"@id": "http://personal.example.org/"}, - {"@id": "http://work.example.com/jsmith/"} - ] -} -] \ No newline at end of file diff --git a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld deleted file mode 100644 index f958106d..00000000 --- a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "xsd": "http://www.w3.org/2001/XMLSchema#", - "foaf": "http://xmlns.com/foaf/0.1/", - "foaf:age": { - "@id": "http://xmlns.com/foaf/0.1/age", - "@type": "xsd:integer" - }, - "http://xmlns.com/foaf/0.1/homepage": { - "@type": "@id" - } - }, - "foaf:name": "John Smith", - "foaf:age": "41", - "http://xmlns.com/foaf/0.1/homepage": [ - "http://personal.example.org/", - "http://work.example.com/jsmith/" - ] -} \ No newline at end of file diff --git a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-statements.table b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-statements.table deleted file mode 100644 index 50857f6a..00000000 --- a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
_:b0foaf:age41xsd:integer
_:b0foaf:nameJohn Smith
_:b0foaf:homepagehttp://personal.example.org/
_:b0foaf:homepagehttp://work.example.com/jsmith/
\ No newline at end of file diff --git a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-turtle.ttl b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-turtle.ttl deleted file mode 100644 index cbaa6875..00000000 --- a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-turtle.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - [ - foaf:age 41; - foaf:homepage , - ; - foaf:name "John Smith" -] . \ No newline at end of file diff --git a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.jsonld b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.jsonld deleted file mode 100644 index 2a6a562c..00000000 --- a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.jsonld +++ /dev/null @@ -1,4 +0,0 @@ -[{ - "http://example.org/name": [{"@value": "花澄", "@language": "ja"}], - "http://example.org/occupation": [{"@value": "科学者", "@language": "ja"}] -}] \ No newline at end of file diff --git a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld deleted file mode 100644 index f451b7e5..00000000 --- a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "name": "http://example.org/name", - "occupation": "http://example.org/occupation", - "@language": "ja" - }, - "name": "花澄", - "occupation": "科学者" -} \ No newline at end of file diff --git a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-statements.table b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-statements.table deleted file mode 100644 index b9b960c7..00000000 --- a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-statements.table +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
_:b0http://example.org/name花澄ja
_:b0http://example.org/occupation科学者ja
\ No newline at end of file diff --git a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-turtle.ttl b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-turtle.ttl deleted file mode 100644 index 44c94912..00000000 --- a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -[ - ex:name "花澄"@ja; - ex:occupation "科学者"@ja -] . \ No newline at end of file diff --git a/examples/example-046-Clearing-default-language.jsonld b/examples/example-046-Clearing-default-language.jsonld deleted file mode 100644 index 12034821..00000000 --- a/examples/example-046-Clearing-default-language.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "@language": "ja" - }, - "name": "花澄", - "details": { - "@context": { - "@language": null - }, - "occupation": "Ninja" - } -} \ No newline at end of file diff --git a/examples/example-047-Expanded-term-definition-with-language.jsonld b/examples/example-047-Expanded-term-definition-with-language.jsonld deleted file mode 100644 index 5b31175f..00000000 --- a/examples/example-047-Expanded-term-definition-with-language.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "ex": "http://example.com/vocab/", - "@language": "ja", - "name": { "@id": "ex:name", "@language": null }, - "occupation": { "@id": "ex:occupation" }, - "occupation_en": { "@id": "ex:occupation", "@language": "en" }, - "occupation_cs": { "@id": "ex:occupation", "@language": "cs" } - }, - "name": "Yagyū Muneyoshi", - "occupation": "忍者", - "occupation_en": "Ninja", - "occupation_cs": "Nindža" -} \ No newline at end of file diff --git a/examples/example-048-Language-map-expressing-a-property-in-three-languages.jsonld b/examples/example-048-Language-map-expressing-a-property-in-three-languages.jsonld deleted file mode 100644 index f1b8ca70..00000000 --- a/examples/example-048-Language-map-expressing-a-property-in-three-languages.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "occupation": { "@id": "ex:occupation", "@container": "@language" } - }, - "name": "Yagyū Muneyoshi", - "occupation": { - "ja": "忍者", - "en": "Ninja", - "cs": "Nindža" - } -} \ No newline at end of file diff --git a/examples/example-049-Overriding-default-language-using-an-expanded-value.jsonld b/examples/example-049-Overriding-default-language-using-an-expanded-value.jsonld deleted file mode 100644 index c90fccc7..00000000 --- a/examples/example-049-Overriding-default-language-using-an-expanded-value.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "@language": "ja" - }, - "name": "花澄", - "occupation": { - "@value": "Scientist", - "@language": "en" - } -} \ No newline at end of file diff --git a/examples/example-050-Removing-language-information-using-an-expanded-value.jsonld b/examples/example-050-Removing-language-information-using-an-expanded-value.jsonld deleted file mode 100644 index 9c8e1918..00000000 --- a/examples/example-050-Removing-language-information-using-an-expanded-value.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "@language": "ja" - }, - "name": { - "@value": "Frank" - }, - "occupation": { - "@value": "Ninja", - "@language": "en" - }, - "speciality": "手裏剣" -} \ No newline at end of file diff --git a/examples/example-051-Multiple-values-with-no-inherent-order-expanded.jsonld b/examples/example-051-Multiple-values-with-no-inherent-order-expanded.jsonld deleted file mode 100644 index b0852d15..00000000 --- a/examples/example-051-Multiple-values-with-no-inherent-order-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "http://example.org/people#joebob", - "http://xmlns.com/foaf/0.1/nick": [ - {"@value": "joe"}, - {"@value": "bob"}, - {"@value": "JB"} - ] -}] \ No newline at end of file diff --git a/examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld b/examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld deleted file mode 100644 index 45df6280..00000000 --- a/examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld +++ /dev/null @@ -1,5 +0,0 @@ -{ - "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, - "@id": "http://example.org/people#joebob", - "foaf:nick": [ "joe", "bob", "JB" ] -} \ No newline at end of file diff --git a/examples/example-051-Multiple-values-with-no-inherent-order-statements.table b/examples/example-051-Multiple-values-with-no-inherent-order-statements.table deleted file mode 100644 index 092575df..00000000 --- a/examples/example-051-Multiple-values-with-no-inherent-order-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nickjoe
http://example.org/people#joebobfoaf:nickbob
http://example.org/people#joebobfoaf:nickJB
\ No newline at end of file diff --git a/examples/example-051-Multiple-values-with-no-inherent-order-turtle.ttl b/examples/example-051-Multiple-values-with-no-inherent-order-turtle.ttl deleted file mode 100644 index be0d7036..00000000 --- a/examples/example-051-Multiple-values-with-no-inherent-order-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix foaf: . - foaf:nick - "joe", "bob", "JB" . \ No newline at end of file diff --git a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.jsonld b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.jsonld deleted file mode 100644 index 9654b6bc..00000000 --- a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -[{ - "@id": "http://example.org/articles/8", - "http://purl.org/dc/terms/title": [ - {"@value": "Das Kapital", "@language": "de"}, - {"@value": "Capital", "@language": "en"} - ] -}] \ No newline at end of file diff --git a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld deleted file mode 100644 index 0cbb85c5..00000000 --- a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": {"dc": "http://purl.org/dc/terms/"}, - "@id": "http://example.org/articles/8", - "dc:title": [ - { - "@value": "Das Kapital", - "@language": "de" - }, - { - "@value": "Capital", - "@language": "en" - } - ] -} \ No newline at end of file diff --git a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-statements.table b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-statements.table deleted file mode 100644 index 50ba8e97..00000000 --- a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-statements.table +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
http://example.org/articles/8dc:titleDas Kapitalde
http://example.org/articles/8dc:titleCapitalen
\ No newline at end of file diff --git a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-turtle.ttl b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-turtle.ttl deleted file mode 100644 index 2156c4b7..00000000 --- a/examples/example-052-Using-an-expanded-form-to-set-multiple-values-turtle.ttl +++ /dev/null @@ -1,3 +0,0 @@ -@prefix dc: . - dc:title - "Das Kapital"@de, "Capital"@en . \ No newline at end of file diff --git a/examples/example-053-Multiple-array-values-of-different-types-expanded.jsonld b/examples/example-053-Multiple-array-values-of-different-types-expanded.jsonld deleted file mode 100644 index 764c8ce1..00000000 --- a/examples/example-053-Multiple-array-values-of-different-types-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "@id": "http://example.org/people#michael", - "http://schema.org/name": [ - {"@value": "Michael"}, - {"@value": "Mike"}, - {"@value": "Miguel", "@language": "es"}, - {"@id": "https://www.wikidata.org/wiki/Q4927524" }, - {"@value": 42} - ] -}] \ No newline at end of file diff --git a/examples/example-053-Multiple-array-values-of-different-types-original.jsonld b/examples/example-053-Multiple-array-values-of-different-types-original.jsonld deleted file mode 100644 index cca5ae0b..00000000 --- a/examples/example-053-Multiple-array-values-of-different-types-original.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": {"schema": "http://schema.org/"}, - "@id": "http://example.org/people#michael", - "schema:name": [ - "Michael", - {"@value": "Mike"}, - {"@value": "Miguel", "@language": "es"}, - { "@id": "https://www.wikidata.org/wiki/Q4927524" }, - 42 - ] -} \ No newline at end of file diff --git a/examples/example-053-Multiple-array-values-of-different-types-statements.table b/examples/example-053-Multiple-array-values-of-different-types-statements.table deleted file mode 100644 index 1acbd15a..00000000 --- a/examples/example-053-Multiple-array-values-of-different-types-statements.table +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguageValue Type
http://example.org/people#michaelschema:nameMichael
http://example.org/people#michaelschema:nameMike
http://example.org/people#michaelschema:nameMigueles
http://example.org/people#michaelschema:namehttps://www.wikidata.org/wiki/Q4927524
http://example.org/people#michaelschema:name42 xsd:integer
\ No newline at end of file diff --git a/examples/example-053-Multiple-array-values-of-different-types-turtle.ttl b/examples/example-053-Multiple-array-values-of-different-types-turtle.ttl deleted file mode 100644 index 33949c1f..00000000 --- a/examples/example-053-Multiple-array-values-of-different-types-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . - schema:name - "Michael", - "Mike", - "Miguel"@es, - , - 42 . \ No newline at end of file diff --git a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.jsonld b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.jsonld deleted file mode 100644 index b97b3819..00000000 --- a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "@id": "http://example.org/people#joebob", - "http://xmlns.com/foaf/0.1/nick": [{ - "@list": [ - {"@value": "joe"}, - {"@value": "bob"}, - {"@value": "jaybee"} - ] - }] -}] \ No newline at end of file diff --git a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld deleted file mode 100644 index 264e09fe..00000000 --- a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, - "@id": "http://example.org/people#joebob", - "foaf:nick": { - "@list": [ "joe", "bob", "jaybee" ] - } -} \ No newline at end of file diff --git a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-statements.table b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-statements.table deleted file mode 100644 index f5b5bf64..00000000 --- a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-statements.table +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nick_:b0
_:b0rdf:firstjoe
_:b0rdf:rest_:b1
_:b1rdf:firstbob
_:b1rdf:rest_:b2
_:b2rdf:firstjaybee
_:b2rdf:restrdf:nil
\ No newline at end of file diff --git a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-turtle.ttl b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-turtle.ttl deleted file mode 100644 index 00fad5ba..00000000 --- a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-turtle.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix foaf: . - foaf:nick ("joe" "bob" "jaybee") . \ No newline at end of file diff --git a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.jsonld b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.jsonld deleted file mode 100644 index b97b3819..00000000 --- a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[{ - "@id": "http://example.org/people#joebob", - "http://xmlns.com/foaf/0.1/nick": [{ - "@list": [ - {"@value": "joe"}, - {"@value": "bob"}, - {"@value": "jaybee"} - ] - }] -}] \ No newline at end of file diff --git a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld deleted file mode 100644 index 05c634bc..00000000 --- a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "nick": { - "@id": "http://xmlns.com/foaf/0.1/nick", - "@container": "@list" - } - }, - "@id": "http://example.org/people#joebob", - "nick": [ "joe", "bob", "jaybee" ] -} \ No newline at end of file diff --git a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-statements.table b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-statements.table deleted file mode 100644 index 0ef9f7d5..00000000 --- a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-statements.table +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nick_:b0
_:b0rdf:firstjoe
_:b0rdf:rest_:b1
_:b1rdf:firstbob
_:b1rdf:rest_:b2
_:b2rdf:firstjaybee
_:b2rdf:restrdf:nil
\ No newline at end of file diff --git a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-turtle.ttl b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-turtle.ttl deleted file mode 100644 index 00fad5ba..00000000 --- a/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-turtle.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix foaf: . - foaf:nick ("joe" "bob" "jaybee") . \ No newline at end of file diff --git a/examples/example-056-Coordinates-expressed-in-GeoJSON.json b/examples/example-056-Coordinates-expressed-in-GeoJSON.json deleted file mode 100644 index 7bcc7a3b..00000000 --- a/examples/example-056-Coordinates-expressed-in-GeoJSON.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "type": "Feature", - "bbox": [-10.0, -10.0, 10.0, 10.0], - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [-10.0, -10.0], - [10.0, -10.0], - [10.0, 10.0], - [-10.0, -10.0] - ] - ] - } -} \ No newline at end of file diff --git a/examples/example-057-Coordinates-expressed-in-JSON-LD-expanded.jsonld b/examples/example-057-Coordinates-expressed-in-JSON-LD-expanded.jsonld deleted file mode 100644 index 46afc8e5..00000000 --- a/examples/example-057-Coordinates-expressed-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,24 +0,0 @@ -[{ - "@type": ["https://purl.org/geojson/vocab#Feature"], - "https://purl.org/geojson/vocab#bbox": [{ - "@list": [ - {"@value": -10.0}, - {"@value": -10.0}, - {"@value": 10.0}, - {"@value": 10.0} - ] - }], - "https://purl.org/geojson/vocab#geometry": [{ - "@type": ["https://purl.org/geojson/vocab#Polygon"], - "https://purl.org/geojson/vocab#coordinates": [{ - "@list": [{ - "@list": [ - {"@list": [{"@value": -10.0}, {"@value": -10.0}]}, - {"@list": [{"@value": 10.0}, {"@value": -10.0}]}, - {"@list": [{"@value": 10.0}, {"@value": 10.0}]}, - {"@list": [{"@value": -10.0}, {"@value": -10.0}]} - ] - }] - }] - }] -}] \ No newline at end of file diff --git a/examples/example-057-Coordinates-expressed-in-JSON-LD-original.json b/examples/example-057-Coordinates-expressed-in-JSON-LD-original.json deleted file mode 100644 index 02b2d96b..00000000 --- a/examples/example-057-Coordinates-expressed-in-JSON-LD-original.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "@vocab": "https://purl.org/geojson/vocab#", - "type": "@type", - "bbox": {"@container": "@list"}, - "coordinates": {"@container": "@list"} - }, - "type": "Feature", - "bbox": [-10.0, -10.0, 10.0, 10.0], - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [-10.0, -10.0], - [10.0, -10.0], - [10.0, 10.0], - [-10.0, -10.0] - ] - ] - } -} \ No newline at end of file diff --git a/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table b/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table deleted file mode 100644 index 934edcb0..00000000 --- a/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
_:b0rdf:typegeojson:Feature
_:b0geojson:bbox_:b1
_:b0geojson:geometry_:b5
_:b1rdf:first-1.0E1xsd:double
_:b1rdf:rest_:b2
_:b2rdf:first-1.0E1xsd:double
_:b2rdf:rest_:b3
_:b3rdf:first1.0E1xsd:double
_:b3rdf:rest_:b4
_:b4rdf:first1.0E1xsd:double
_:b4rdf:restrdf:nil
_:b5rdf:typegeojson:Polygon
_:b5geojson:coordinates_:b6
_:b6rdf:first_:b7
_:b6rdf:restrdf:nil
_:b7rdf:first_:b8
_:b7rdf:rest_:b10
_:b8rdf:first-1.0E1xsd:double
_:b8rdf:rest_:b9
_:b9rdf:first-1.0E1xsd:double
_:b9rdf:restrdf:nil
_:b10rdf:first_:b11
_:b10rdf:rest_:b13
_:b11rdf:first1.0E1xsd:double
_:b11rdf:rest_:b12
_:b12rdf:first-1.0E1xsd:double
_:b12rdf:restrdf:nil
_:b13rdf:first_:b14
_:b13rdf:rest_:b16
_:b14rdf:first1.0E1xsd:double
_:b14rdf:rest_:b15
_:b15rdf:first1.0E1xsd:double
_:b15rdf:restrdf:nil
_:b16rdf:first_:b17
_:b16rdf:restrdf:nil
_:b17rdf:first-1.0E1xsd:double
_:b17rdf:rest_:b18
_:b18rdf:first-1.0E1xsd:double
_:b18rdf:restrdf:nil
\ No newline at end of file diff --git a/examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl b/examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl deleted file mode 100644 index 0ef592ab..00000000 --- a/examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl +++ /dev/null @@ -1,16 +0,0 @@ -@prefix geojson: . -[ - a geojson:Feature ; - geojson:bbox (-1.0E1 -1.0E1 1.0E1 1.0E1) ; - geojson:geometry [ - a geojson:Polygon ; - geojson:coordinates ( - ( - (-1.0E1 -1.0E1) - (1.0E1 -1.0E1) - (1.0E1 1.0E1) - (-1.0E1 -1.0E1) - ) - ) - ] -] . \ No newline at end of file diff --git a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.jsonld b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.jsonld deleted file mode 100644 index 3f3ba250..00000000 --- a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "http://example.org/people#joebob", - "http://xmlns.com/foaf/0.1/nick": [ - {"@value": "joe"}, - {"@value": "bob"}, - {"@value": "jaybee"} - ] -}] \ No newline at end of file diff --git a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld deleted file mode 100644 index 8693e9ce..00000000 --- a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,7 +0,0 @@ -{ - "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, - "@id": "http://example.org/people#joebob", - "foaf:nick": { - "@set": [ "joe", "bob", "jaybee" ] - } -} \ No newline at end of file diff --git a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-statements.table b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-statements.table deleted file mode 100644 index 7b654bf4..00000000 --- a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nickjoe
http://example.org/people#joebobfoaf:nickbob
http://example.org/people#joebobfoaf:nickjaybee
\ No newline at end of file diff --git a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-turtle.ttl b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-turtle.ttl deleted file mode 100644 index 9c8840e8..00000000 --- a/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-turtle.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix foaf: . - foaf:nick "joe", "bob", "jaybee" . \ No newline at end of file diff --git a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.jsonld b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.jsonld deleted file mode 100644 index 3f3ba250..00000000 --- a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "http://example.org/people#joebob", - "http://xmlns.com/foaf/0.1/nick": [ - {"@value": "joe"}, - {"@value": "bob"}, - {"@value": "jaybee"} - ] -}] \ No newline at end of file diff --git a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld deleted file mode 100644 index 0a794ca5..00000000 --- a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -{ - "@context": { - "nick": { - "@id": "http://xmlns.com/foaf/0.1/nick", - "@container": "@set" - } - }, - "@id": "http://example.org/people#joebob", - "nick": [ "joe", "bob", "jaybee" ] -} \ No newline at end of file diff --git a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-statements.table b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-statements.table deleted file mode 100644 index 74f013d9..00000000 --- a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nickjoe
http://example.org/people#joebobfoaf:nickbob
http://example.org/people#joebobfoaf:nickjaybee
\ No newline at end of file diff --git a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-turtle.ttl b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-turtle.ttl deleted file mode 100644 index 9c8840e8..00000000 --- a/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-turtle.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix foaf: . - foaf:nick "joe", "bob", "jaybee" . \ No newline at end of file diff --git a/examples/example-060-Nested-properties-expanded.jsonld b/examples/example-060-Nested-properties-expanded.jsonld deleted file mode 100644 index 9bd4e512..00000000 --- a/examples/example-060-Nested-properties-expanded.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -[{ - "@id": "http://example.org/myresource", - "http://xmlns.com/foaf/0.1/homepage": [ - {"@id": "http://example.org"} - ], - "http://www.w3.org/2004/02/skos/core#prefLabel": [ - {"@value": "This is the main label for my resource"} - ], - "http://www.w3.org/2004/02/skos/core#altLabel": [ - {"@value": "This is the other label"} - ] -}] \ No newline at end of file diff --git a/examples/example-060-Nested-properties-original.jsonld b/examples/example-060-Nested-properties-original.jsonld deleted file mode 100644 index 6281f4aa..00000000 --- a/examples/example-060-Nested-properties-original.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "skos": "http://www.w3.org/2004/02/skos/core#", - "labels": "@nest", - "main_label": {"@id": "skos:prefLabel"}, - "other_label": {"@id": "skos:altLabel"}, - "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} - }, - "@id": "http://example.org/myresource", - "homepage": "http://example.org", - "labels": { - "main_label": "This is the main label for my resource", - "other_label": "This is the other label" - } -} \ No newline at end of file diff --git a/examples/example-060-Nested-properties-statements.table b/examples/example-060-Nested-properties-statements.table deleted file mode 100644 index 43f6d3f0..00000000 --- a/examples/example-060-Nested-properties-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/myresourcefoaf:homepagehttp://example.org
http://example.org/myresourceskos:prefLabelThis is the main label for my resource
http://example.org/myresourceskos:altLabelThis is the other label
\ No newline at end of file diff --git a/examples/example-060-Nested-properties-turtle.ttl b/examples/example-060-Nested-properties-turtle.ttl deleted file mode 100644 index 660bfd9c..00000000 --- a/examples/example-060-Nested-properties-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix skos: . - - skos:prefLabel "This is the main label for my resource"; - skos:altLabel "This is the other label"; - foaf:homepage . \ No newline at end of file diff --git a/examples/example-061-Nested-properties-folded-into-containing-object-expanded.jsonld b/examples/example-061-Nested-properties-folded-into-containing-object-expanded.jsonld deleted file mode 100644 index 9bd4e512..00000000 --- a/examples/example-061-Nested-properties-folded-into-containing-object-expanded.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -[{ - "@id": "http://example.org/myresource", - "http://xmlns.com/foaf/0.1/homepage": [ - {"@id": "http://example.org"} - ], - "http://www.w3.org/2004/02/skos/core#prefLabel": [ - {"@value": "This is the main label for my resource"} - ], - "http://www.w3.org/2004/02/skos/core#altLabel": [ - {"@value": "This is the other label"} - ] -}] \ No newline at end of file diff --git a/examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld b/examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld deleted file mode 100644 index 61cf507d..00000000 --- a/examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "skos": "http://www.w3.org/2004/02/skos/core#", - "main_label": {"@id": "skos:prefLabel"}, - "other_label": {"@id": "skos:altLabel"}, - "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} - }, - "@id": "http://example.org/myresource", - "homepage": "http://example.org", - "main_label": "This is the main label for my resource", - "other_label": "This is the other label" -} \ No newline at end of file diff --git a/examples/example-061-Nested-properties-folded-into-containing-object-statements.table b/examples/example-061-Nested-properties-folded-into-containing-object-statements.table deleted file mode 100644 index 6bd887b5..00000000 --- a/examples/example-061-Nested-properties-folded-into-containing-object-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/myresourcefoaf:homepagehttp://example.org
http://example.org/myresourceskos:prefLabelThis is the main label for my resource
http://example.org/myresourceskos:altLabelThis is the other label
\ No newline at end of file diff --git a/examples/example-061-Nested-properties-folded-into-containing-object-turtle.ttl b/examples/example-061-Nested-properties-folded-into-containing-object-turtle.ttl deleted file mode 100644 index 660bfd9c..00000000 --- a/examples/example-061-Nested-properties-folded-into-containing-object-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix skos: . - - skos:prefLabel "This is the main label for my resource"; - skos:altLabel "This is the other label"; - foaf:homepage . \ No newline at end of file diff --git a/examples/example-062-Defining-property-nesting-expanded.jsonld b/examples/example-062-Defining-property-nesting-expanded.jsonld deleted file mode 100644 index 9bd4e512..00000000 --- a/examples/example-062-Defining-property-nesting-expanded.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -[{ - "@id": "http://example.org/myresource", - "http://xmlns.com/foaf/0.1/homepage": [ - {"@id": "http://example.org"} - ], - "http://www.w3.org/2004/02/skos/core#prefLabel": [ - {"@value": "This is the main label for my resource"} - ], - "http://www.w3.org/2004/02/skos/core#altLabel": [ - {"@value": "This is the other label"} - ] -}] \ No newline at end of file diff --git a/examples/example-062-Defining-property-nesting-original.jsonld b/examples/example-062-Defining-property-nesting-original.jsonld deleted file mode 100644 index af7155dd..00000000 --- a/examples/example-062-Defining-property-nesting-original.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "skos": "http://www.w3.org/2004/02/skos/core#", - "labels": "@nest", - "main_label": {"@id": "skos:prefLabel", "@nest": "labels"}, - "other_label": {"@id": "skos:altLabel", "@nest": "labels"}, - "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} - }, - "@id": "http://example.org/myresource", - "homepage": "http://example.org", - "labels": { - "main_label": "This is the main label for my resource", - "other_label": "This is the other label" - } -} \ No newline at end of file diff --git a/examples/example-062-Defining-property-nesting-statements.table b/examples/example-062-Defining-property-nesting-statements.table deleted file mode 100644 index 4dec2a07..00000000 --- a/examples/example-062-Defining-property-nesting-statements.table +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/myresourcefoaf:homepagehttp://example.org
http://example.org/myresourceskos:prefLabelThis is the main label for my resource
http://example.org/myresourceskos:altLabelThis is the other label
\ No newline at end of file diff --git a/examples/example-062-Defining-property-nesting-turtle.ttl b/examples/example-062-Defining-property-nesting-turtle.ttl deleted file mode 100644 index 660bfd9c..00000000 --- a/examples/example-062-Defining-property-nesting-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix skos: . - - skos:prefLabel "This is the main label for my resource"; - skos:altLabel "This is the other label"; - foaf:homepage . \ No newline at end of file diff --git a/examples/example-063-Referencing-node-objects-expanded.jsonld b/examples/example-063-Referencing-node-objects-expanded.jsonld deleted file mode 100644 index 107905ff..00000000 --- a/examples/example-063-Referencing-node-objects-expanded.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -[{ - "@type": ["http://schema.org/Person"], - "http://schema.org/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ], - "http://schema.org/name": [ - {"@value": "Manu Sporny"} - ] -}, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [ - {"@value": "Gregg Kellogg"} - ] -}] \ No newline at end of file diff --git a/examples/example-063-Referencing-node-objects-original.jsonld b/examples/example-063-Referencing-node-objects-original.jsonld deleted file mode 100644 index 90111813..00000000 --- a/examples/example-063-Referencing-node-objects-original.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/", - "knows": {"@type": "@id"} - }, - "@graph": [{ - "name": "Manu Sporny", - "@type": "Person", - "knows": "http://greggkellogg.net/foaf#me" - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg" - }] -} \ No newline at end of file diff --git a/examples/example-063-Referencing-node-objects-statements.table b/examples/example-063-Referencing-node-objects-statements.table deleted file mode 100644 index 8f3a508c..00000000 --- a/examples/example-063-Referencing-node-objects-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0rdf:typeschema:Person
_:b0schema:nameManu Sporny
_:b0schema:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
\ No newline at end of file diff --git a/examples/example-063-Referencing-node-objects-turtle.ttl b/examples/example-063-Referencing-node-objects-turtle.ttl deleted file mode 100644 index 696a4d2a..00000000 --- a/examples/example-063-Referencing-node-objects-turtle.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix schema: . -[ - a schema:Person; - schema:name "Manu Sporny"; - schema:knows -] . - a schema:Person; - schema:name "Gregg Kellogg" . \ No newline at end of file diff --git a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.jsonld b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.jsonld deleted file mode 100644 index edf9fc09..00000000 --- a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@type": ["http://schema.org/Person"], - "http://schema.org/knows": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [ - {"@value": "Gregg Kellogg"} - ] - }], - "http://schema.org/name": [ - {"@value": "Manu Sporny"} - ] -}] \ No newline at end of file diff --git a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld deleted file mode 100644 index 823ef1dd..00000000 --- a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/" - }, - "@type": "Person", - "name": "Manu Sporny", - "knows": { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg" - } -} \ No newline at end of file diff --git a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-statements.table b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-statements.table deleted file mode 100644 index 6346092f..00000000 --- a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0rdf:typeschema:Person
_:b0schema:nameManu Sporny
_:b0schema:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
\ No newline at end of file diff --git a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-turtle.ttl b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-turtle.ttl deleted file mode 100644 index 696a4d2a..00000000 --- a/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-turtle.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix schema: . -[ - a schema:Person; - schema:name "Manu Sporny"; - schema:knows -] . - a schema:Person; - schema:name "Gregg Kellogg" . \ No newline at end of file diff --git a/examples/example-065-Referencing-an-unidentified-node-expanded.jsonld b/examples/example-065-Referencing-an-unidentified-node-expanded.jsonld deleted file mode 100644 index c81b5716..00000000 --- a/examples/example-065-Referencing-an-unidentified-node-expanded.jsonld +++ /dev/null @@ -1,17 +0,0 @@ -[{ - "@id": "_:b0", - "@type": ["http://schema.org/Person"], - "http://schema.org/knows": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [ - {"@value": "Gregg Kellogg"} - ], - "http://schema.org/knows": [ - {"@id": "_:b0"} - ] - }], - "http://schema.org/name": [ - {"@value": "Manu Sporny"} - ] -}] \ No newline at end of file diff --git a/examples/example-065-Referencing-an-unidentified-node-original.jsonld b/examples/example-065-Referencing-an-unidentified-node-original.jsonld deleted file mode 100644 index 8376f66e..00000000 --- a/examples/example-065-Referencing-an-unidentified-node-original.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/" - }, - "@id": "_:b0", - "@type": "Person", - "name": "Manu Sporny", - "knows": { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": {"@id": "_:b0"} - } -} \ No newline at end of file diff --git a/examples/example-065-Referencing-an-unidentified-node-statements.table b/examples/example-065-Referencing-an-unidentified-node-statements.table deleted file mode 100644 index d576e52b..00000000 --- a/examples/example-065-Referencing-an-unidentified-node-statements.table +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0rdf:typeschema:Person
_:b0schema:nameManu Sporny
_:b0schema:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
http://greggkellogg.net/foaf#meschema:knows_:b0
\ No newline at end of file diff --git a/examples/example-065-Referencing-an-unidentified-node-turtle.ttl b/examples/example-065-Referencing-an-unidentified-node-turtle.ttl deleted file mode 100644 index 91e8e0e1..00000000 --- a/examples/example-065-Referencing-an-unidentified-node-turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . -_:b0 a schema:Person; - schema:name "Manu Sporny"; - schema:knows . - a schema:Person; - schema:name "Gregg Kellogg"; - schema:knows _:b0 . \ No newline at end of file diff --git a/examples/example-066-Specifying-a-local-blank-node-identifier-expanded.jsonld b/examples/example-066-Specifying-a-local-blank-node-identifier-expanded.jsonld deleted file mode 100644 index b087b488..00000000 --- a/examples/example-066-Specifying-a-local-blank-node-identifier-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "_:n1", - "http://schema.org/name": [{"@value": "Secret Agent 1"}], - "http://schema.org/knows": [{ - "http://schema.org/name": [{"@value": "Secret Agent 2"}], - "http://schema.org/knows": [{"@id": "_:n1"}] - }] -}] \ No newline at end of file diff --git a/examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld b/examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld deleted file mode 100644 index ce28e6ed..00000000 --- a/examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": {"@vocab": "http://schema.org/"}, - "@id": "_:n1", - "name": "Secret Agent 1", - "knows": { - "name": "Secret Agent 2", - "knows": { "@id": "_:n1" } - } -} \ No newline at end of file diff --git a/examples/example-066-Specifying-a-local-blank-node-identifier-statements.table b/examples/example-066-Specifying-a-local-blank-node-identifier-statements.table deleted file mode 100644 index 84e1bb17..00000000 --- a/examples/example-066-Specifying-a-local-blank-node-identifier-statements.table +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0schema:nameSecret Agent 1
_:b0schema:knows_:b1
_:b1schema:nameSecret Agent 2
_:b1schema:knows_:b0
\ No newline at end of file diff --git a/examples/example-066-Specifying-a-local-blank-node-identifier-turtle.ttl b/examples/example-066-Specifying-a-local-blank-node-identifier-turtle.ttl deleted file mode 100644 index 6a5b3a81..00000000 --- a/examples/example-066-Specifying-a-local-blank-node-identifier-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix schema: . -_:b0 schema:name "Secret Agent 1"; - schema:knows _:b1 . -_:b1 schema:name "Secret Agent 2"; - schema:knows _:b0 . \ No newline at end of file diff --git a/examples/example-067-Indexing-data-in-JSON-LD-expanded.jsonld b/examples/example-067-Indexing-data-in-JSON-LD-expanded.jsonld deleted file mode 100644 index f57e959e..00000000 --- a/examples/example-067-Indexing-data-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [ - {"@value": 1539} - ], - "@index": "en" - }, { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}], - "@index": "de" - }] -}] \ No newline at end of file diff --git a/examples/example-067-Indexing-data-in-JSON-LD-original.jsonld b/examples/example-067-Indexing-data-in-JSON-LD-original.jsonld deleted file mode 100644 index fa43a8c5..00000000 --- a/examples/example-067-Indexing-data-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@index" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/example-067-Indexing-data-in-JSON-LD-statements.table b/examples/example-067-Indexing-data-in-JSON-LD-statements.table deleted file mode 100644 index 518cb579..00000000 --- a/examples/example-067-Indexing-data-in-JSON-LD-statements.table +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/rdf:typeschema:Blog
http://example.com/schema:nameWorld Financial News
http://example.com/schema:blogPosthttp://example.com/posts/1/de
http://example.com/schema:blogPosthttp://example.com/posts/1/en
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
http://example.com/posts/1/enschema:wordCount1539xsd:integer
\ No newline at end of file diff --git a/examples/example-067-Indexing-data-in-JSON-LD-turtle.ttl b/examples/example-067-Indexing-data-in-JSON-LD-turtle.ttl deleted file mode 100644 index 3a38ec31..00000000 --- a/examples/example-067-Indexing-data-in-JSON-LD-turtle.ttl +++ /dev/null @@ -1,14 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - ; - schema:name "World Financial News" . - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . \ No newline at end of file diff --git a/examples/example-068-Indexing-data-using-none-expanded.jsonld b/examples/example-068-Indexing-data-using-none-expanded.jsonld deleted file mode 100644 index 66c6c46b..00000000 --- a/examples/example-068-Indexing-data-using-none-expanded.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [ - {"@value": "World Financial News"} - ], - "http://schema.org/blogPost": [ - { - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [{"@value": 1539}], - "@index": "en" - }, - { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}], - "@index": "de" - }, - { - "@id": "http://example.com/posts/1/no-language", - "http://schema.org/articleBody": [ - {"@value": "Unindexed description"} - ], - "http://schema.org/wordCount": [{"@value": 20}] - } - ] -}] \ No newline at end of file diff --git a/examples/example-068-Indexing-data-using-none-original.jsonld b/examples/example-068-Indexing-data-using-none-original.jsonld deleted file mode 100644 index 628a1843..00000000 --- a/examples/example-068-Indexing-data-using-none-original.jsonld +++ /dev/null @@ -1,33 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@index" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - }, - "@none": { - "@id": "http://example.com/posts/1/no-language", - "body": "Unindexed description", - "words": 20 - } - } -} \ No newline at end of file diff --git a/examples/example-068-Indexing-data-using-none-statements.table b/examples/example-068-Indexing-data-using-none-statements.table deleted file mode 100644 index 0adc9492..00000000 --- a/examples/example-068-Indexing-data-using-none-statements.table +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/rdf:typeschema:Blog
http://example.com/schema:nameWorld Financial News
http://example.com/schema:blogPosthttp://example.com/posts/1/de
http://example.com/schema:blogPosthttp://example.com/posts/1/en
http://example.com/schema:blogPosthttp://example.com/posts/1/no-language
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
http://example.com/posts/1/enschema:wordCount1539xsd:integer
http://example.com/posts/1/no-languageschema:articleBodyUnindexed description
http://example.com/posts/1/no-languageschema:wordCount20xsd:integer
\ No newline at end of file diff --git a/examples/example-068-Indexing-data-using-none-turtle.ttl b/examples/example-068-Indexing-data-using-none-turtle.ttl deleted file mode 100644 index 24f25323..00000000 --- a/examples/example-068-Indexing-data-using-none-turtle.ttl +++ /dev/null @@ -1,19 +0,0 @@ -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - , - ; - schema:name "World Financial News" . - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . - - schema:articleBody - "Unindexed description"; - schema:wordCount 20 . \ No newline at end of file diff --git a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.jsonld b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.jsonld deleted file mode 100644 index 847ae706..00000000 --- a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "http://example.com/queen", - "http://example.com/vocab/label": [ - {"@value": "The Queen", "@language": "en"}, - {"@value": "Die Königin", "@language": "de"}, - {"@value": "Ihre Majestät", "@language": "de"} - ] -}] \ No newline at end of file diff --git a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld deleted file mode 100644 index dd95d8d2..00000000 --- a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -{ - "@context": { - "vocab": "http://example.com/vocab/", - "label": { - "@id": "vocab:label", - "@container": "@language" - } - }, - "@id": "http://example.com/queen", - "label": { - "en": "The Queen", - "de": [ "Die Königin", "Ihre Majestät" ] - } -} \ No newline at end of file diff --git a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-statements.table b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-statements.table deleted file mode 100644 index acbfa8f8..00000000 --- a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-statements.table +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
http://example.com/queenhttp://example.com/vocab/labelThe Queenen
http://example.com/queenhttp://example.com/vocab/labelDie Königinde
http://example.com/queenhttp://example.com/vocab/labelIhre Majestätde
\ No newline at end of file diff --git a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-turtle.ttl b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-turtle.ttl deleted file mode 100644 index 6822f032..00000000 --- a/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - "Ihre Majestät"@de, - "Die Königin"@de, - "The Queen"@en . \ No newline at end of file diff --git a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.jsonld b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.jsonld deleted file mode 100644 index 847ae706..00000000 --- a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "@id": "http://example.com/queen", - "http://example.com/vocab/label": [ - {"@value": "The Queen", "@language": "en"}, - {"@value": "Die Königin", "@language": "de"}, - {"@value": "Ihre Majestät", "@language": "de"} - ] -}] \ No newline at end of file diff --git a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld deleted file mode 100644 index 38986ef0..00000000 --- a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "vocab": "http://example.com/vocab/", - "label": { - "@id": "vocab:label", - "@container": ["@language", "@set"] - } - }, - "@id": "http://example.com/queen", - "label": { - "en": ["The Queen"], - "de": [ "Die Königin", "Ihre Majestät" ] - } -} \ No newline at end of file diff --git a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table deleted file mode 100644 index 500ea373..00000000 --- a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
http://example.com/queenhttp://example.com/vocab/labelThe Queenen
http://example.com/queenhttp://example.com/vocab/labelDie Königinde
http://example.com/queenhttp://example.com/vocab/labelIhre Majestätde
\ No newline at end of file diff --git a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-turtle.ttl b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-turtle.ttl deleted file mode 100644 index 6822f032..00000000 --- a/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - "Ihre Majestät"@de, - "Die Königin"@de, - "The Queen"@en . \ No newline at end of file diff --git a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.jsonld b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.jsonld deleted file mode 100644 index abf86597..00000000 --- a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -[{ - "@id": "http://example.com/queen", - "http://example.com/vocab/label": [ - {"@value": "The Queen", "@language": "en"}, - {"@value": "Die Königin", "@language": "de"}, - {"@value": "Ihre Majestät", "@language": "de"}, - {"@value": "The Queen"} - ] -}] \ No newline at end of file diff --git a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld deleted file mode 100644 index 510a5700..00000000 --- a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@context": { - "vocab": "http://example.com/vocab/", - "label": { - "@id": "vocab:label", - "@container": "@language" - } - }, - "@id": "http://example.com/queen", - "label": { - "en": "The Queen", - "de": [ "Die Königin", "Ihre Majestät" ], - "@none": "The Queen" - } -} \ No newline at end of file diff --git a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-statements.table b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-statements.table deleted file mode 100644 index 93f011dc..00000000 --- a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
http://example.com/queenhttp://example.com/vocab/labelThe Queenen
http://example.com/queenhttp://example.com/vocab/labelDie Königinde
http://example.com/queenhttp://example.com/vocab/labelIhre Majestätde
http://example.com/queenhttp://example.com/vocab/labelThe Queen
\ No newline at end of file diff --git a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-turtle.ttl b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-turtle.ttl deleted file mode 100644 index a8d9c957..00000000 --- a/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix rdf: . - - "Ihre Majestät"@de, - "Die Königin"@de, - "The Queen"@en, - "The Queen" . \ No newline at end of file diff --git a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.jsonld b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.jsonld deleted file mode 100644 index 0dd2140c..00000000 --- a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.jsonld +++ /dev/null @@ -1,18 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [{"@value": 1539}] - }, { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}] - }] -}] \ No newline at end of file diff --git a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld deleted file mode 100644 index dc477270..00000000 --- a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@id" - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "http://example.com/posts/1/en": { - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "http://example.com/posts/1/de": { - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-statements.table b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-statements.table deleted file mode 100644 index 2a4be07c..00000000 --- a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-statements.table +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/rdf:typeschema:Blog 
http://example.com/schema:nameWorld Financial News 
http://example.com/schema:blogPosthttp://example.com/posts/1/de 
http://example.com/schema:blogPosthttp://example.com/posts/1/en 
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... 
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil... 
http://example.com/posts/1/enschema:wordCount1539xsd:integer
\ No newline at end of file diff --git a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl deleted file mode 100644 index 23358400..00000000 --- a/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl +++ /dev/null @@ -1,13 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - ; - schema:name "World Financial News" . - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . \ No newline at end of file diff --git a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.jsonld b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.jsonld deleted file mode 100644 index 0dd2140c..00000000 --- a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.jsonld +++ /dev/null @@ -1,18 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [{"@value": 1539}] - }, { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}] - }] -}] \ No newline at end of file diff --git a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld deleted file mode 100644 index effa1680..00000000 --- a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": ["@id", "@set"] - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "http://example.com/posts/1/en": [{ - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }], - "http://example.com/posts/1/de": [{ - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - }] - } -} \ No newline at end of file diff --git a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-statements.table b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-statements.table deleted file mode 100644 index c8004078..00000000 --- a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-statements.table +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/rdf:typeschema:Blog 
http://example.com/schema:nameWorld Financial News 
http://example.com/schema:blogPosthttp://example.com/posts/1/de 
http://example.com/schema:blogPosthttp://example.com/posts/1/en 
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... 
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil... 
http://example.com/posts/1/enschema:wordCount1539xsd:integer
\ No newline at end of file diff --git a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl deleted file mode 100644 index 23358400..00000000 --- a/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl +++ /dev/null @@ -1,13 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - ; - schema:name "World Financial News" . - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . \ No newline at end of file diff --git a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.jsonld b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.jsonld deleted file mode 100644 index 5ef6c29b..00000000 --- a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [ - {"@value": "World commodities were up today with heavy trading of crude oil..."} - ], - "http://schema.org/wordCount": [{"@value": 1539}] - }, { - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [ - {"@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."} - ], - "http://schema.org/wordCount": [{"@value": 1204}] - }, { - "http://schema.org/articleBody": [ - {"@value": "Description for object without an @id"} - ], - "http://schema.org/wordCount": [{"@value": 20}] - }] -}] \ No newline at end of file diff --git a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld deleted file mode 100644 index de1fc220..00000000 --- a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld +++ /dev/null @@ -1,31 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": "@id" - }, - "none": "@none" - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "http://example.com/posts/1/en": { - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "http://example.com/posts/1/de": { - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - }, - "none": { - "body": "Description for object without an @id", - "words": 20 - } - } -} \ No newline at end of file diff --git a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-statements.table b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-statements.table deleted file mode 100644 index 7ff4bf66..00000000 --- a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-statements.table +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/rdf:typeschema:Blog 
http://example.com/schema:nameWorld Financial News 
http://example.com/schema:blogPosthttp://example.com/posts/1/de 
http://example.com/schema:blogPosthttp://example.com/posts/1/en 
http://example.com/schema:blogPost_:b0 
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... 
http://example.com/posts/1/deschema:wordCount1204xsd:integer
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil... 
http://example.com/posts/1/enschema:wordCount1539xsd:integer
_:b0schema:articleBodyDescription for object without an @id 
_:b0schema:wordCount20xsd:integer
\ No newline at end of file diff --git a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-turtle.ttl b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-turtle.ttl deleted file mode 100644 index 7c776dff..00000000 --- a/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-turtle.ttl +++ /dev/null @@ -1,16 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost , - , [ - schema:articleBody "Description for object without an @id"; - schema:wordCount 20 - ]; - schema:name "World Financial News" . - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . \ No newline at end of file diff --git a/examples/example-075-Indexing-data-in-JSON-LD-by-type-expanded.jsonld b/examples/example-075-Indexing-data-in-JSON-LD-by-type-expanded.jsonld deleted file mode 100644 index 0482119e..00000000 --- a/examples/example-075-Indexing-data-in-JSON-LD-by-type-expanded.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -[{ - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/affiliation": [ - { - "@id": "https://digitalbazaar.com/", - "@type": ["http://schema.org/Corporation"], - "http://schema.org/name": [{"@value": "Digital Bazaar"}] - }, { - "@id": "https://spec-ops.io", - "@type": ["http://schema.org/ProfessionalService"], - "http://schema.org/name": [{"@value": "Spec-Ops"}] - } - ] -}] \ No newline at end of file diff --git a/examples/example-075-Indexing-data-in-JSON-LD-by-type-original.jsonld b/examples/example-075-Indexing-data-in-JSON-LD-by-type-original.jsonld deleted file mode 100644 index bc280050..00000000 --- a/examples/example-075-Indexing-data-in-JSON-LD-by-type-original.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "affiliation": { - "@id": "schema:affiliation", - "@container": "@type" - } - }, - "name": "Manu Sporny", - "affiliation": { - "schema:Corporation": { - "@id": "https://digitalbazaar.com/", - "name": "Digital Bazaar" - }, - "schema:ProfessionalService": { - "@id": "https://spec-ops.io", - "name": "Spec-Ops" - } - } -} \ No newline at end of file diff --git a/examples/example-075-Indexing-data-in-JSON-LD-by-type-statements.table b/examples/example-075-Indexing-data-in-JSON-LD-by-type-statements.table deleted file mode 100644 index 34cf363b..00000000 --- a/examples/example-075-Indexing-data-in-JSON-LD-by-type-statements.table +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
https://digitalbazaar.com/rdf:typeschema:Corporation
https://digitalbazaar.com/schema:nameDigital Bazaar
https://spec-ops.iordf:typeschema:ProfessionalService
https://spec-ops.ioschema:nameSpec-Ops
_:b0schema:nameManu Sporny
_:b0schema:affiliationhttps://digitalbazaar.com/
_:b0schema:affiliationhttps://spec-ops.io
\ No newline at end of file diff --git a/examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl b/examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl deleted file mode 100644 index 7d4209fc..00000000 --- a/examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl +++ /dev/null @@ -1,11 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Corporation; - schema:name "Digital Bazaar" . - a schema:ProfessionalService; - schema:name "Spec-Ops" . -[ - schema:affiliation , ; - schema:name "Manu Sporny" -] . \ No newline at end of file diff --git a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.jsonld b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.jsonld deleted file mode 100644 index 0482119e..00000000 --- a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -[{ - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/affiliation": [ - { - "@id": "https://digitalbazaar.com/", - "@type": ["http://schema.org/Corporation"], - "http://schema.org/name": [{"@value": "Digital Bazaar"}] - }, { - "@id": "https://spec-ops.io", - "@type": ["http://schema.org/ProfessionalService"], - "http://schema.org/name": [{"@value": "Spec-Ops"}] - } - ] -}] \ No newline at end of file diff --git a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld deleted file mode 100644 index 1bf4a534..00000000 --- a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "affiliation": { - "@id": "schema:affiliation", - "@container": ["@type", "@set"] - } - }, - "name": "Manu Sporny", - "affiliation": { - "schema:Corporation": [{ - "@id": "https://digitalbazaar.com/", - "name": "Digital Bazaar" - }], - "schema:ProfessionalService": [{ - "@id": "https://spec-ops.io", - "name": "Spec-Ops" - }] - } -} \ No newline at end of file diff --git a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-statements.table b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-statements.table deleted file mode 100644 index 0b333c63..00000000 --- a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-statements.table +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
https://digitalbazaar.com/rdf:typeschema:Corporation
https://digitalbazaar.com/schema:nameDigital Bazaar
https://spec-ops.iordf:typeschema:ProfessionalService
https://spec-ops.ioschema:nameSpec-Ops
_:b0schema:nameManu Sporny
_:b0schema:affiliationhttps://digitalbazaar.com/
_:b0schema:affiliationhttps://spec-ops.io
\ No newline at end of file diff --git a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl deleted file mode 100644 index 7d4209fc..00000000 --- a/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl +++ /dev/null @@ -1,11 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Corporation; - schema:name "Digital Bazaar" . - a schema:ProfessionalService; - schema:name "Spec-Ops" . -[ - schema:affiliation , ; - schema:name "Manu Sporny" -] . \ No newline at end of file diff --git a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.jsonld b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.jsonld deleted file mode 100644 index f4e9f0c3..00000000 --- a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -[{ - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/affiliation": [ - { - "@id": "https://digitalbazaar.com/", - "@type": ["http://schema.org/Corporation"], - "http://schema.org/name": [{"@value": "Digital Bazaar"}] - }, - { - "@id": "https://spec-ops.io", - "@type": ["http://schema.org/ProfessionalService"], - "http://schema.org/name": [{"@value": "Spec-Ops"}] - }, - { - "@id": "http://greggkellogg.net/", - "http://schema.org/name": [{"@value": "Gregg Kellogg"}] - } - ] -}] \ No newline at end of file diff --git a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld deleted file mode 100644 index dc3bc3de..00000000 --- a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "affiliation": { - "@id": "schema:affiliation", - "@container": "@type" - }, - "none": "@none" - }, - "name": "Manu Sporny", - "affiliation": { - "schema:Corporation": { - "@id": "https://digitalbazaar.com/", - "name": "Digital Bazaar" - }, - "schema:ProfessionalService": { - "@id": "https://spec-ops.io", - "name": "Spec-Ops" - }, - "none": { - "@id": "http://greggkellogg.net/", - "name": "Gregg Kellogg" - } - } -} \ No newline at end of file diff --git a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-statements.table b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-statements.table deleted file mode 100644 index 47244aff..00000000 --- a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-statements.table +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
https://digitalbazaar.com/rdf:typeschema:Corporation
https://digitalbazaar.com/schema:nameDigital Bazaar
https://spec-ops.iordf:typeschema:ProfessionalService
https://spec-ops.ioschema:nameSpec-Ops
http://greggkellogg.net/schema:nameGregg Kellogg
_:b0schema:nameManu Sporny
_:b0schema:affiliationhttps://digitalbazaar.com/
_:b0schema:affiliationhttps://spec-ops.io
_:b0schema:affiliationhttp://greggkellogg.net/
\ No newline at end of file diff --git a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl deleted file mode 100644 index 7da91685..00000000 --- a/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Corporation; - schema:name "Digital Bazaar" . - a schema:ProfessionalService; - schema:name "Spec-Ops" . - schema:name "Gregg Kellogg" . -[ - schema:affiliation - , - , - ; - schema:name "Manu Sporny" -] . \ No newline at end of file diff --git a/examples/example-078-A-document-with-children-linking-to-their-parent-expanded.jsonld b/examples/example-078-A-document-with-children-linking-to-their-parent-expanded.jsonld deleted file mode 100644 index c3fa3453..00000000 --- a/examples/example-078-A-document-with-children-linking-to-their-parent-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.org/#homer", - "http://example.com/vocab#name": [{"@value": "Homer"}] -}, { - "@id": "http://example.org/#bart", - "http://example.com/vocab#name": [{"@value": "Bart"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"}] -}, { - "@id": "http://example.org/#lisa", - "http://example.com/vocab#name": [{"@value": "Lisa"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"} - ] -}] \ No newline at end of file diff --git a/examples/example-078-A-document-with-children-linking-to-their-parent-original.jsonld b/examples/example-078-A-document-with-children-linking-to-their-parent-original.jsonld deleted file mode 100644 index 150ae374..00000000 --- a/examples/example-078-A-document-with-children-linking-to-their-parent-original.jsonld +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "@id": "#homer", - "http://example.com/vocab#name": "Homer" - }, { - "@id": "#bart", - "http://example.com/vocab#name": "Bart", - "http://example.com/vocab#parent": { "@id": "#homer" } - }, { - "@id": "#lisa", - "http://example.com/vocab#name": "Lisa", - "http://example.com/vocab#parent": { "@id": "#homer" } - } -] \ No newline at end of file diff --git a/examples/example-078-A-document-with-children-linking-to-their-parent-statements.table b/examples/example-078-A-document-with-children-linking-to-their-parent-statements.table deleted file mode 100644 index b8ea3bd2..00000000 --- a/examples/example-078-A-document-with-children-linking-to-their-parent-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/#homerhttp://example.com/vocab#nameHomer
http://example.org/#barthttp://example.com/vocab#nameBart
http://example.org/#barthttp://example.com/vocab#parenthttp://example.org/#homer
http://example.org/#lisahttp://example.com/vocab#nameLisa
http://example.org/#lisahttp://example.com/vocab#parenthttp://example.org/#homer
\ No newline at end of file diff --git a/examples/example-078-A-document-with-children-linking-to-their-parent-turtle.ttl b/examples/example-078-A-document-with-children-linking-to-their-parent-turtle.ttl deleted file mode 100644 index 4888c0c8..00000000 --- a/examples/example-078-A-document-with-children-linking-to-their-parent-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@base . -<#homer> "Homer" . -<#bart> "Bart"; - <#homer> . -<#lisa> "Lisa"; - <#homer> . \ No newline at end of file diff --git a/examples/example-079-A-person-and-its-children-using-a-reverse-property-expanded.jsonld b/examples/example-079-A-person-and-its-children-using-a-reverse-property-expanded.jsonld deleted file mode 100644 index 484b7726..00000000 --- a/examples/example-079-A-person-and-its-children-using-a-reverse-property-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.org/#homer", - "http://example.com/vocab#name": [{"@value": "Homer"}], - "@reverse": { - "http://example.com/vocab#parent": [{ - "@id": "http://example.org/#bart", - "http://example.com/vocab#name": [{"@value": "Bart"}] - }, { - "@id": "http://example.org/#lisa", - "http://example.com/vocab#name": [{"@value": "Lisa"}] - }] - } -}] \ No newline at end of file diff --git a/examples/example-079-A-person-and-its-children-using-a-reverse-property-flattened.jsonld b/examples/example-079-A-person-and-its-children-using-a-reverse-property-flattened.jsonld deleted file mode 100644 index c3fa3453..00000000 --- a/examples/example-079-A-person-and-its-children-using-a-reverse-property-flattened.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.org/#homer", - "http://example.com/vocab#name": [{"@value": "Homer"}] -}, { - "@id": "http://example.org/#bart", - "http://example.com/vocab#name": [{"@value": "Bart"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"}] -}, { - "@id": "http://example.org/#lisa", - "http://example.com/vocab#name": [{"@value": "Lisa"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"} - ] -}] \ No newline at end of file diff --git a/examples/example-079-A-person-and-its-children-using-a-reverse-property-original.jsonld b/examples/example-079-A-person-and-its-children-using-a-reverse-property-original.jsonld deleted file mode 100644 index 8ee7be6d..00000000 --- a/examples/example-079-A-person-and-its-children-using-a-reverse-property-original.jsonld +++ /dev/null @@ -1,15 +0,0 @@ -{ - "@id": "#homer", - "http://example.com/vocab#name": "Homer", - "@reverse": { - "http://example.com/vocab#parent": [ - { - "@id": "#bart", - "http://example.com/vocab#name": "Bart" - }, { - "@id": "#lisa", - "http://example.com/vocab#name": "Lisa" - } - ] - } -} \ No newline at end of file diff --git a/examples/example-079-A-person-and-its-children-using-a-reverse-property-statements.table b/examples/example-079-A-person-and-its-children-using-a-reverse-property-statements.table deleted file mode 100644 index 5d5cf351..00000000 --- a/examples/example-079-A-person-and-its-children-using-a-reverse-property-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/#homerhttp://example.com/vocab#nameHomer
http://example.org/#barthttp://example.com/vocab#nameBart
http://example.org/#barthttp://example.com/vocab#parenthttp://example.org/#homer
http://example.org/#lisahttp://example.com/vocab#nameLisa
http://example.org/#lisahttp://example.com/vocab#parenthttp://example.org/#homer
\ No newline at end of file diff --git a/examples/example-079-A-person-and-its-children-using-a-reverse-property-turtle.ttl b/examples/example-079-A-person-and-its-children-using-a-reverse-property-turtle.ttl deleted file mode 100644 index 4888c0c8..00000000 --- a/examples/example-079-A-person-and-its-children-using-a-reverse-property-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@base . -<#homer> "Homer" . -<#bart> "Bart"; - <#homer> . -<#lisa> "Lisa"; - <#homer> . \ No newline at end of file diff --git a/examples/example-080-Using-reverse-to-define-reverse-properties-expanded.jsonld b/examples/example-080-Using-reverse-to-define-reverse-properties-expanded.jsonld deleted file mode 100644 index 484b7726..00000000 --- a/examples/example-080-Using-reverse-to-define-reverse-properties-expanded.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.org/#homer", - "http://example.com/vocab#name": [{"@value": "Homer"}], - "@reverse": { - "http://example.com/vocab#parent": [{ - "@id": "http://example.org/#bart", - "http://example.com/vocab#name": [{"@value": "Bart"}] - }, { - "@id": "http://example.org/#lisa", - "http://example.com/vocab#name": [{"@value": "Lisa"}] - }] - } -}] \ No newline at end of file diff --git a/examples/example-080-Using-reverse-to-define-reverse-properties-flattened.jsonld b/examples/example-080-Using-reverse-to-define-reverse-properties-flattened.jsonld deleted file mode 100644 index c3fa3453..00000000 --- a/examples/example-080-Using-reverse-to-define-reverse-properties-flattened.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -[{ - "@id": "http://example.org/#homer", - "http://example.com/vocab#name": [{"@value": "Homer"}] -}, { - "@id": "http://example.org/#bart", - "http://example.com/vocab#name": [{"@value": "Bart"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"}] -}, { - "@id": "http://example.org/#lisa", - "http://example.com/vocab#name": [{"@value": "Lisa"}], - "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"} - ] -}] \ No newline at end of file diff --git a/examples/example-080-Using-reverse-to-define-reverse-properties-original.jsonld b/examples/example-080-Using-reverse-to-define-reverse-properties-original.jsonld deleted file mode 100644 index 1920d3d0..00000000 --- a/examples/example-080-Using-reverse-to-define-reverse-properties-original.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { "name": "http://example.com/vocab#name", - "children": { "@reverse": "http://example.com/vocab#parent" } - }, - "@id": "#homer", - "name": "Homer", - "children": [ - { - "@id": "#bart", - "name": "Bart" - }, { - "@id": "#lisa", - "name": "Lisa" - } - ] -} \ No newline at end of file diff --git a/examples/example-080-Using-reverse-to-define-reverse-properties-statements.table b/examples/example-080-Using-reverse-to-define-reverse-properties-statements.table deleted file mode 100644 index 22b2134a..00000000 --- a/examples/example-080-Using-reverse-to-define-reverse-properties-statements.table +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/#homerhttp://example.com/vocab#nameHomer
http://example.org/#barthttp://example.com/vocab#nameBart
http://example.org/#barthttp://example.com/vocab#parenthttp://example.org/#homer
http://example.org/#lisahttp://example.com/vocab#nameLisa
http://example.org/#lisahttp://example.com/vocab#parenthttp://example.org/#homer
\ No newline at end of file diff --git a/examples/example-080-Using-reverse-to-define-reverse-properties-turtle.ttl b/examples/example-080-Using-reverse-to-define-reverse-properties-turtle.ttl deleted file mode 100644 index 4888c0c8..00000000 --- a/examples/example-080-Using-reverse-to-define-reverse-properties-turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@base . -<#homer> "Homer" . -<#bart> "Bart"; - <#homer> . -<#lisa> "Lisa"; - <#homer> . \ No newline at end of file diff --git a/examples/example-081-Identifying-and-making-statements-about-a-graph-expanded.jsonld b/examples/example-081-Identifying-and-making-statements-about-a-graph-expanded.jsonld deleted file mode 100644 index bfa57cc0..00000000 --- a/examples/example-081-Identifying-and-making-statements-about-a-graph-expanded.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -[{ - "@id": "http://example.org/foaf-graph", - "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }], - "@graph": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ] - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ] - }] -}] \ No newline at end of file diff --git a/examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld b/examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld deleted file mode 100644 index c917eba6..00000000 --- a/examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -{ - "@context": { - "generatedAt": { - "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }, - "Person": "http://xmlns.com/foaf/0.1/Person", - "name": "http://xmlns.com/foaf/0.1/name", - "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"} - }, - "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", - "@graph": [ - { - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - } - ] -} \ No newline at end of file diff --git a/examples/example-081-Identifying-and-making-statements-about-a-graph-statements.table b/examples/example-081-Identifying-and-making-statements-about-a-graph-statements.table deleted file mode 100644 index 2927ac30..00000000 --- a/examples/example-081-Identifying-and-making-statements-about-a-graph-statements.table +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
http://example.org/foaf-graphhttp://manu.sporny.org/about#manurdf:typefoaf:Person 
http://example.org/foaf-graphhttp://manu.sporny.org/about#manufoaf:nameManu Sporny 
http://example.org/foaf-graphhttp://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me 
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#merdf:typefoaf:Person 
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg 
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu 
\ No newline at end of file diff --git a/examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig b/examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig deleted file mode 100644 index 8a409533..00000000 --- a/examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig +++ /dev/null @@ -1,13 +0,0 @@ -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - prov:generatedAtTime "2012-04-09"^^xsd:date . - { - a foaf:Person; - foaf:name "Manu Sporny"; - foaf:knows . - a foaf:Person; - foaf:name "Gregg Kellogg"; - foaf:knows . -} \ No newline at end of file diff --git a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.jsonld b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.jsonld deleted file mode 100644 index da4caa44..00000000 --- a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -[{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ] -}, -{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Gregg Kellogg"}], - "http://schema.org/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ] -}] \ No newline at end of file diff --git a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld deleted file mode 100644 index 3e8a8914..00000000 --- a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld +++ /dev/null @@ -1,19 +0,0 @@ -{ - "@context": { - "@vocab": "http://schema.org/", - "knows": {"@type": "@id"} - }, - "@graph": [ - { - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - } - ] -} \ No newline at end of file diff --git a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-statements.table b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-statements.table deleted file mode 100644 index 1fc620be..00000000 --- a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-statements.table +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://manu.sporny.org/about#manurdf:typeschema:Person
http://manu.sporny.org/about#manuschema:nameManu Sporny
http://manu.sporny.org/about#manuschema:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
http://greggkellogg.net/foaf#meschema:knowshttp://manu.sporny.org/about#manu
\ No newline at end of file diff --git a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig deleted file mode 100644 index 67e08aa1..00000000 --- a/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . - a schema:Person; - schema:knows ; - schema:name "Gregg Kellogg" . - a schema:Person; - schema:knows ; - schema:name "Manu Sporny" . \ No newline at end of file diff --git a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.jsonld b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.jsonld deleted file mode 100644 index da4caa44..00000000 --- a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -[{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Manu Sporny"}], - "http://schema.org/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ] -}, -{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://schema.org/Person"], - "http://schema.org/name": [{"@value": "Gregg Kellogg"}], - "http://schema.org/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ] -}] \ No newline at end of file diff --git a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld deleted file mode 100644 index 3459a4ca..00000000 --- a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "@context": { - "@vocab": "http://schema.org/", - "knows": {"@type": "@id"} - }, - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, - { - "@context": { - "@vocab": "http://schema.org/", - "knows": {"@type": "@id"} - }, - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - } -] \ No newline at end of file diff --git a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-statements.table b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-statements.table deleted file mode 100644 index d37c81e0..00000000 --- a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-statements.table +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://manu.sporny.org/about#manurdf:typeschema:Person
http://manu.sporny.org/about#manuschema:nameManu Sporny
http://manu.sporny.org/about#manuschema:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#merdf:typeschema:Person
http://greggkellogg.net/foaf#meschema:nameGregg Kellogg
http://greggkellogg.net/foaf#meschema:knowshttp://manu.sporny.org/about#manu
\ No newline at end of file diff --git a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig deleted file mode 100644 index 67e08aa1..00000000 --- a/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix schema: . - a schema:Person; - schema:knows ; - schema:name "Gregg Kellogg" . - a schema:Person; - schema:knows ; - schema:name "Manu Sporny" . \ No newline at end of file diff --git a/examples/example-084-Implicitly-named-graph-expanded.jsonld b/examples/example-084-Implicitly-named-graph-expanded.jsonld deleted file mode 100644 index a1d0ebb1..00000000 --- a/examples/example-084-Implicitly-named-graph-expanded.jsonld +++ /dev/null @@ -1,26 +0,0 @@ -[{ - "@id": "http://example.org/foaf-graph", - "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }], - "https://w3id.org/credentials#claim": [{ - "@graph": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ]} - ] - }, { - "@graph": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ] - }] - }] -}] \ No newline at end of file diff --git a/examples/example-084-Implicitly-named-graph-original.jsonld b/examples/example-084-Implicitly-named-graph-original.jsonld deleted file mode 100644 index 7941a99e..00000000 --- a/examples/example-084-Implicitly-named-graph-original.jsonld +++ /dev/null @@ -1,31 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "generatedAt": { - "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }, - "Person": "http://xmlns.com/foaf/0.1/Person", - "name": "http://xmlns.com/foaf/0.1/name", - "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"}, - "claim": { - "@id": "https://w3id.org/credentials#claim", - "@container": "@graph" - } - }, - "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", - "claim": [ - { - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - } - ] -} \ No newline at end of file diff --git a/examples/example-084-Implicitly-named-graph-statements.table b/examples/example-084-Implicitly-named-graph-statements.table deleted file mode 100644 index dbb26c78..00000000 --- a/examples/example-084-Implicitly-named-graph-statements.table +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
 http://example.org/foaf-graphhttps://w3id.org/credentials#claim_:b0 
 http://example.org/foaf-graphhttps://w3id.org/credentials#claim_:b1 
_:b0http://manu.sporny.org/about#manurdf:typefoaf:Person 
_:b0http://manu.sporny.org/about#manufoaf:nameManu Sporny 
_:b0http://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me 
_:b1http://greggkellogg.net/foaf#merdf:typefoaf:Person 
_:b1http://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg 
_:b1http://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu 
\ No newline at end of file diff --git a/examples/example-084-Implicitly-named-graph-trig.trig b/examples/example-084-Implicitly-named-graph-trig.trig deleted file mode 100644 index 1a978ea0..00000000 --- a/examples/example-084-Implicitly-named-graph-trig.trig +++ /dev/null @@ -1,16 +0,0 @@ -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - prov:generatedAtTime "2012-04-09"^^xsd:date; - _:b0, _:b1 . -_:b0 { - a foaf:Person; - foaf:knows ; - foaf:name "Manu Sporny" . -} -_:b1 { - a foaf:Person; - foaf:knows ; - foaf:name "Gregg Kellogg" . -} \ No newline at end of file diff --git a/examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld b/examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld deleted file mode 100644 index 550acc10..00000000 --- a/examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld +++ /dev/null @@ -1,24 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@graph": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [{ - "@value": "World commodities were up today with heavy trading of crude oil..." - }], - "http://schema.org/wordCount": [{"@value": 1539}] - }], - "@index": "en" - }, { - "@graph": [{ - "@id": "http://example.com/posts/1/de", - "http://schema.org/articleBody": [{ - "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..." - }], - "http://schema.org/wordCount": [{"@value": 1204}] - }], - "@index": "de" - }] -}] \ No newline at end of file diff --git a/examples/example-085-Indexing-graph-data-in-JSON-LD-original.jsonld b/examples/example-085-Indexing-graph-data-in-JSON-LD-original.jsonld deleted file mode 100644 index 88880140..00000000 --- a/examples/example-085-Indexing-graph-data-in-JSON-LD-original.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": ["@graph", "@index"] - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "de": { - "@id": "http://example.com/posts/1/de", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/example-085-Indexing-graph-data-in-JSON-LD-statements.table b/examples/example-085-Indexing-graph-data-in-JSON-LD-statements.table deleted file mode 100644 index a78b3988..00000000 --- a/examples/example-085-Indexing-graph-data-in-JSON-LD-statements.table +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.com/rdf:typeschema:Blog
 http://example.com/schema:nameWorld Financial News
 http://example.com/schema:blogPost_:b1
 http://example.com/schema:blogPost_:b2
_:b1http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
_:b1http://example.com/posts/1/deschema:wordCount1204xsd:integer
_:b2http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
_:b2http://example.com/posts/1/enschema:wordCount1539xsd:integer
\ No newline at end of file diff --git a/examples/example-085-Indexing-graph-data-in-JSON-LD-trig.trig b/examples/example-085-Indexing-graph-data-in-JSON-LD-trig.trig deleted file mode 100644 index 6a6b56d7..00000000 --- a/examples/example-085-Indexing-graph-data-in-JSON-LD-trig.trig +++ /dev/null @@ -1,18 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:name "World Financial News"; - schema:blogPost _:b0, _:b1 . -_:b0 { - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} -_:b1 { - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} \ No newline at end of file diff --git a/examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld b/examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld deleted file mode 100644 index f48ac2de..00000000 --- a/examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld +++ /dev/null @@ -1,23 +0,0 @@ -[{ - "@id": "http://example.com/", - "@type": ["http://schema.org/Blog"], - "http://schema.org/name": [{"@value": "World Financial News"}], - "http://schema.org/blogPost": [{ - "@graph": [{ - "@id": "http://example.com/posts/1/en", - "http://schema.org/articleBody": [{ - "@value": "World commodities were up today with heavy trading of crude oil..." - }], - "http://schema.org/wordCount": [{"@value": 1539}] - }], - "@index": "en" - }, { - "@graph": [{ - "@id": "http://example.com/posts/1/no-language", - "http://schema.org/articleBody": [{ - "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..." - }], - "http://schema.org/wordCount": [{"@value": 1204}] - }] - }] -}] \ No newline at end of file diff --git a/examples/example-086-Indexing-graphs-using-none-for-no-index-original.jsonld b/examples/example-086-Indexing-graphs-using-none-for-no-index-original.jsonld deleted file mode 100644 index cbdbeef7..00000000 --- a/examples/example-086-Indexing-graphs-using-none-for-no-index-original.jsonld +++ /dev/null @@ -1,28 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "schema": "http://schema.org/", - "name": "schema:name", - "body": "schema:articleBody", - "words": "schema:wordCount", - "post": { - "@id": "schema:blogPost", - "@container": ["@graph", "@index"] - } - }, - "@id": "http://example.com/", - "@type": "schema:Blog", - "name": "World Financial News", - "post": { - "en": { - "@id": "http://example.com/posts/1/en", - "body": "World commodities were up today with heavy trading of crude oil...", - "words": 1539 - }, - "@none": { - "@id": "http://example.com/posts/1/no-language", - "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...", - "words": 1204 - } - } -} \ No newline at end of file diff --git a/examples/example-086-Indexing-graphs-using-none-for-no-index-statements.table b/examples/example-086-Indexing-graphs-using-none-for-no-index-statements.table deleted file mode 100644 index 59674f76..00000000 --- a/examples/example-086-Indexing-graphs-using-none-for-no-index-statements.table +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.com/rdf:typeschema:Blog 
 http://example.com/schema:nameWorld Financial News 
 http://example.com/schema:blogPost_:b0 
 http://example.com/schema:blogPost_:b1 
_:b0http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil... 
_:b0http://example.com/posts/1/enschema:wordCount1539xsd:integer
_:b1http://example.com/posts/1/no-languageschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... 
_:b1http://example.com/posts/1/no-languageschema:wordCount1204xsd:integer
\ No newline at end of file diff --git a/examples/example-086-Indexing-graphs-using-none-for-no-index-trig.trig b/examples/example-086-Indexing-graphs-using-none-for-no-index-trig.trig deleted file mode 100644 index e43e7644..00000000 --- a/examples/example-086-Indexing-graphs-using-none-for-no-index-trig.trig +++ /dev/null @@ -1,18 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - a schema:Blog; - schema:blogPost _:b0, _:b1; - schema:name "World Financial News" . -_:b0 { - - schema:articleBody - "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} -_:b1 { - - schema:articleBody - "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} \ No newline at end of file diff --git a/examples/example-087-Referencing-named-graphs-using-an-id-map-expanded.jsonld b/examples/example-087-Referencing-named-graphs-using-an-id-map-expanded.jsonld deleted file mode 100644 index e7e0c29d..00000000 --- a/examples/example-087-Referencing-named-graphs-using-an-id-map-expanded.jsonld +++ /dev/null @@ -1,32 +0,0 @@ -[{ - "@id": "http://example.org/foaf-graph", - "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }], - "http://example.org/graphMap": [{ - "@graph": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ], - "http://xmlns.com/foaf/0.1/name": [ - {"@value": "Manu Sporny"} - ] - }], - "@id": "http://manu.sporny.org/about#manu" - }, { - "@graph": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ], - "http://xmlns.com/foaf/0.1/name": [ - {"@value": "Gregg Kellogg"} - ] - }], - "@id": "http://greggkellogg.net/foaf#me" - }] -}] \ No newline at end of file diff --git a/examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld b/examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld deleted file mode 100644 index c7e2e333..00000000 --- a/examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld +++ /dev/null @@ -1,35 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "generatedAt": { - "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }, - "Person": "http://xmlns.com/foaf/0.1/Person", - "name": "http://xmlns.com/foaf/0.1/name", - "knows": { - "@id": "http://xmlns.com/foaf/0.1/knows", - "@type": "@id" - }, - "graphMap": { - "@id": "http://example.org/graphMap", - "@container": ["@graph", "@id"] - } - }, - "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", - "graphMap": { - "http://manu.sporny.org/about#manu": { - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, - "http://greggkellogg.net/foaf#me": { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - } - } -} \ No newline at end of file diff --git a/examples/example-087-Referencing-named-graphs-using-an-id-map-statements.table b/examples/example-087-Referencing-named-graphs-using-an-id-map-statements.table deleted file mode 100644 index 00296003..00000000 --- a/examples/example-087-Referencing-named-graphs-using-an-id-map-statements.table +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphhttp://example.org/graphMaphttp://greggkellogg.net/foaf#me 
 http://example.org/foaf-graphhttp://example.org/graphMaphttp://manu.sporny.org/about#manu 
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#merdf:typefoaf:Person 
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg 
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu 
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manurdf:typefoaf:Person 
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manufoaf:nameManu Sporny 
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me 
\ No newline at end of file diff --git a/examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig b/examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig deleted file mode 100644 index b5e5d885..00000000 --- a/examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig +++ /dev/null @@ -1,19 +0,0 @@ -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - - - , - ; - prov:generatedAtTime "2012-04-09"^^xsd:date . - { - a foaf:Person; - foaf:knows ; - foaf:name "Gregg Kellogg" . -} - { - a foaf:Person; - foaf:knows ; - foaf:name "Manu Sporny" . -} \ No newline at end of file diff --git a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld deleted file mode 100644 index 5a4d7dc7..00000000 --- a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld +++ /dev/null @@ -1,27 +0,0 @@ -[{ - "@id": "http://example.org/foaf-graph", - "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }], - "http://example.org/graphMap": [{ - "@graph": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Manu Sporny"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://greggkellogg.net/foaf#me"} - ] - }] - }, - { - "@graph": [{ - "@id": "http://greggkellogg.net/foaf#me", - "@type": ["http://xmlns.com/foaf/0.1/Person"], - "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}], - "http://xmlns.com/foaf/0.1/knows": [ - {"@id": "http://manu.sporny.org/about#manu"} - ] - }] - }] -}] \ No newline at end of file diff --git a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld deleted file mode 100644 index d0c21cd0..00000000 --- a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld +++ /dev/null @@ -1,31 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "generatedAt": { - "@id": "http://www.w3.org/ns/prov#generatedAtTime", - "@type": "http://www.w3.org/2001/XMLSchema#date" - }, - "Person": "http://xmlns.com/foaf/0.1/Person", - "name": "http://xmlns.com/foaf/0.1/name", - "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"}, - "graphMap": { - "@id": "http://example.org/graphMap", - "@container": ["@graph", "@id"] - } - }, - "@id": "http://example.org/foaf-graph", - "generatedAt": "2012-04-09", - "graphMap": { - "@none": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": "Person", - "name": "Manu Sporny", - "knows": "http://greggkellogg.net/foaf#me" - }, { - "@id": "http://greggkellogg.net/foaf#me", - "@type": "Person", - "name": "Gregg Kellogg", - "knows": "http://manu.sporny.org/about#manu" - }] - } -} \ No newline at end of file diff --git a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-statements.table b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-statements.table deleted file mode 100644 index a2933df9..00000000 --- a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-statements.table +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
 http://example.org/foaf-graphhttp://example.org/graphMap_:b0 
 http://example.org/foaf-graphhttp://example.org/graphMap_:b1 
_:b0http://manu.sporny.org/about#manurdf:typefoaf:Person 
_:b0http://manu.sporny.org/about#manufoaf:nameManu Sporny 
_:b0http://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me 
_:b1http://greggkellogg.net/foaf#merdf:typefoaf:Person 
_:b1http://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg 
_:b1http://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu 
\ No newline at end of file diff --git a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-trig.trig b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-trig.trig deleted file mode 100644 index 0500b888..00000000 --- a/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-trig.trig +++ /dev/null @@ -1,16 +0,0 @@ -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - _:b0, _:b1; - prov:generatedAtTime "2012-04-09"^^xsd:date . -_:b0 { - a foaf:Person; - foaf:name "Manu Sporny"; - foaf:knows . -} -_:b1 { - a foaf:Person; - foaf:name "Gregg Kellogg"; - foaf:knows . -} \ No newline at end of file diff --git a/examples/example-089-Sample-JSON-LD-document-to-be-expanded.jsonld b/examples/example-089-Sample-JSON-LD-document-to-be-expanded.jsonld deleted file mode 100644 index 8ea2a17f..00000000 --- a/examples/example-089-Sample-JSON-LD-document-to-be-expanded.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - }, - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/" -} \ No newline at end of file diff --git a/examples/example-090-Expanded-form-for-the-previous-example-expanded.jsonld b/examples/example-090-Expanded-form-for-the-previous-example-expanded.jsonld deleted file mode 100644 index 7f7c0ec9..00000000 --- a/examples/example-090-Expanded-form-for-the-previous-example-expanded.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "http://xmlns.com/foaf/0.1/name": [ - { "@value": "Manu Sporny" } - ], - "http://xmlns.com/foaf/0.1/homepage": [ - { "@id": "http://manu.sporny.org/" } - ] - } -] \ No newline at end of file diff --git a/examples/example-090-Expanded-form-for-the-previous-example-statements.table b/examples/example-090-Expanded-form-for-the-previous-example-statements.table deleted file mode 100644 index 7d44e377..00000000 --- a/examples/example-090-Expanded-form-for-the-previous-example-statements.table +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
_:b0foaf:nameManu Sporny
_:b0foaf:homepagehttp://manu.sporny.org/
\ No newline at end of file diff --git a/examples/example-090-Expanded-form-for-the-previous-example-turtle.ttl b/examples/example-090-Expanded-form-for-the-previous-example-turtle.ttl deleted file mode 100644 index 6e159f94..00000000 --- a/examples/example-090-Expanded-form-for-the-previous-example-turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix foaf: . -[ - foaf:name "Manu Sporny"; - foaf:homepage -] . \ No newline at end of file diff --git a/examples/example-091-Sample-expanded-JSON-LD-document.jsonld b/examples/example-091-Sample-expanded-JSON-LD-document.jsonld deleted file mode 100644 index 66401827..00000000 --- a/examples/example-091-Sample-expanded-JSON-LD-document.jsonld +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "http://xmlns.com/foaf/0.1/name": [ "Manu Sporny" ], - "http://xmlns.com/foaf/0.1/homepage": [ - { - "@id": "http://manu.sporny.org/" - } - ] - } -] \ No newline at end of file diff --git a/examples/example-092-Sample-context.jsonld b/examples/example-092-Sample-context.jsonld deleted file mode 100644 index b7f2242e..00000000 --- a/examples/example-092-Sample-context.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - } -} \ No newline at end of file diff --git a/examples/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.jsonld b/examples/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.jsonld deleted file mode 100644 index ee8de7a6..00000000 --- a/examples/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "homepage": { - "@id": "http://xmlns.com/foaf/0.1/homepage", - "@type": "@id" - } - }, - "name": "Manu Sporny", - "homepage": "http://manu.sporny.org/" -} \ No newline at end of file diff --git a/examples/example-094-Sample-JSON-LD-document-to-be-flattened.jsonld b/examples/example-094-Sample-JSON-LD-document-to-be-flattened.jsonld deleted file mode 100644 index 50968ed2..00000000 --- a/examples/example-094-Sample-JSON-LD-document-to-be-flattened.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows" - }, - "@id": "http://me.markus-lanthaler.com/", - "name": "Markus Lanthaler", - "knows": [ - { - "@id": "http://manu.sporny.org/about#manu", - "name": "Manu Sporny" - }, { - "name": "Dave Longley" - } - ] -} \ No newline at end of file diff --git a/examples/example-095-Flattened-and-compacted-form-for-the-previous-example.jsonld b/examples/example-095-Flattened-and-compacted-form-for-the-previous-example.jsonld deleted file mode 100644 index 3896be40..00000000 --- a/examples/example-095-Flattened-and-compacted-form-for-the-previous-example.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows" - }, - "@graph": [{ - "@id": "http://me.markus-lanthaler.com/", - "name": "Markus Lanthaler", - "knows": [ - { "@id": "http://manu.sporny.org/about#manu" }, - { "@id": "_:b0" } - ] - }, { - "@id": "http://manu.sporny.org/about#manu", - "name": "Manu Sporny" - }, { - "@id": "_:b0", - "name": "Dave Longley" - }] -} \ No newline at end of file diff --git a/examples/example-096-Sample-library-frame.jsonld b/examples/example-096-Sample-library-frame.jsonld deleted file mode 100644 index dd2b4789..00000000 --- a/examples/example-096-Sample-library-frame.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "@vocab": "http://example.org/" - }, - "@type": "Library", - "contains": { - "@type": "Book", - "contains": { - "@type": "Chapter" - } - } -} \ No newline at end of file diff --git a/examples/example-097-Flattened-library-objects.jsonld b/examples/example-097-Flattened-library-objects.jsonld deleted file mode 100644 index 6e33e192..00000000 --- a/examples/example-097-Flattened-library-objects.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@context": { - "@vocab": "http://example.org/", - "contains": {"@type": "@id"} - }, - "@graph": [{ - "@id": "http://example.org/library", - "@type": "Library", - "contains": "http://example.org/library/the-republic" - }, { - "@id": "http://example.org/library/the-republic", - "@type": "Book", - "creator": "Plato", - "title": "The Republic", - "contains": "http://example.org/library/the-republic#introduction" - }, { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "Chapter", - "description": "An introductory chapter on The Republic.", - "title": "The Introduction" - }] -} \ No newline at end of file diff --git a/examples/example-098-Framed-library-objects.jsonld b/examples/example-098-Framed-library-objects.jsonld deleted file mode 100644 index b7bbf7fa..00000000 --- a/examples/example-098-Framed-library-objects.jsonld +++ /dev/null @@ -1,20 +0,0 @@ -{ - "@context": { - "@version": 1.1, - "@vocab": "http://example.org/" - }, - "@id": "http://example.org/library", - "@type": "Library", - "contains": { - "@id": "http://example.org/library/the-republic", - "@type": "Book", - "contains": { - "@id": "http://example.org/library/the-republic#introduction", - "@type": "Chapter", - "description": "An introductory chapter on The Republic.", - "title": "The Introduction" - }, - "creator": "Plato", - "title": "The Republic" - } -} \ No newline at end of file diff --git a/examples/example-102-Sample-JSON-LD-document.jsonld b/examples/example-102-Sample-JSON-LD-document.jsonld deleted file mode 100644 index 50968ed2..00000000 --- a/examples/example-102-Sample-JSON-LD-document.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -{ - "@context": { - "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows" - }, - "@id": "http://me.markus-lanthaler.com/", - "name": "Markus Lanthaler", - "knows": [ - { - "@id": "http://manu.sporny.org/about#manu", - "name": "Manu Sporny" - }, { - "name": "Dave Longley" - } - ] -} \ No newline at end of file diff --git a/examples/example-103-Flattened-and-expanded-form-for-the-previous-example.jsonld b/examples/example-103-Flattened-and-expanded-form-for-the-previous-example.jsonld deleted file mode 100644 index af18b4b1..00000000 --- a/examples/example-103-Flattened-and-expanded-form-for-the-previous-example.jsonld +++ /dev/null @@ -1,16 +0,0 @@ -[ - { - "@id": "_:b0", - "http://xmlns.com/foaf/0.1/name": "Dave Longley" - }, { - "@id": "http://manu.sporny.org/about#manu", - "http://xmlns.com/foaf/0.1/name": "Manu Sporny" - }, { - "@id": "http://me.markus-lanthaler.com/", - "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler", - "http://xmlns.com/foaf/0.1/knows": [ - { "@id": "http://manu.sporny.org/about#manu" }, - { "@id": "_:b0" } - ] - } -] \ No newline at end of file diff --git a/examples/example-104-Turtle-representation-of-expanded-flattened-document.ttl b/examples/example-104-Turtle-representation-of-expanded-flattened-document.ttl deleted file mode 100644 index 195743cb..00000000 --- a/examples/example-104-Turtle-representation-of-expanded-flattened-document.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix foaf: . -_:b0 foaf:name "Dave Longley" . - foaf:name "Manu Sporny" . - foaf:name "Markus Lanthaler" ; - foaf:knows , _:b0 . \ No newline at end of file diff --git a/examples/example-105-A-set-of-statements-serialized-in-Turtle.ttl b/examples/example-105-A-set-of-statements-serialized-in-Turtle.ttl deleted file mode 100644 index ca449ecb..00000000 --- a/examples/example-105-A-set-of-statements-serialized-in-Turtle.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix foaf: . - a foaf:Person; - foaf:name "Manu Sporny"; - foaf:homepage . \ No newline at end of file diff --git a/examples/example-106-The-same-set-of-statements-serialized-in-JSON-LD.jsonld b/examples/example-106-The-same-set-of-statements-serialized-in-JSON-LD.jsonld deleted file mode 100644 index 14942275..00000000 --- a/examples/example-106-The-same-set-of-statements-serialized-in-JSON-LD.jsonld +++ /dev/null @@ -1,9 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/" - }, - "@id": "http://manu.sporny.org/about#manu", - "@type": "foaf:Person", - "foaf:name": "Manu Sporny", - "foaf:homepage": { "@id": "http://manu.sporny.org/" } -} \ No newline at end of file diff --git a/examples/example-107-Embedding-in-Turtle.ttl b/examples/example-107-Embedding-in-Turtle.ttl deleted file mode 100644 index 68edd407..00000000 --- a/examples/example-107-Embedding-in-Turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix foaf: . - - a foaf:Person; - foaf:name "Manu Sporny"; - foaf:knows [ a foaf:Person; foaf:name "Gregg Kellogg" ] . \ No newline at end of file diff --git a/examples/example-108-Same-embedding-example-in-JSON-LD.jsonld b/examples/example-108-Same-embedding-example-in-JSON-LD.jsonld deleted file mode 100644 index 1accd593..00000000 --- a/examples/example-108-Same-embedding-example-in-JSON-LD.jsonld +++ /dev/null @@ -1,12 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/" - }, - "@id": "http://manu.sporny.org/about#manu", - "@type": "foaf:Person", - "foaf:name": "Manu Sporny", - "foaf:knows": { - "@type": "foaf:Person", - "foaf:name": "Gregg Kellogg" - } -} \ No newline at end of file diff --git a/examples/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.jsonld b/examples/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.jsonld deleted file mode 100644 index 92d128ab..00000000 --- a/examples/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -{ - "@context": { - "ex": "http://example.com/vocab#" - }, - "@id": "http://example.com/", - "ex:numbers": [ 14, 2.78 ], - "ex:booleans": [ true, false ] -} \ No newline at end of file diff --git a/examples/example-110-Same-example-in-Turtle-using-typed-literals.ttl b/examples/example-110-Same-example-in-Turtle-using-typed-literals.ttl deleted file mode 100644 index 776b2d0b..00000000 --- a/examples/example-110-Same-example-in-Turtle-using-typed-literals.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix xsd: . - - ex:numbers "14"^^xsd:integer, "2.78E0"^^xsd:double ; - ex:booleans "true"^^xsd:boolean, "false"^^xsd:boolean . \ No newline at end of file diff --git a/examples/example-111-A-list-of-values-in-Turtle.ttl b/examples/example-111-A-list-of-values-in-Turtle.ttl deleted file mode 100644 index 67ef7da2..00000000 --- a/examples/example-111-A-list-of-values-in-Turtle.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix foaf: . - a foaf:Person; - foaf:name "Joe Bob"; - foaf:nick ( "joe" "bob" "jaybee" ) . \ No newline at end of file diff --git a/examples/example-112-Same-example-with-a-list-of-values-in-JSON-LD.jsonld b/examples/example-112-Same-example-with-a-list-of-values-in-JSON-LD.jsonld deleted file mode 100644 index 2b955397..00000000 --- a/examples/example-112-Same-example-with-a-list-of-values-in-JSON-LD.jsonld +++ /dev/null @@ -1,11 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/" - }, - "@id": "http://example.org/people#joebob", - "@type": "foaf:Person", - "foaf:name": "Joe Bob", - "foaf:nick": { - "@list": [ "joe", "bob", "jaybee" ] - } -} \ No newline at end of file diff --git a/examples/example-113-RDFa-fragment-that-describes-three-people.html b/examples/example-113-RDFa-fragment-that-describes-three-people.html deleted file mode 100644 index 6824d2c8..00000000 --- a/examples/example-113-RDFa-fragment-that-describes-three-people.html +++ /dev/null @@ -1,19 +0,0 @@ -
- -
\ No newline at end of file diff --git a/examples/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.jsonld b/examples/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.jsonld deleted file mode 100644 index 8d986702..00000000 --- a/examples/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -{ - "@context": { - "foaf": "http://xmlns.com/foaf/0.1/", - "foaf:homepage": {"@type": "@id"} - }, - "@graph": [ - { - "@type": "foaf:Person", - "foaf:homepage": "http://example.com/bob/", - "foaf:name": "Bob" - }, { - "@type": "foaf:Person", - "foaf:homepage": "http://example.com/eve/", - "foaf:name": "Eve" - }, { - "@type": "foaf:Person", - "foaf:homepage": "http://example.com/manu/", - "foaf:name": "Manu" - } - ] -} \ No newline at end of file diff --git a/examples/example-115-HTML-that-describes-a-book-using-microdata.html b/examples/example-115-HTML-that-describes-a-book-using-microdata.html deleted file mode 100644 index f50ad42d..00000000 --- a/examples/example-115-HTML-that-describes-a-book-using-microdata.html +++ /dev/null @@ -1,23 +0,0 @@ -
-
Title
-
Just a Geek
-
By
-
Wil Wheaton
-
Format
-
- - Print -
-
- - Ebook -
-
\ No newline at end of file diff --git a/examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld b/examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld deleted file mode 100644 index bf62038f..00000000 --- a/examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "@id": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N", - "@type": "http://purl.org/vocab/frbr/core#Work", - "http://purl.org/dc/terms/title": "Just a Geek", - "http://purl.org/dc/terms/creator": "Wil Wheaton", - "http://purl.org/vocab/frbr/core#realization": - [ - {"@id": "http://purl.oreilly.com/products/9780596007683.BOOK"}, - {"@id": "http://purl.oreilly.com/products/9780596802189.EBOOK"} - ] - }, { - "@id": "http://purl.oreilly.com/products/9780596007683.BOOK", - "@type": "http://purl.org/vocab/frbr/core#Expression", - "http://purl.org/dc/terms/type": {"@id": "http://purl.oreilly.com/product-types/BOOK"} - }, { - "@id": "http://purl.oreilly.com/products/9780596802189.EBOOK", - "@type": "http://purl.org/vocab/frbr/core#Expression", - "http://purl.org/dc/terms/type": {"@id": "http://purl.oreilly.com/product-types/EBOOK"} - } -] \ No newline at end of file diff --git a/index.html b/index.html index 263d152f..3e0453aa 100644 --- a/index.html +++ b/index.html @@ -4,14 +4,9 @@ JSON-LD 1.1 - - - @@ -225,9597 +154,6 @@

Introduction

Web sites. It allows an application to start at one piece of Linked Data, and follow embedded links to other pieces of Linked Data that are hosted on different sites across the Web.

- -

JSON-LD is a lightweight syntax to serialize Linked Data in - JSON [[!RFC8259]]. Its design allows existing JSON to be interpreted as - Linked Data with minimal changes. JSON-LD is primarily intended to be a - way to use Linked Data in Web-based programming environments, to build - interoperable Web services, and to store Linked Data in JSON-based storage engines. Since - JSON-LD is 100% compatible with JSON, the large number of JSON parsers and libraries - available today can be reused. In addition to all the features JSON provides, - JSON-LD introduces:

- -
    -
  • a universal identifier mechanism for JSON objects - via the use of IRIs,
  • -
  • a way to disambiguate keys shared among different JSON documents by mapping - them to IRIs via a context,
  • -
  • a mechanism in which a value in a JSON object may refer - to a resource on a different site on the Web,
  • -
  • the ability to annotate strings with their language,
  • -
  • a way to associate datatypes with values such as dates and times,
  • -
  • and a facility to express one or more directed graphs, such as a social - network, in a single document.
  • -
- -

- JSON-LD is designed to be usable directly as JSON, with no knowledge of RDF - [[RDF11-CONCEPTS]]. It is also designed to be usable as RDF, if desired, for - use with other Linked Data technologies like SPARQL. Developers who - require any of the facilities listed above or need to serialize an RDF Graph - or Dataset in a JSON-based syntax will find JSON-LD of interest. People - intending to use JSON-LD with RDF tools will find it can be used as another - RDF syntax, as with [[Turtle]] and [[TriG]]. Complete details of how JSON-LD relates - to RDF are in section . -

- -

- The syntax is designed to not disturb already - deployed systems running on JSON, but provide a smooth upgrade path from - JSON to JSON-LD. Since the shape of such data varies wildly, JSON-LD - features mechanisms to reshape documents into a deterministic structure - which simplifies their processing.

- -
-

How to Read this Document

- -

This document is a detailed specification for a serialization of Linked - Data in JSON. The document is primarily intended for the following audiences:

- -
    -
  • Software developers who want to encode Linked Data in a variety of - programming languages that can use JSON
  • -
  • Software developers who want to convert existing JSON to JSON-LD
  • -
  • Software developers who want to understand the design decisions and - language syntax for JSON-LD
  • -
  • Software developers who want to implement processors and APIs for - JSON-LD
  • -
  • Software developers who want to generate or consume Linked Data, - an RDF graph, or an RDF Dataset in a JSON syntax
  • -
- -

A companion document, the JSON-LD 1.1 Processing Algorithms and API specification - [[JSON-LD11-API]], specifies how to work with JSON-LD at a higher level by - providing a standard library interface for common JSON-LD operations.

- -

To understand the basics in this specification you must first be familiar with - JSON, which is detailed in [[!RFC8259]].

- -

This document almost exclusively uses the term IRI - (Internationalized Resource Indicator) - when discussing hyperlinks. Many Web developers are more familiar with the - URL (Uniform Resource Locator) - terminology. The document also uses, albeit rarely, the URI - (Uniform Resource Indicator) - terminology. While these terms are often used interchangeably among - technical communities, they do have important distinctions from one - another and the specification goes to great lengths to try and use the - proper terminology at all times. -

-
- -
-

Contributing

- -

There are a number of ways that one may participate in the development of - this specification:

- -
    -
  • Technical discussion typically occurs on the working group mailing list: - public-json-ld-wg@w3.org
  • - -
  • The working group uses #json-ld - IRC channel is available for real-time discussion on irc.w3.org.
  • - -
  • The #json-ld - IRC channel is also available for real-time discussion on irc.freenode.net.
  • -
- -
- -
-

Typographical conventions

-
-
- -
-

Terminology

- -

This document uses the following terms as defined in JSON [[!RFC8259]]. Refer - to the JSON Grammar section in [[!RFC8259]] for formal definitions.

- -
-
-
- -
-

Design Goals and Rationale

- -

JSON-LD satisfies the following design goals:

- -
-
Simplicity
-
No extra processors or software libraries are necessary to use JSON-LD - in its most basic form. The language provides developers with a very easy - learning curve. Developers only need to know JSON and two - keywords (@context - and @id) to use the basic functionality in JSON-LD.
-
Compatibility
-
A JSON-LD document is always a valid JSON document. This ensures that - all of the standard JSON libraries work seamlessly with JSON-LD documents.
-
Expressiveness
-
The syntax serializes directed graphs. This ensures that almost - every real world data model can be expressed.
-
Terseness
-
The JSON-LD syntax is very terse and human readable, requiring as - little effort as possible from the developer.
-
Zero Edits, most of the time
-
JSON-LD ensures a smooth and simple transition from existing - JSON-based systems. In many cases, - zero edits to the JSON document and the addition of one line to the HTTP response - should suffice (see ). - This allows organizations that have - already deployed large JSON-based infrastructure to use JSON-LD's features - in a way that is not disruptive to their day-to-day operations and is - transparent to their current customers. However, there are times where - mapping JSON to a graph representation is a complex undertaking. - In these instances, rather than extending JSON-LD to support - esoteric use cases, we chose not to support the use case. While Zero - Edits is a design goal, it is not always possible without adding - great complexity to the language. JSON-LD focuses on simplicity when - possible.
-
Usable as RDF
-
JSON-LD is usable by developers as - idiomatic JSON, with no need to understand RDF [[RDF11-CONCEPTS]]. - JSON-LD is also usable as RDF, so people intending to use JSON-LD - with RDF tools will find it can be used like any other RDF syntax. - Complete details of how JSON-LD relates to RDF are in section - .
-
-
- -
-

Data Model Overview

- -

Generally speaking, the data model described by a - JSON-LD document is a labeled, - directed graph. The graph contains - nodes, which are connected by - edges. A node is typically data - such as a string, number, - typed values (like dates and times) - or an IRI.

-

Within a directed graph, nodes with may - be unnamed, i.e., not identified by an IRI or representing - data such as strings or numbers. Such nodes are called blank nodes, - and may be identified using a blank node identifier. - These identifiers may be required to represent a fully connected graph - using a tree structure, such as JSON, but otherwise have no - intrinsic meaning.

-

This simple data model is incredibly - flexible and powerful, capable of modeling almost any kind of - data. For a deeper explanation of the data model, see - section .

- -

Developers who are familiar with Linked Data technologies will - recognize the data model as the RDF Data Model. To dive deeper into how - JSON-LD and RDF are related, see - section .

- -

At the surface level, a JSON-LD document is simply - JSON, detailed in [[!RFC8259]]. - For the purpose of describing the core data structures, - this is limited to arrays, dictionaries (the parsed version of a JSON Object), - strings, numbers, booleans, and null, - called the JSON-LD internal representation. - This allows surface syntaxes other than JSON - to be manipulated using the same algorithms, when the syntax maps - to equivalent core data structures.

-

Although not discussed in this specification, - parallel work using YAML [[YAML]] - and binary representations such as CBOR [[RFC7049]] - could be used to map into the internal representation, allowing - the JSON-LD 1.1 API [[JSON-LD11-API]] to operate as if the source was a - JSON document.

-
- -
-

Syntax Tokens and Keywords

- -

JSON-LD specifies a number of syntax tokens and keywords - that are a core part of the language:

- -
-
@context
-
Used to define the short-hand names that are used throughout a JSON-LD - document. These short-hand names are called terms and help - developers to express specific identifiers in a compact manner. The - @context keyword is described in detail in - .
-
@id
-
Used to uniquely identify node objects that are being described in the document - with IRIs or - blank node identifiers. This keyword - is described in .
-
@value
-
Used to specify the data that is associated with a particular - property in the graph. This keyword is described in - and - .
-
@language
-
Used to specify the language for a particular string value or the default - language of a JSON-LD document. This keyword is described in - .
-
@type
-
Used to set the data type of a node or - typed value. This keyword is described in - .
-
@container
-
Used to set the default container type for a term. - This keyword is described in the following sections: -
    -
  • ,
  • -
  • ,
  • -
  • ,
  • -
  • ,
  • -
  • -
  • ,
  • -
  • , and
  • -
  • -
-
@list
-
Used to express an ordered set of data. - This keyword is described in .
-
@set
-
Used to express an unordered set of data and to ensure that values are always - represented as arrays. This keyword is described in - .
-
@reverse
-
Used to express reverse properties. This keyword is described in - .
-
@index
-
Used to specify that a container is used to index information and - that processing should continue deeper into a JSON data structure. - This keyword is described in .
-
@base
-
Used to set the base IRI against which to resolve those relative IRIs - interpreted relative to the document. - This keyword is described in .
-
@vocab
-
Used to expand properties and values in @type with a common prefix - IRI. This keyword is described in .
-
@graph
Used to express a graph. - This keyword is described in .
-
@nest
Collects a set of nested properties within - a node object.
-
@none
Used as an index value - in an id map, language map, type map, or elsewhere where a dictionary is - used to index into other values.
-
@prefix
- With the value true, allows this term to be used to construct a compact IRI - when compacting.
-
@version
- Used in a context definition to set the processing mode. - New features since JSON-LD 1.0 [[!JSON-LD]] described in this specification are - only available when processing mode has been explicitly set to - json-ld-1.1. -
-
:
-
The separator for JSON keys and values that use - compact IRIs.
-
- -

All keys, keywords, and values in JSON-LD are case-sensitive.

-
- - -
-

Conformance criteria are relevant to authors and authoring tool implementers. As well - as sections marked as non-normative, all authoring guidelines, diagrams, examples, - and notes in this specification are non-normative. Everything else in this - specification is normative.

- -

A JSON-LD document complies with this specification if it follows - the normative statements in appendix . JSON documents - can be interpreted as JSON-LD by following the normative statements in - . For convenience, normative - statements for documents are often phrased as statements on the properties of the document.

- -

This specification makes use of the following namespace prefixes:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PrefixIRI
dchttp://purl.org/dc/terms/
credhttps://w3id.org/credentials#
foafhttp://xmlns.com/foaf/0.1/
geojsonhttps://purl.org/geojson/vocab#
provhttp://www.w3.org/ns/prov#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
schemahttp://schema.org/
skoshttp://www.w3.org/2004/02/skos/core#
xsdhttp://www.w3.org/2001/XMLSchema#
- -

These are used within this document as part of a compact IRI - as a shorthand for the resulting absolute IRI, such as dc:title - used to represent http://purl.org/dc/terms/title.

-
- -
-

Basic Concepts

- -

JSON [[RFC8259]] is a lightweight, language-independent data interchange format. - It is easy to parse and easy to generate. However, it is difficult to integrate JSON - from different sources as the data may contain keys that conflict with other - data sources. Furthermore, JSON has no - built-in support for hyperlinks, which are a fundamental building block on - the Web. Let's start by looking at an example that we will be using for the - rest of this section:

- -
-  
-  
- -

It's obvious to humans that the data is about a person whose - name is "Manu Sporny" - and that the homepage property contains the URL of that person's homepage. - A machine doesn't have such an intuitive understanding and sometimes, - even for humans, it is difficult to resolve ambiguities in such representations. This problem - can be solved by using unambiguous identifiers to denote the different concepts instead of - tokens such as "name", "homepage", etc.

- -

Linked Data, and the Web in general, uses IRIs - (Internationalized Resource Identifiers as described in [[!RFC3987]]) for unambiguous - identification. The idea is to use IRIs - to assign unambiguous identifiers to data that may be of use to other developers. - It is useful for terms, - like name and homepage, to expand to IRIs - so that developers don't accidentally step on each other's terms. Furthermore, developers and - machines are able to use this IRI (by using a web browser, for instance) to go to - the term and get a definition of what the term means. This process is known as IRI - dereferencing.

- -

Leveraging the popular schema.org vocabulary, - the example above could be unambiguously expressed as follows:

- - - -

In the example above, every property is unambiguously identified by an IRI and all values - representing IRIs are explicitly marked as such by the - @id keyword. While this is a valid JSON-LD - document that is very specific about its data, the document is also overly verbose and difficult - to work with for human developers. To address this issue, JSON-LD introduces the notion - of a context as described in the next section.

- -
-

The Context

- -

When two people communicate with one another, the conversation takes - place in a shared environment, typically called - "the context of the conversation". This shared context allows the - individuals to use shortcut terms, like the first name of a mutual friend, - to communicate more quickly but without losing accuracy. A context in - JSON-LD works in the same way. It allows two applications to use shortcut - terms to communicate with one another more efficiently, but without - losing accuracy.

- -

Simply speaking, a context is used to map terms to - IRIs. Terms are case sensitive - and any valid string that is not a reserved JSON-LD keyword - can be used as a term.

- -

For the sample document in the previous section, a context would - look something like this:

- -
-    
-    
- -

As the context above shows, the value of a term definition can - either be a simple string, mapping the term to an IRI, - or a dictionary.

- -

When a when a member with a term key has a dictionary value, the dictionary is called - an expanded term definition. The example above specifies that - the values of image and homepage, if they are - strings, are to be interpreted as - IRIs. Expanded term definitions - also allow terms to be used for index maps - and to specify whether array values are to be - interpreted as sets or lists. - Expanded term definitions may - be defined using absolute or - compact IRIs as keys, which is - mainly used to associate type or language information with an - absolute or compact IRI.

- -

Contexts can either be directly embedded - into the document or be referenced. Assuming the context document in the previous - example can be retrieved at https://json-ld.org/contexts/person.jsonld, - it can be referenced by adding a single line and allows a JSON-LD document to - be expressed much more concisely as shown in the example below:

- - - -

The referenced context not only specifies how the terms map to - IRIs in the Schema.org vocabulary but also - specifies that string values associated with - the homepage and image property - can be interpreted as an IRI ("@type": "@id", - see for more details). This information allows developers - to re-use each other's data without having to agree to how their data will interoperate - on a site-by-site basis. External JSON-LD context documents may contain extra - information located outside of the @context key, such as - documentation about the terms declared in the - document. Information contained outside of the @context value - is ignored when the document is used as an external JSON-LD context document.

- -

JSON documents can be interpreted as JSON-LD without having to be modified by - referencing a context via an HTTP Link Header - as described in . It is also - possible to apply a custom context using the JSON-LD 1.1 API [[JSON-LD11-API]].

- -

In JSON-LD documents, - contexts may also be specified inline. - This has the advantage that documents can be processed even in the - absence of a connection to the Web. Ultimately, this is a modeling decision - and different use cases may require different handling.

- - - -

This section only covers the most basic features of the JSON-LD Context. - The Context can also be used to help interpret other more - complex JSON data structures, such as indexed values, - ordered values, and - nested properties. - More advanced features related to the JSON-LD Context are covered in - section .

-
- -
-

IRIs

- -

IRIs (Internationalized Resource Identifiers - [[!RFC3987]]) are fundamental to Linked Data as that is how most - nodes and properties - are identified. In JSON-LD, IRIs may be represented as an - absolute IRI or a relative IRI. An - absolute IRI is defined in [[!RFC3987]] as containing a - scheme along with path and optional query and - fragment segments. A relative IRI is an IRI - that is relative to some other absolute IRI. - In JSON-LD, with exceptions are as described below, all relative IRIs - are resolved relative to the base IRI.

- -

Properties, values of @type, - and values of properties with a term definition - that defines them as being relative to the vocabulary mapping, - may have the form of a relative IRI, but are resolved using the - vocabulary mapping, and not the base IRI.

- -

A string is interpreted as an IRI when it is the - value of an dictionary member with the key@id:

- -
-  
-  
- -

Values that are interpreted as IRIs, can also be - expressed as relative IRIs. For example, - assuming that the following document is located at - http://example.com/about/, the relative IRI - ../ would expand to http://example.com/ (for more - information on where relative IRIs can be - used, please refer to section ).

- -
-  
-  
- -

Absolute IRIs can be expressed directly - in the key position like so:

- -
-  
-  
- -

In the example above, the key http://schema.org/name - is interpreted as an absolute IRI.

- -

Term-to-IRI expansion occurs if the key matches a term defined - within the active context:

- - - -

JSON keys that do not expand to an IRI, such as status - in the example above, are not Linked Data and thus ignored when processed.

- -

If type coercion rules are specified in the @context for - a particular term or property IRI, an IRI is generated:

- - - -

In the example above, since the value http://manu.sporny.org/ - is expressed as a JSON string, the type coercion - rules will transform the value into an IRI when processing the data. - See for more - details about this feature.

- -

In summary, IRIs can be expressed in a variety of - different ways in JSON-LD:

- -
    -
  1. Dictionary members that have a key mapping to a term in - the active context expand to an IRI - (only applies outside of the context definition).
  2. -
  3. An IRI is generated for the string value specified using - @id or @type.
  4. -
  5. An IRI is generated for the string value of any key for which there - are coercion rules that contain an @type key that is - set to a value of @id or @vocab.
  6. -
- -

This section only covers the most basic features associated with IRIs - in JSON-LD. More advanced features related to IRIs are covered in - section . -

- -
- -
-

Node Identifiers

- -

To be able to externally reference nodes - in a graph, it is important that - nodes have an identifier. IRIs - are a fundamental concept of Linked Data, for - nodes to be truly linked, dereferencing the - identifier should result in a representation of that node. - This may allow an application to retrieve further information about a - node.

- -

In JSON-LD, a node is identified using the @id - keyword:

- - - -

The example above contains a node object identified by the IRI - http://me.markus-lanthaler.com/.

- -

This section only covers the most basic features associated with - node identifiers in JSON-LD. More advanced features related to - node identifiers are covered in section . -

- -
- -
-

Specifying the Type

- -

In Linked Data, it is common to specify the type of a graph node; - in many cases, this can be inferred based on the properties used within a - given node object, or the property for which a node is a value. For - example, in the schema.org vocabulary, the givenName - property is associated with a Person. Therefore, one may reason that - if a node object contains the property firstName, that the - type is a Person; making this explicit with @type helps - to clarify the association.

- -

The type of a particular node can be specified using the @type - keyword. In Linked Data, types are uniquely - identified with an IRI.

- - - -

A node can be assigned more than one type by using an array:

- - - -

The value of an @type key may also be a term defined in the active context:

- - - -

This section only covers the most basic features associated with - types in JSON-LD. It is worth noting that the @type - keyword is not only used to specify the type of a - node but also to express typed values - (as described in ) and to - type coerce values (as described in - ). Specifically, @type - cannot be used in a context to define a node's - type. For a detailed description of the differences, please refer to - .

- -
-
- -
-

Advanced Concepts

- -

JSON-LD has a number of features that provide functionality above and beyond - the core functionality described above. JSON can be used to express data - using such structures, and the features described in this - section can be used to interpret a variety of different JSON structures as - Linked Data. A JSON-LD processor will make use of provided and embedded - contexts to interpret property values in a number of different idiomatic - ways.

- -
-
Describing values
-

One pattern in JSON is for the value of a property to be a string. - Often times, this string actually represents some other typed value, for - example an IRI, a date, or a string in some specific language. See for details on how to - describe such value typing.

-
Value ordering
-

In JSON, a property with an array value implies an implicit order; - arrays in JSON-LD do not provide an ordering of the contained elements by - default, unless defined using embedded structures or through a context - definition. See for a - further discussion.

-
Property nesting
-

Another JSON idiom often found in APIs is to use an - intermediate object to represent the properties of an object; in JSON-LD - these are refered to as nested properties and are described in .

-
Referencing objects
-
-

Linked Data is all about describing the relationships between different resources. - Sometimes these relationships are between resources defined in different - documents described on the web, sometimes the resources are described - within the same document.

- - - -

In this case, a document residing at http://manu.sporny.org/about - may contain the example above, and reference another document at - http://greggkellogg.net/foaf which could include a similar - representation.

- -

A common idiom found in JSON usage is objects being specified as the - value of other objects, called object embedding in JSON-LD; - for example, a friend specified as an - object value of a Person:

- - - -

See details these relationships.

-
-
Indexed values
-

Another common idiom in JSON is to use an intermediate object to represent property values via indexing. JSON-LD allows data to be indexed - in a number of different ways, as detailed in .

-
Reverse Properties
-

JSON-LD serializes directed graphs. That means that - every property points from a node to another node - or value. However, in some cases, it is desirable - to serialize in the reverse direction, as detailed in .

-
- -

The following sections describe such - advanced functionality in more detail.

- -

Advanced Context Usage

- -

Section introduced the basics of what makes - JSON-LD work. This section expands on the basic principles of the - context and demonstrates how more advanced use cases can - be achieved using JSON-LD.

- -

In general, contexts may be used any time a - dictionary is defined. - The only time that one cannot express a context is as a direct child of another context definition (other than as part of an expanded term definition). - For example, a JSON-LD document may use more than one context at different - points in a document:

- - - -

Duplicate context terms are overridden using a - most-recently-defined-wins mechanism.

- - - -

In the example above, the name term is overridden - in the more deeply nested details structure. Note that this is - rarely a good authoring practice and is typically used when working with - legacy applications that depend on a specific structure of the - dictionary. If a term is redefined within a - context, all previous rules associated with the previous definition are - removed. If a term is redefined to null, - the term is effectively removed from the list of - terms defined in the active context.

- -

Multiple contexts may be combined using an array, which is processed - in order. The set of contexts defined within a specific dictionary are - referred to as local contexts. The - active context refers to the accumulation of - local contexts that are in scope at a - specific point within the document. Setting a local context - to null effectively resets the active context - to an empty context, without term definitions, default language, - or other things defined within previous contexts. - The following example specifies an external context - and then layers an embedded context on top of the external context:

- - - -

When possible, the context definition should be put - at the top of a JSON-LD document. This makes the document easier to read and - might make streaming parsers more efficient. Documents that do not have the - context at the top are still conformant JSON-LD.

- -

To avoid forward-compatibility issues, terms - starting with an @ character are to be avoided as they - might be used as keyword in future versions - of JSON-LD. Terms starting with an @ character that are not - JSON-LD 1.1 keywords are treated as any other term, i.e., - they are ignored unless mapped to an IRI. Furthermore, the use of - empty terms ("") is not allowed as - not all programming languages are able to handle empty JSON keys.

- -

JSON-LD 1.1 Processing Mode

- -

New features defined in JSON-LD 1.1 are available - when the processing mode is set to json-ld-1.1. - This may be set using the @version member in a context - set to the value 1.1 as a number, or through an API option.

- -
-  
-  
- -

The first context encountered when processing a - document which contains @version determines the processing mode, - unless it is defined explicitly through an API option.

- -

Setting the processing mode explicitly - for JSON-LD 1.1 is necessary so that a JSON-LD 1.0 processor - does not attempt to process a JSON-LD 1.1 document and silently - produce different results.

-
- -

Default Vocabulary

- -

At times, all properties and types may come from the same vocabulary. JSON-LD's - @vocab keyword allows an author to set a common prefix which - is used as the vocabulary mapping and is used - for all properties and types that do not match a term and are neither - a compact IRI nor an absolute IRI (i.e., they do - not contain a colon).

- - - -

If @vocab is used but certain keys in an - dictionary should not be expanded using - the vocabulary IRI, a term can be explicitly set - to null in the context. For instance, in the - example below the databaseId member would not expand to an - IRI causing the property to be dropped when expanding.

- - - -
-

Using the Document Base as the Default Vocabulary

-

In some cases, vocabulary terms are defined directly within the document - itself, rather than in an external vocabulary. Since - json-ld-1.1, the vocabulary mapping in the active - context can be set to the empty string "", which causes terms which - are expanded relative to the vocabulary, such as the keys of node - objects, to use the base IRI to create absolute - IRIs.

- -
-  
-  
- -

If this document were located at http://example/document, it would expand as follows:

- - -
-
- -

Base IRI

- -

JSON-LD allows IRIs - to be specified in a relative form which is - resolved against the document base according - section 5.1 Establishing a Base URI - of [[RFC3986]]. The base IRI may be explicitly set with a context - using the @base keyword.

- -

For example, if a JSON-LD document was retrieved from http://example.com/document.jsonld, - relative IRIs would resolve against that IRI:

- -
-    
-  
- -

This document uses an empty @id, which resolves to the document base. - However, if the document is moved to a different location, the IRI would change. - To prevent this without having to use an absolute IRI, a context - may define an @base mapping, to overwrite the base IRI for the document.

- - - -

Setting @base to null will prevent - relative IRIs from being expanded to - absolute IRIs.

- -

Please note that the @base will be ignored if used in - external contexts.

-
- -

Compact IRIs

- -

A compact IRI is a way of expressing an IRI - using a prefix and suffix separated by a colon (:). - The prefix is a term taken from the - active context and is a short string identifying a - particular IRI in a JSON-LD document. For example, the - prefix foaf may be used as a short hand for the - Friend-of-a-Friend vocabulary, which is identified using the IRI - http://xmlns.com/foaf/0.1/. A developer may append - any of the FOAF vocabulary terms to the end of the prefix to specify a short-hand - version of the absolute IRI for the vocabulary term. For example, - foaf:name would be expanded to the IRI - http://xmlns.com/foaf/0.1/name.

- - - -

In the example above, foaf:name expands to the IRI - http://xmlns.com/foaf/0.1/name and foaf:Person expands - to http://xmlns.com/foaf/0.1/Person.

- -

Prefixes are expanded when the form of the value - is a compact IRI represented as a prefix:suffix - combination, the prefix matches a term defined within the - active context, and the suffix does not begin with two - slashes (//). The compact IRI is expanded by - concatenating the IRI mapped to the prefix to the (possibly empty) - suffix. If the prefix is not defined in the active context, - or the suffix begins with two slashes (such as in http://example.com), - the value is interpreted as absolute IRI instead. If the prefix is an - underscore (_), the value is interpreted as blank node identifier - instead.

- -

It's also possible to use compact IRIs within the context as shown in the - following example:

- - - -

In JSON-LD 1.0, terms may be chosen as compact IRI prefixes when - compacting only if a simple term definition is used where the value ends with a - URI gen-delim character (e.g, /, - # and others, see [[!RFC3986]]). - The previous specification allows any term to be chosen as - a compact IRI prefix, which led to a poor experience.

- -

In JSON-LD 1.1, terms may be chosen as compact IRI prefixes - when compacting only if - a simple term definition is used where the value ends with a URI gen-delim character, - or if their expanded term definition contains - a @prefix member with the value true.

- -

This represents a small change to the 1.0 algorithm to prevent IRIs - that are not really intended to be used as prefixes from being used for creating - compact IRIs.

- -

When processing mode is set to json-ld-1.1, terms will be used as compact IRI prefixes - when compacting only if their expanded term definition contains - a @prefix member with the value true, or if it has a - a simple term definition where the value ends with a URI gen-delim character - (e.g, /, # and others, see [[!RFC3986]]).

- - - -

In this case, the compact-iris term would not normally be usable as a prefix, both - because it is defined with an expanded term definition, and because - it's @id does not end in a - gen-delim character. Adding - "@prefix": true allows it to be used as the prefix portion of - the compact IRI compact-iris:are-considered.

-
- -

Aliasing Keywords

- -

Each of the JSON-LD keywords, - except for @context, may be aliased to application-specific - keywords. This feature allows legacy JSON content to be utilized - by JSON-LD by re-using JSON keys that already exist in legacy documents. - This feature also allows developers to design domain-specific implementations - using only the JSON-LD context.

- - - -

In the example above, the @id and @type - keywords have been given the aliases - url and a, respectively.

- -

Since keywords cannot be redefined, they can also not be aliased to - other keywords.

- -

Aliased keywords may not be used within a context, itself.

-
- -

IRI Expansion within a Context

-

In general, normal IRI expansion rules apply - anywhere an IRI is expected (see ). Within - a context definition, this can mean that terms defined - within the context may also be used within that context as long as - there are no circular dependencies. For example, it is common to use - the xsd namespace when defining typed values:

- -
-
-
- -

In this example, the xsd term is defined - and used as a prefix for the @type coercion - of the age property.

- -

Terms may also be used when defining the IRI of another -term:

- -
-
-
- -

Compact IRIs - and IRIs may be used on the left-hand side of a - term definition.

- -
-
-
- -

-In this example, the compact IRI form is used in two different -ways. -In the first approach, foaf:age declares both the -IRI for the term (using short-form) as well as the -@type associated with the term. In the second -approach, only the @type associated with the term is -specified. The full IRI for -foaf:homepage is determined by looking up the foaf -prefix in the -context. -

- -

-Absolute IRIs may also be used in the key position in a context: -

- -
-
-
- -

In order for the absolute IRI to match above, the absolute IRI - needs to be used in the JSON-LD document. Also note that foaf:homepage - will not use the { "@type": "@id" } declaration because - foaf:homepage is not the same as http://xmlns.com/foaf/0.1/homepage. - That is, terms are looked up in a context using - direct string comparison before the prefix lookup mechanism is applied.

- -

While it is possible to define a compact IRI, or - an absolute IRI to expand to some other unrelated IRI - (for example, foaf:name expanding to - http://example.org/unrelated#species), such usage is strongly - discouraged.

- -

The only exception for using terms in the context is that - circular definitions are not allowed. That is, - a definition of term1 cannot depend on the - definition of term2 if term2 also depends on - term1. For example, the following context definition - is illegal:

-
-
-
-
- -

Scoped Contexts

- -

An expanded term definition can include a @context - property, which defines a context (an embedded context) for values of properties defined using that term. This allows - values to use term definitions, base IRI, - vocabulary mapping or default language which is different from the - node object they are contained in, as if the - context was specified within the value itself.

- - - -

In this case, the social profile is defined using the schema.org vocabulary, but interest is imported from FOAF, and is used to define a node describing one of Manu's interests where those properties now come from the FOAF vocabulary.

- -

Expanding this document, uses a combination of terms defined in the outer context, and those defined specifically for that term in an embedded context.

- -

Scoping can also be performed using a term used as a value of @type:

- - - -

Scoping on @type is useful when common properties are used to - relate things of different types, where the vocabularies in use within - different entities calls for different context scoping. For example, - hasPart/partOf may be common terms used in a document, but mean - different things depending on the context.

- -

When expanding, each value of @type is considered - (ordering them lexographically) where that value is also a term in - the active context having its own embedded context. If so, that - embedded context is applied to the active context. When compacting, if - a term is chosen to represent an IRI used as a value of @type where that - term definition also has an embedded context, it is then applied to the - active context to affect further compaction.

- -

The values of @type are unordered, so if multiple - types are listed, the order that scoped contexts are applied is based on - lexicographical ordering.

- -

If a term defines a scoped context, and then that term - is later re-defined, the association of the context defined in the earlier - expanded term definition is lost - within the scope of that re-definition. This is consistent with - term definitions of a term overriding previous term definitions from - earlier less deeply nested definitions, as discussed in - .

- -

Scoped Contexts are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
- -

Describing Values

-

Values are leaf nodes in a graph associated with scalar values such as - strings, dates, times, and other such atomic values.

- -

Typed Values

- -

A value with an associated type, also known as a - typed value, is indicated by associating a value with - an IRI which indicates the value's type. Typed values may be - expressed in JSON-LD in three ways:

- -
    -
  1. By utilizing the @type keyword when defining - a term within an @context section.
  2. -
  3. By utilizing a value object.
  4. -
  5. By using a native JSON type such as number, true, or false.
  6. -
- -

The first example uses the @type keyword to associate a -type with a particular term in the @context:

- - - -

The modified key's value above is automatically type coerced to a - dateTime value because of the information specified in the - @context. The example tabs show how a JSON-LD processor will interpret the data.

- -

The second example uses the expanded form of setting the type information -in the body of a JSON-LD document:

- - - -

Both examples above would generate the value - 2010-05-29T14:17:39+02:00 with the type - http://www.w3.org/2001/XMLSchema#dateTime. Note that it is - also possible to use a term or a compact IRI to - express the value of a type.

- -

The @type keyword is also used to associate a type - with a node. The concept of a node type and - a value type are different.

- -

A node type specifies the type of thing - that is being described, like a person, place, event, or web page. A - value type specifies the data type of a particular value, such - as an integer, a floating point number, or a date.

- -
-
-
- -

The first use of @type associates a node type - (http://schema.org/BlogPosting) with the node, - which is expressed using the @id keyword. - The second use of @type associates a value type - (http://www.w3.org/2001/XMLSchema#dateTime) with the - value expressed using the @value keyword. As a - general rule, when @value and @type are used in - the same dictionary, the @type - keyword is expressing a value type. - Otherwise, the @type keyword is expressing a - node type. The example above expresses the following data:

- - -
- -

Type Coercion

- -

JSON-LD supports the coercion of values to particular data types. -Type coercion allows someone deploying JSON-LD to coerce the incoming or -outgoing values to the proper data type based on a mapping of data type IRIs to -terms. Using type coercion, value representation is preserved without requiring -the data type to be specified with each piece of data.

- -

Type coercion is specified within an expanded term definition - using the @type key. The value of this key expands to an IRI. - Alternatively, the keyword @id or @vocab may be used - as value to indicate that within the body of a JSON-LD document, a string value of a - term coerced to @id or @vocab is to be interpreted as an - IRI. The difference between @id and @vocab is how values are expanded - to absolute IRIs. @vocab first tries to expand the value - by interpreting it as term. If no matching term is found in the - active context, it tries to expand it as compact IRI or absolute IRI - if there's a colon in the value; otherwise, it will expand the value using the - active context's vocabulary mapping, if present. - Values coerced to @id in contrast are expanded as - compact IRI or absolute IRI if a colon is present; otherwise, they are interpreted - as relative IRI.

- -

Terms or compact IRIs used as the value of a - @type key may be defined within the same context. This means that one may specify a - term like xsd and then use xsd:integer within the same - context definition.

- -

The example below demonstrates how a JSON-LD author can coerce values to -typed values and IRIs.

- - - -

Terms may also be defined using absolute IRIs - or compact IRIs. This allows coercion rules - to be applied to keys which are not represented as a simple term. - For example:

- - - -

In this case the @id definition in the term definition is optional. - If it does exist, the compact IRI or IRI representing - the term will always be expanded to IRI defined by the @id - key—regardless of whether a prefix is defined or not.

- -

Type coercion is always performed using the unexpanded value of the key. In the - example above, that means that type coercion is done looking for foaf:age - in the active context and not for the corresponding, expanded - IRI http://xmlns.com/foaf/0.1/age.

- -

Keys in the context are treated as terms for the purpose of - expansion and value coercion. At times, this may result in multiple representations for the same expanded IRI. - For example, one could specify that dog and cat both expanded to http://example.com/vocab#animal. - Doing this could be useful for establishing different type coercion or language specification rules. It also allows a compact IRI (or even an - absolute IRI) to be defined as something else entirely. For example, one could specify that - the term http://example.org/zoo should expand to - http://example.org/river, but this usage is discouraged because it would lead to a - great deal of confusion among developers attempting to understand the JSON-LD document.

-
- -

String Internationalization

- -

At times, it is important to annotate a string - with its language. In JSON-LD this is possible in a variety of ways. - First, it is possible to define a default language for a JSON-LD document - by setting the @language key in the context:

- - - -

The example above would associate the ja language - code with the two strings 花澄 and 科学者. - Languages codes are defined in [[!BCP47]]. The default language applies to all - string values that are not type coerced.

- -

To clear the default language for a subtree, @language can - be set to null in a local context as follows:

- -
-  
-  
- -

Second, it is possible to associate a language with a specific term - using an expanded term definition:

- -
-  
-  
- -

The example above would associate 忍者 with the specified default - language code ja, Ninja with the language code - en, and Nindža with the language code cs. - The value of name, Yagyū Muneyoshi wouldn't be - associated with any language code since @language was reset to - null in the expanded term definition.

- -

Language associations are only applied to plain - strings. Typed values - or values that are subject to type coercion - are not language tagged.

- -

Just as in the example above, systems often need to express the value of a - property in multiple languages. Typically, such systems also try to ensure that - developers have a programmatically easy way to navigate the data structures for - the language-specific data. In this case, language maps - may be utilized.

- -
-  
-  
- -

The example above expresses exactly the same information as the previous - example but consolidates all values in a single property. To access the - value in a specific language in a programming language supporting dot-notation - accessors for object properties, a developer may use the - property.language pattern. For example, to access the occupation - in English, a developer would use the following code snippet: - obj.occupation.en.

- -

Third, it is possible to override the default language by using a - value object:

- -
-  
-  
- -

This makes it possible to specify a plain string by omitting the - @language tag or setting it to null when expressing - it using a value object:

- -
-  
-  
- -

See for a description - of using language maps to set the language of mapped values.

-
- -
- -

Value Ordering

- -

A JSON-LD author can express multiple values in a compact way by using - arrays. Since graphs do not describe ordering for links - between nodes, arrays in JSON-LD do not provide an ordering of the - contained elements by default. This is exactly the opposite from regular JSON - arrays, which are ordered by default. For example, consider the following - simple document:

- - - -

Multiple values may also be expressed using the expanded form:

- - - -

The example shown above would generates statement, again with - no inherent order.

- -

Although multiple values of a property are typically of the same type, - JSON-LD places no restriction on this, and a property may have values - of different types:

- - - -

When viewed as statements, the values have no inherent order.

- - -

Lists

-

As the notion of ordered collections is rather important in data - modeling, it is useful to have specific language support. In JSON-LD, - a list may be represented using the @list keyword as follows:

- - - -

This describes the use of this array as being ordered, - and order is maintained when processing a document. If every use of a given multi-valued - property is a list, this may be abbreviated by setting @container - to @list in the context:

- - - -

The implementation of lists in RDF depends on linking anonymous nodes - together using the properties rdf:first and - rdf:rest, with the end of the list defined as the resource - rdf:nil. This can be represented as statments, as the "statements" - tab illustrates.

- - -

Both JSON-LD and Turtle provide shortcuts for representing ordered lists.

- -

In JSON-LD 1.1, lists of lists, where the value of - a list object, may itself be a list object, are - fully supported. For example, in GeoJSON (see [[RFC7946]]), - coordinates are an ordered list of positions, which are - represented as an array of two or more numbers:

- -
-{
-  "type": "Feature",
-  "bbox": [-10.0, -10.0, 10.0, 10.0],
-  "geometry": {
-    "type": "Polygon",
-    "coordinates": [
-        [
-            [-10.0, -10.0],
-            [10.0, -10.0],
-            [10.0, 10.0],
-            [-10.0, -10.0]
-        ]
-    ]
-  }
-  ####//...####
-}
-
- -

For these examples, it's important that values - expressed within bbox and coordinates maintain their order, - which requires the use of embedded list structures. In JSON-LD 1.1, we can - express this using recursive lists, by simply adding the appropriate context - definion:

- - - -

Note that coordinates includes three levels of lists.

- -

Values of terms associated with an @list container - are always represented in the form of an array, - even if there is just a single value or no value at all.

-
- -

Sets

- -

While @list is used to describe ordered lists, - the @set keyword is used to describe unordered sets. - The use of @set in the body of a JSON-LD document - is optimized away when processing the document, as it is just syntactic - sugar. However, @set is helpful when used within the context - of a document. - Values of terms associated with an @set container - are always represented in the form of an array, - even if there is just a single value that would otherwise be optimized to - a non-array form in compact form (see - ). This makes post-processing of - JSON-LD documents easier as the data is always in array form, even if the - array only contains a single value.

- - - -

This describes the use of this array as being unordered, - and order is maintained when processing a document. By default, - arrays of values are unordered, but this may be made explicit by - setting @container to @set in the context: - -

- -

Since JSON-LD 1.1, the @set keyword may be - combined with other container specifications within an expanded term - definition to similarly cause compacted values of indexes to be consistently - represented using arrays. See for a further discussion.

-
-
- - -

Nested Properties

- -

Many JSON APIs separate properties from their entities using an - intermediate object; in JSON-LD these are called nested properties. - For example, a set of possible labels may be grouped - under a common property:

- - - -

By defining labels using the keyword @nest, - a JSON-LD processor will ignore the nesting created by using the - labels property and process the contents as if it were declared - directly within containing object. In this case, the labels - property is semantically meaningless. Defining it as equivalent to - @nest causes it to be ignored when expanding, making it - equivalent to the following:

- - - -

Similarly, node objects may contain a @nest property to - reference a term aliased to @nest which causes such - values to be nested under that aliased term.

- - - -

Nested properties are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
- -

Embedding

- -

Embedding is a JSON-LD feature that allows an author to - use node objects as - property values. This is a commonly used mechanism for - creating a parent-child relationship between two nodes.

- -

Without embedding, node objects can be linked by referencing the - identifier of another node object. For example:

- - - -

The previous example describes two node objects, for Manu and Gregg, with - the knows property defined to treat string values as identifiers. - Embedding allows the node object for Gregg to be embedded as a value - of the knows property:

- - - -

A node object, like the one used above, may be used in - any value position in the body of a JSON-LD document. Note that type coercion of the knows property - is not required, as the value is not a string.

- - -

While it is considered a best practice to identify nodes in a graph, - at times this is impractical. In the data model, nodes without an explicit - identifier are called blank nodes, which can be represented in a - serialization such as JSON-LD using a blank node identifier. In the - previous example, the top-level node for Manu does not have an identifier, - and does not need one to describe it within the data model. However, if we - were to want to describe a knows relationship from Gregg to Manu, - we would need to introduce a blank node identifier - (here _:b0).

- - - -

Blank node identifiers may be automatically introduced by algorithms such as flattening, but they are also useful for authors to describe such relationships directly.

- -

Identifying Blank Nodes

- -

At times, it becomes necessary to be able to express information without - being able to uniquely identify the node with an IRI. - This type of node is called a blank node. JSON-LD does not require - all nodes to be identified using @id. However, some graph topologies - may require identifiers to be serializable. Graphs containing loops, e.g., cannot - be serialized using embedding alone, @id must be used to connect the nodes. - In these situations, one can use blank node identifiers, - which look like IRIs using an underscore (_) - as scheme. This allows one to reference the node locally within the document, but - makes it impossible to reference the node from an external document. The - blank node identifier is scoped to the document in which it is used.

- - - -

The example above contains information about two secret agents that cannot be identified - with an IRI. While expressing that agent 1 knows agent 2 - is possible without using blank node identifiers, - it is necessary to assign agent 1 an identifier so that it can be referenced - from agent 2.

-

It is worth noting that blank node identifiers may be relabeled during processing. - If a developer finds that they refer to the blank node more than once, - they should consider naming the node using a dereferenceable IRI so that - it can also be referenced from other documents.

-
-
- -

Indexed Values

- -

Sometimes multiple property values need to be accessed - in a more direct fashion than iterating though multiple array values. JSON-LD - provides an indexing mechanism to allow the use of an intermediate dictionary - to associate specific indexes with associated values.

- -
-
Data Indexing
As described in , - data indexing allows an arbitrary to reference a node or value.
-
Language Indexing
As described in , - language indexing allows a language to reference a string and be - interpreted as the language associated with that string.
-
Node Identifier Indexing
As described in , - node indentifier indexing allows an IRI to reference a node - and be interpreted as the identifier of that node.
-
Node Type Indexing
As described in , - node type indexing allows an IRI to reference a node - and be interpreted as a type of that node.
-
- -

See for other uses of indexing in JSON-LD.

- -

Data Indexing

- -

Databases are typically used to make access to - data more efficient. Developers often extend this sort of functionality into - their application data to deliver similar performance gains. Often this - data does not have any meaning from a Linked Data standpoint, but is - still useful for an application.

- -

JSON-LD introduces the notion of index maps - that can be used to structure data into a form that is - more efficient to access. The data indexing feature allows an author to - structure data using a simple key-value map where the keys do not map - to IRIs. This enables direct access to data - instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @index keyword with a - @container declaration in the context:

- - - -

In the example above, the post term has - been marked as an index map. The en and - de keys will be ignored semantically, but preserved - syntactically, by the JSON-LD Processor. This allows a developer to - access the German version of the post using the - following code snippet: obj.post.de.

- -

The interpretation of the data is expressed in - the statements table. Note how the index keys do not appear in the statements, - but would continue to exist if the document were compacted or - expanded (see and - ) using a JSON-LD processor.

- -

The value of @container can also - be an array containing both @index and @set. - When compacting, this ensures that a JSON-LD Processor will use - the array form for all values of indexes.

- -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - data which does not have an associated index, which is useful to maintain - a normalized representation.

- - -
-

Language Indexing

- -

JSON which includes string values in multiple languages may be - represented using a language map to allow for easily - indexing property values by language tag. This enables direct access to - language values instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @language keyword with a - @container declaration in the context:

- - - -

In the example above, the label term has - been marked as an language map. The en and - de keys are implicitly associated with their respective - values by the JSON-LD Processor. This allows a developer to - access the German version of the label using the - following code snippet: obj.label.de.

- -

The value of @container can also - be an array containing both @language and @set. - When compacting, this ensures that a JSON-LD Processor will use - the array form for all values of language tags.

- - - -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - data which does not have a language, which is useful to maintain - a normalized representation.

- - -
-

Node Identifier Indexing

- -

In addition to index maps, JSON-LD introduces the notion of id maps - for structuring data. The id indexing feature allows an author to - structure data using a simple key-value map where the keys map - to IRIs. This enables direct access to associated node objects - instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @id keyword with a - @container declaration in the context:

- - - -

In the example above, the post term has - been marked as an id map. The http://example.com/posts/1/en and - http://example.com/posts/1/de keys will be interpreted - as the @id property of the node object value.

- -

The interpretation of the data above is exactly the same - as that in - using a JSON-LD processor.

- -

The value of @container can also - be an array containing both @id and @set. - When compacting, this ensures that a JSON-LD processor will use - the array form for all values of node identifiers.

- - - -

The special index @none is used for indexing - node objects which do not have an @id, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none, such as the term none - used in the example below.

- - - -

Id maps are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-

Node Type Indexing

- -

In addition to id and index maps, JSON-LD introduces the notion of type maps - for structuring data. The type indexing feature allows an author to - structure data using a simple key-value map where the keys map - to IRIs. This enables data to be structured based on the @type - of specific node objects. - In JSON-LD such data can be specified by associating the - @type keyword with a - @container declaration in the context:

- - - -

In the example above, the affiliation term has - been marked as an type map. The schema:Corporation and - schema:ProfessionalService keys will be interpreted - as the @type property of the node object value.

- -

The value of @container can also - be an array containing both @type and @set. - When compacting, this ensures that a JSON-LD processor will use - the array form for all values of types.

- - - -

The special index @none is used for indexing - node objects which do not have an @type, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none, such as the term none - used in the example below.

- - - -

As with id maps, when used with @type, a container may also - include @set to ensure that key values are always contained in an array.

- -

Type maps are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
- -

Reverse Properties

- -

JSON-LD serializes directed graphs. That means that - every property points from a node to another node - or value. However, in some cases, it is desirable - to serialize in the reverse direction. Consider for example the case where a person - and its children should be described in a document. If the used vocabulary does not - provide a children property but just a parent - property, every node representing a child would have to - be expressed with a property pointing to the parent as in the following - example.

- - - -

Expressing such data is much simpler by using JSON-LD's @reverse - keyword:

- - - -

The @reverse keyword can also be used in - expanded term definitions - to create reverse properties as shown in the following example:

- - - -
- -

Named Graphs

- -

At times, it is necessary to make statements about a graph - itself, rather than just a single node. This can be done by - grouping a set of nodes using the @graph - keyword. A developer may also name data expressed using the - @graph keyword by pairing it with an - @id keyword as shown in the following example:

- - - -

The example above expresses a named graph that is identified - by the IRI http://example.org/foaf-graph. That - graph is composed of the statements about Manu and Gregg. Metadata about - the graph itself is expressed via the generatedAt property, - which specifies when the graph was generated.

- -

When a JSON-LD document's top-level structure is an - dictionary that contains no other - keys than @graph and - optionally @context (properties that are not mapped to an - IRI or a keyword are ignored), - @graph is considered to express the otherwise implicit - default graph. This mechanism can be useful when a number - of nodes exist at the document's top level that - share the same context, which is, e.g., the case when a - document is flattened. The - @graph keyword collects such nodes in an array - and allows the use of a shared context.

- - - -

In this case, embedding doesn't work as each node object - references the other. This is equivalent to using multiple - node objects in array and defining - the @context within each node object:

- - - -
-

Graph Containers

-

In some cases, it is useful to logically partition data into separate - graphs, without making this explicit within the JSON expression. For - example, a JSON document may contain data against which other metadata is - asserted and it is useful to separate this data in the data model using - the notion of named graphs, without the syntactic overhead - associated with the @graph keyword.

- -

An expanded term definition can use @graph as the - value of @container. This indicates that values of this - term should be considered to be named graphs, where the - graph name is an automatically assigned blank node identifier - creating an implicitly named graph. When expanded, these become - simple graph objects.

- -

An alternative to our example above could use an anonymously named graph - as follows:

- - - -

The example above expresses a named graph that is identified - by the blank node identifier _:b0. That - graph is composed of the statements about Manu and Gregg. Metadata about - the graph itself is expressed via the generatedAt property, - which specifies when the graph was generated.

- -

The blank node identifier _:b0 - is automatically created to allow the default graph to reference the - named graph as the definition of the claim. These are - necessary for serialization, where nodes without explicit identifiers, - such as the named graph in this case, can be represented.

- -

Strictly speaking, the value of such a term - is not a named graph, rather it is the graph name - associated with the named graph, which exists separately within - the dataset.

- -

Graph Containers are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
- -

Named Graph Data Indexing

- -

In addition to indexing node objects by index, graph objects may - also be indexed by an index. By using the @graph - container type, introduced in - in addition to @index, an object value of such a property is - treated as a key-value map where the keys do not map to IRIs, but - are taken from an @index property associated with named graphs - which are their values. When expanded, these must be simple graph objects

- -

The following example describes a default graph referencing multiple named - graphs using an index map.

- - - -

As with index maps, when used with @graph, a container may also - include @set to ensure that key values are always contained in an array.

- -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - graphs which does not have an @index key, which is useful to maintain - a normalized representation. Note, however, that - compacting a document where multiple unidentified named graphs are - compacted using the @none index will result in the content - of those graphs being merged. To prevent this, give each graph a distinct - @index key.

- - -
- -

Named Graph Indexing

- -

In addition to indexing node objects by identifier, graph objects may - also be indexed by their graph name. By using the @graph - container type, introduced in - in addition to @id, an object value of such a property is - treated as a key-value map where the keys represent the identifiers of named graphs - which are their values.

- -

The following example describes a default graph referencing multiple named - graphs using an id map.

- - - -

As with id maps, when used with @graph, a container may also - include @set to ensure that key values are always contained in an array.

- -

As with id maps, the special index @none is used for indexing - named graphs which do not have an @id, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none. - Note, however, that if multiple graphs are represented without - an @id, they will be merged on expansion. To prevent this, - use @none judiciously, and consider giving graphs - their own distinct identifier.

- - - -

Graph Containers are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
-
- -

Forms of JSON-LD

-

As with many data formats, there is no single correct way to describe data in JSON-LD. - However, as JSON-LD is used for describing graphs, certain transformations can be used - to change the shape of the data, without changing its meaning as Linked Data.

- -
-
Expanded Document Form
-
Expansion is the process of taking a JSON-LD document and applying a - context so that the @context is no longer necessary. - This process is described further in .
-
Compacted Document Form
-
Compaction is the process - of applying a provided context to an existing JSON-LD document. This process - is described further in .
-
Flattened Document Form
-
Flattening is the process of extracting - embedded nodes to the top level of the JSON tree, and replacing the embedded - node with a reference, creating blank node identifiers as necessary. This - process is described further in .
-
Framed Document Form
-
Framing is used to shape - the data in a JSON-LD document, using an example frame document - which is used to both match the flattened data and show an example - of how the resulting data should be shaped. This - process is described further in .
-
- -

Expanded Document Form

- -

The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] - defines a method for expanding a JSON-LD document. - Expansion is the process of taking a JSON-LD document and applying a - context such that all IRIs, types, and values - are expanded so that the @context is no longer necessary.

- -

For example, assume the following JSON-LD input document:

- -
-  
-  
- -

Running the JSON-LD Expansion algorithm against the JSON-LD input document - provided above would result in the following output:

- - - -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - expanded document form. The profile URI identifying expanded document - form is http://www.w3.org/ns/json-ld#expanded.

-
- -

Compacted Document Form

- -

The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] defines - a method for compacting a JSON-LD document. Compaction is the process - of applying a developer-supplied context to shorten IRIs - to terms or compact IRIs - and JSON-LD values expressed in expanded form to simple values such as - strings or numbers. - Often this makes it simpler to work with document as the data is expressed in - application-specific terms. Compacted documents are also typically easier to read - for humans.

- -

For example, assume the following JSON-LD input document:

- -
-  
-  
- -

Additionally, assume the following developer-supplied JSON-LD context:

- -
-  
-  
- -

Running the JSON-LD Compaction algorithm given the context supplied above - against the JSON-LD input document provided above would result in the following - output:

- -
-  
-  
- -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - compacted document form. The profile URI identifying compacted document - form is http://www.w3.org/ns/json-ld#compacted.

-
- -

Flattened Document Form

- -

The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] defines - a method for flattening a JSON-LD document. - Flattening collects all - properties of a node in a single dictionary and labels - all blank nodes with - blank node identifiers. - This ensures a shape of the data and consequently may drastically simplify the code - required to process JSON-LD in certain applications.

- -

For example, assume the following JSON-LD input document:

- -
-  
-  
- -

Running the JSON-LD Flattening algorithm against the JSON-LD input document in - the example above and using the same context would result in the following - output:

- -
-  
-  
- -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - flattened document form. The profile URI identifying flattened document - form is http://www.w3.org/ns/json-ld#flattened. It can be - combined with the profile URI identifying - expanded document form or - compacted document from.

-
- -

Framed Document Form

- -

The JSON-LD 1.1 Framing specification [[JSON-LD11-FRAMING]] defines - a method for framing a JSON-LD document. Framing is used to shape - the data in a JSON-LD document, using an example frame document - which is used to both match the flattened data and show an example - of how the resulting data should be shaped.

- -

For example, assume the following JSON-LD frame:

- -
-  
-  
- -

This frame document describes an embedding structure that would place - objects with type Library at the top, with objects of - type Book that were linked to the library object using - the contains property embedded as property values. It also - places objects of type Chapter within the referencing Book object - as embedded values of the Book object.

- -

When using a flattened set of objects that match the frame components:

-
-  
-  
- -

The Frame Algorithm can create a new document which follows the structure - of the frame:

-
-  
-  
-
-
- -

Interpreting JSON as JSON-LD

- -

Ordinary JSON documents can be interpreted as JSON-LD - by providing an explicit JSON-LD context document. One way - to provide this is by using referencing a JSON-LD - context document in an HTTP Link Header. - Doing so allows JSON to be unambiguously machine-readable without requiring developers to drastically - change their documents and provides an upgrade path for existing infrastructure - without breaking existing clients that rely on the application/json - media type or a media type with a +json suffix as defined in - [[!RFC6839]].

- -

In order to use an external context with an ordinary JSON document, - when retrieving an ordinary JSON document via HTTP, processors MUST - retrieve any JSON-LD document referenced by a - Link Header with:

- -
    -
  • rel="http://www.w3.org/ns/json-ld#context", and
  • -
  • type="application/ld+json".
  • -
- -

The referenced document MUST have a top-level JSON object. - The @context member within that object is added to the top-level - JSON object of the referencing document. If an array - is at the top-level of the referencing document and its items are - JSON objects, the @context - subtree is added to all array items. All extra information located outside - of the @context subtree in the referenced document MUST be - discarded. Effectively this means that the active context is - initialized with the referenced external context. A response MUST NOT - contain more than one HTTP Link Header [[!RFC8288]] using the - http://www.w3.org/ns/json-ld#context link relation.

- -

Other mechanisms for providing a JSON-LD Context MAY be described for other - URI schemes.

- -

The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] - provides for an expandContext option for specifying - a context to use when expanding JSON documents programatically.

- -

The following example demonstrates the use of an external context with an - ordinary JSON document over HTTP:

- -
-  
-  
- -

Please note that JSON-LD documents - served with the application/ld+json - media type MUST have all context information, including references to external - contexts, within the body of the document. Contexts linked via a - http://www.w3.org/ns/json-ld#context HTTP Link Header MUST be - ignored for such documents.

-
- -

Embedding JSON-LD in HTML Documents

- -

HTML script elements can be used to embed blocks of data in documents. - This way, JSON-LD content can be easily embedded in HTML [[HTML52]] by placing - it in a script element with the type attribute set to - application/ld+json.

- -
-  
-  
- -

Depending on how the HTML document is served, certain strings may need - to be escaped.

- -

Defining how such data may be used is beyond the scope of this specification. - The embedded JSON-LD document might be extracted as is or, e.g., be - interpreted as RDF.

- -

If JSON-LD content is extracted as RDF [[RDF11-CONCEPTS]], it should be expanded into an - RDF Dataset using the - Deserialize JSON-LD to RDF Algorithm - [[JSON-LD11-API]].

-
- -
-

Data Model

- -

JSON-LD is a serialization format for Linked Data based on JSON. - It is therefore important to distinguish between the syntax, which is - defined by JSON in [[!RFC8259]], and the data model which is - an extension of the RDF data model [[!RDF11-CONCEPTS]]. The precise - details of how JSON-LD relates to the RDF data model are given in - .

- -

To ease understanding for developers unfamiliar with the RDF model, the - following summary is provided:

- - - -

JSON-LD documents MAY contain data - that cannot be represented by the data model - defined above. Unless otherwise specified, such data is ignored when a - JSON-LD document is being processed. One result of this rule - is that properties which are not mapped to an IRI, - a blank node, or keyword will be ignored.

- -

Additionally, the JSON serialization format is internally represented using - the JSON-LD internal representation, which uses the generic - concepts of arrays, dictionaries, - strings, numbers, booleans, and null to describe - the data represented by a JSON document.

- -
- - -

The image depicts a linked data dataset with a default graph - and two named graphs.

-
-
An illustration of a linked data dataset.
- A description of the linked data dataset - diagram is available in the Appendix. Image available in - - SVG - and - - PNG - - formats.
-
- -

The dataset described in this figure can be represented as follows:

- - - -

Note the use of @graph at the outer-most level to describe three top-level - resources (two of them named graphs). The named graphs use @graph in addition - to @id to provide the name for each graph.

-
- -
-

JSON-LD Grammar

- -

This appendix restates the syntactic conventions described in the - previous sections more formally.

- -

A JSON-LD document MUST be valid JSON text as described - in [[!RFC8259]], or some format that can be represented - in the JSON-LD internal representation that is equivalent to - valid JSON text.

- -

A JSON-LD document MUST be a single node object, - a dictionary consisting of only - the members @context and/or @graph, - or an array or zero or more node objects.

- -

In contrast to JSON, in JSON-LD the keys in objects - MUST be unique.

- -

Whenever a keyword is discussed in this grammar, - the statements also apply to an alias for that keyword.

- -

JSON-LD allows keywords to be aliased - (see for details). For example, if the active context - defines the term id as an alias for @id, - that alias may be legitimately used as a substitution for @id. - Note that keyword aliases are not expanded during context - processing.

- -
-

Terms

- -

A term is a short-hand string that expands - to an IRI or a blank node identifier.

- -

A term MUST NOT equal any of the JSON-LD - keywords.

- -

When used as the prefix in a Compact IRI, to avoid - the potential ambiguity of a prefix being confused with an IRI - scheme, terms SHOULD NOT come from the list of URI schemes as defined in - [[!IANA-URI-SCHEMES]]. Similarly, to avoid confusion between a - Compact IRI and a term, terms SHOULD NOT include a colon (:) - and SHOULD be restricted to the form of - isegment-nz-nc - as defined in [[!RFC3987]].

- -

To avoid forward-compatibility issues, a term SHOULD NOT start - with an @ character as future versions of JSON-LD may introduce - additional keywords. Furthermore, the term MUST NOT - be an empty string ("") as not all programming languages - are able to handle empty JSON keys.

- -

See and - for further discussion - on mapping terms to IRIs.

-
- -
-

Node Objects

- -

A node object represents zero or more properties of a - node in the graph serialized by the - JSON-LD document. A dictionary is a - node object if it exists outside of a JSON-LD - context and:

- -
    -
  • it is not the top-most dictionary in the JSON-LD document consisting - of no other members than @graph and @context,
  • -
  • it does not contain the @value, @list, - or @set keywords, and
  • -
  • it is not a graph object.
  • -
- -

The properties of a node in - a graph may be spread among different - node objects within a document. When - that happens, the keys of the different - node objects need to be merged to create the - properties of the resulting node.

- -

A node object MUST be a dictionary. All keys - which are not IRIs, compact IRIs, terms valid in the - active context, or one of the following keywords - (or alias of such a keyword) - MUST be ignored when processed:

- -
    -
  • @context,
  • -
  • @id,
  • -
  • @graph,
  • -
  • @nest,
  • -
  • @type,
  • -
  • @reverse, or
  • -
  • @index
  • -
- -

If the node object contains the @context - key, its value MUST be null, an absolute IRI, - a relative IRI, a context definition, or - an array composed of any of these.

- -

If the node object contains the @id key, - its value MUST be an absolute IRI, a relative IRI, - or a compact IRI (including - blank node identifiers). - See , - , and - for further discussion on - @id values.

- -

If the node object contains the @graph - key, its value MUST be - a node object or - an array of zero or more node objects. - If the node object contains an @id keyword, - its value is used as the graph name of a named graph. - See for further discussion on - @graph values. As a special case, if a dictionary - contains no keys other than @graph and @context, and the - dictionary is the root of the JSON-LD document, the - dictionary is not treated as a node object; this - is used as a way of defining node objects - that may not form a connected graph. This allows a - context to be defined which is shared by all of the constituent - node objects.

- -

If the node object contains the @type - key, its value MUST be either an absolute IRI, a - relative IRI, a compact IRI - (including blank node identifiers), - a term defined in the active context expanding into an absolute IRI, or - an array of any of these. - See for further discussion on - @type values.

- -

If the node object contains the @reverse key, - its value MUST be a dictionary containing members representing reverse - properties. Each value of such a reverse property MUST be an absolute IRI, - a relative IRI, a compact IRI, a blank node identifier, - a node object or an array containing a combination of these.

- -

If the node object contains the @index key, - its value MUST be a string. See - for further discussion - on @index values.

- -

If the node object contains the @nest key, - its value MUST be an dictionary or an array of dictionaries - which MUST NOT include a value object. See - for further discussion - on @nest values.

- -

Keys in a node object that are not - keywords MAY expand to an absolute IRI - using the active context. The values associated with keys that expand - to an absolute IRI MUST be one of the following:

- - -
- -
-

Graph Objects

- -

A graph object represents a named graph, which MAY include - include an explicit graph name. - A dictionary is a graph object if - it exists outside of a JSON-LD context, - it is not a node object, - it is not the top-most dictionary in the JSON-LD document, and - it consists of no members other than @graph, - @index, @id - and @context, or an alias of one of these keywords.

- -

If the graph object contains the @context - key, its value MUST be null, an absolute IRI, - a relative IRI, a context definition, or - an array composed of any of these.

- -

If the graph object contains the @id key, - its value is used as the identifier (graph name) of a named graph, and - MUST be an absolute IRI, a relative IRI, - or a compact IRI (including - blank node identifiers). - See , - , and - for further discussion on - @id values.

- -

A graph object without an @id member is also a - simple graph object and represents a named graph without an - explicit identifier, although in the data model it still has a - graph name, which is an implicitly allocated - blank node identifier.

- -

The value of the @graph key MUST be - a node object or - an array of zero or more node objects. - See for further discussion on - @graph values..

-
- -
-

Value Objects

- -

A value object is used to explicitly associate a type or a - language with a value to create a typed value or a language-tagged - string.

- -

A value object MUST be a dictionary containing the - @value key. It MAY also contain an @type, - an @language, an @index, or an @context key but MUST NOT contain - both an @type and an @language key at the same time. - A value object MUST NOT contain any other keys that expand to an - absolute IRI or keyword.

- -

The value associated with the @value key MUST be either a - string, a number, true, - false or null.

- -

The value associated with the @type key MUST be a - term, a compact IRI, - an absolute IRI, a string which can be turned - into an absolute IRI using the vocabulary mapping, or null.

- -

The value associated with the @language key MUST have the - lexical form described in [[!BCP47]], or be null.

- -

The value associated with the @index key MUST be a - string.

- -

See and - - for more information on value objects.

-
- -
-

Lists and Sets

- -

A list represents an ordered set of values. A set - represents an unordered set of values. Unless otherwise specified, - arrays are unordered in JSON-LD. As such, the - @set keyword, when used in the body of a JSON-LD document, - represents just syntactic sugar which is optimized away when processing the document. - However, it is very helpful when used within the context of a document. Values - of terms associated with an @set or @list container - will always be represented in the form of an array when a document - is processed—even if there is just a single value that would otherwise be optimized to - a non-array form in compact document form. - This simplifies post-processing of the data as the data is always in a - deterministic form.

- -

A list object MUST be a dictionary that contains no - keys that expand to an absolute IRI or keyword other - than @list, @context, and @index.

- -

A set object MUST be a dictionary that contains no - keys that expand to an absolute IRI or keyword other - than @set, @context, and @index. - Please note that the @index key will be ignored when being processed.

- -

In both cases, the value associated with the keys @list and @set - MUST be one of the following types:

- - -

See for further discussion on sets and lists.

-
- -
-

Language Maps

- -

A language map is used to associate a language with a value in a - way that allows easy programmatic access. A language map may be - used as a term value within a node object if the term is defined - with @container set to @language, - - or an array containing both @language and @set - . The keys of a - language map MUST be strings representing - [[BCP47]] language codes, the keyword @none, - or a term which expands to @none, - and the values MUST be any of the following types:

- - - -

See for further discussion - on language maps.

-
- -
-

Index Maps

- -

An index map allows keys that have no semantic meaning, - but should be preserved regardless, to be used in JSON-LD documents. - An index map may - be used as a term value within a node object if the - term is defined with @container set to @index, - - or an array containing both @index and @set - . - The values of the members of an index map MUST be one - of the following types:

- - - -

See for further information on this topic.

- -

Index Maps may also be used to map indexes to associated - named graphs, if the term is defined with @container - set to an array containing both @graph and - @index, and optionally including @set. The - value consists of the node objects contained within the named - graph which is named using the referencing key, which can be - represented as a simple graph object.

-
- -
-

Id Maps

- -

An id map is used to associate an IRI with a value that allows easy - programmatic access. An id map may be used as a term value within a node object if the term - is defined with @container set to @id, - or an array containing both @id and @set. - The keys of an id map MUST be IRIs - (relative IRI, compact IRI (including blank node identifiers), or absolute IRI), - the keyword @none, - or a term which expands to @none, - and the values MUST be node objects.

- -

If the value contains a property expanding to @id, it's value MUST - be equivalent to the referencing key. Otherwise, the property from the value is used as - the @id of the node object value when expanding.

- -

Id Maps may also be used to map graph names to their - named graphs, if the term is defined with @container - set to an array containing both @graph and @id, - and optionally including @set. The value consists of the - node objects contained within the named graph - which is named using the referencing key.

-
- -
-

Type Maps

- -

A type map is used to associate an IRI with a value that allows easy - programmatic access. A type map may be used as a term value within a node object if the term - is defined with @container set to @type, - or an array containing both @type and @set. - The keys of a type map MUST be IRIs - (relative IRI, compact IRI (including blank node identifiers), or absolute IRI), - the keyword @none, - or a term which expands to @none, - and the values MUST be node objects.

- -

If the value contains a property expanding to @type, and it's value - is contains the referencing key after suitable expansion of both the referencing key - and the value, then the node object already contains the type. Otherwise, the property from the value is - added as a @type of the node object value when expanding.

-
- -
-

Property Nesting

- -

A nested property is used to gather properties of a node object in a separate - dictionary, or array of dictionaries which are not - value objects. It is semantically transparent and is removed - during the process of expansion. Property nesting is recursive, and - collections of nested properties may contain further nesting.

- -

Semantically, nesting is treated as if the properties and values were declared directly - within the containing node object.

-
- -
-

Context Definitions

- -

A context definition defines a local context in a - node object.

- -

A context definition MUST be a dictionary whose - keys MUST be either terms, compact IRIs, absolute IRIs, - or one of the keywords @language, @base, - @vocab, or @version.

- -

If the context definition has an @language key, - its value MUST have the lexical form described in [[!BCP47]] or be null.

- -

If the context definition has an @base key, - its value MUST be an absolute IRI, a relative IRI, - or null.

- -

If the context definition has an @vocab key, - its value MUST be a absolute IRI, a compact IRI, - a blank node identifier, - an empty string (""), - a term, or null.

- -

If the context definition has an @version key, - its value MUST be a number with the value 1.1.

- -

The value of keys that are not keywords MUST be either an - absolute IRI, a compact IRI, a term, - a blank node identifier, a keyword, null, - or an expanded term definition.

- -

An expanded term definition is used to describe the mapping - between a term and its expanded identifier, as well as other - properties of the value associated with the term when it is - used as key in a node object.

- -

An expanded term definition MUST be a dictionary - composed of zero or more keys from - @id, - @reverse, - @type, - @language, - @context, - @prefix, or - @container. An - expanded term definition SHOULD NOT contain any other keys.

- -

If the term being defined is not a compact IRI or - absolute IRI and the active context does not have an - @vocab mapping, the expanded term definition MUST - include the @id key.

- -

If the expanded term definition contains the @id - keyword, its value MUST be null, an absolute IRI, - a blank node identifier, a compact IRI, a term, - or a keyword.

- -

If an expanded term definition has an @reverse member, - it MUST NOT have @id or @nest members at the same time, - its value MUST be an absolute IRI, - a blank node identifier, a compact IRI, or a term. If an - @container member exists, its value MUST be null, - @set, or @index.

- -

If the expanded term definition contains the @type - keyword, its value MUST be an absolute IRI, a - compact IRI, a term, null, or one of the - keywords @id or @vocab.

- -

If the expanded term definition contains the @language keyword, - its value MUST have the lexical form described in [[!BCP47]] or be null.

- -

If the expanded term definition contains the @container - keyword, its value MUST be either - @list, - @set, - @language, - @index, - @id, - @graph, - @type, or be - null - - or an array containing exactly any one of those keywords, or a - combination of @set and any of @index, - @id, @graph, @type, - @language in any order - . - @container may also be an array - containing @graph along with either @id or - @index and also optionally including @set. - If the value - is @language, when the term is used outside of the - @context, the associated value MUST be a language map. - If the value is @index, when the term is used outside of - the @context, the associated value MUST be an - index map.

- -

If an expanded term definition has an @context member, - it MUST be a valid context definition.

- -

If the expanded term definition contains the @nest - keyword, its value MUST be either @nest, or a term - which expands to @nest.

- -

If the expanded term definition contains the @prefix - keyword, its value MUST be true or false.

- -

Terms MUST NOT be used in a circular manner. That is, - the definition of a term cannot depend on the definition of another term if that other - term also depends on the first term.

- -

See for further discussion on contexts.

-
- -
- -
-

Relationship to RDF

- -

JSON-LD is a - concrete RDF syntax - as described in [[RDF11-CONCEPTS]]. Hence, a JSON-LD document is both an - RDF document and a JSON document and correspondingly represents an - instance of an RDF data model. However, JSON-LD also extends the RDF data - model to optionally allow JSON-LD to serialize - generalized RDF Datasets. - The JSON-LD extensions to the RDF data model are:

- -
    -
  • In JSON-LD properties can be - IRIs or blank nodes - whereas in RDF properties (predicates) have to be IRIs. This - means that JSON-LD serializes - generalized RDF Datasets.
  • -
  • In JSON-LD lists use native JSON syntax, either contained in a - list object, or described as such within a context. Consequently, developers - using the JSON representation can access list elements directly rather than - using the vocabulary for collections described in [[!RDF-SCHEMA]]..
  • -
  • RDF values are either typed literals - (typed values) or - language-tagged strings whereas - JSON-LD also supports JSON's native data types, i.e., number, - strings, and the boolean values true - and false. The JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] - defines the conversion rules - between JSON's native data types and RDF's counterparts to allow round-tripping.
  • -
- -

Summarized, these differences mean that JSON-LD is capable of serializing any RDF - graph or dataset and most, but not all, JSON-LD documents can be directly - interpreted as RDF as described in RDF 1.1 Concepts [[RDF11-CONCEPTS]].

- -

For authors and developers working with blank nodes - as properties when deserializing to RDF, - three potential approaches are suggested:

- - - -

The normative algorithms for interpreting JSON-LD as RDF and serializing - RDF as JSON-LD are specified in the JSON-LD 1.1 Processing Algorithms and API - specification [[JSON-LD11-API]].

- -

Even though JSON-LD serializes - generalized RDF Datasets, it can - also be used as a RDF graph source. - In that case, a consumer MUST only use the default graph and ignore all named graphs. - This allows servers to expose data in languages such as Turtle and JSON-LD - using content negotiation.

- -

Publishers supporting both dataset and graph syntaxes have to ensure that - the primary data is stored in the default graph to enable consumers that do not support - datasets to process the information.

- -
-

Serializing/Deserializing RDF

- -

The process of serializing RDF as JSON-LD and deserializing JSON-LD to RDF - depends on executing the algorithms defined in - RDF Serialization-Deserialization Algorithms - in the JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]]. - It is beyond the scope of this document to detail these algorithms any further, - but a summary of the necessary operations is provided to illustrate the process.

- -

The procedure to deserialize a JSON-LD document to RDF involves the - following steps:

- -
    -
  1. Expand the JSON-LD document, removing any context; this ensures - that properties, types, and values are given their full representation - as IRIs and expanded values. Expansion - is discussed further in .
  2. -
  3. Flatten the document, which turns the document into an array of - node objects. Flattening is discussed - further in .
  4. -
  5. Turn each node object into a series of RDF triples.
  6. -
- -

For example, consider the following JSON-LD document in compact form:

- -
-    
-    
- -

Running the JSON-LD Expansion and Flattening algorithms against the - JSON-LD input document in the example above would result in the - following output:

- -
-    
-    
- -

Deserializing this to RDF now is a straightforward process of turning - each node object into one or more RDF triples. This can be - expressed in Turtle as follows:

- -
-    
-    
- -

The process of serializing RDF as JSON-LD can be thought of as the - inverse of this last step, creating an expanded JSON-LD document closely - matching the triples from RDF, using a single node object - for all triples having a common subject, and a single property - for those triples also having a common predicate. The result may - then be framed by using the - Framing Algorithm - described in [[JSON-LD11-FRAMING]] to create the desired object embedding.

-
-
- -

Image Desciptions

-

Linked Data Dataset

-

Description of the Linked Data Dataset figure in

-

The image consists of three dashed boxes, each describing a different - linked data graph. Each box consists of shapes linked with arrows describing - the linked data relationships.

-

The first box is titled "default graph: <no name>" describes two - resources: http://example.com/people/alice and http://example.com/people/bob - (denoting "Alice" and "Bob" respectively), which are - connected by an arrow labeled schema:knows which describes - the knows relationship between the two resources. Additionally, the "Alice" resource is related - to three different literals:

-
-
Alice
-
an RDF literal with no datatype or language.
-
weiblich | de
-
an language-tagged string with the value "weiblich" and language-tag "de".
-
female | en
-
an language-tagged string with the value "female" and language-tag "en".
-
- -

The second and third boxes describe two named graphs, with the graph names - "http://example.com/graphs/1" and "http://example.com/graphs/1", respectively.

-

The second box consists of two resources: - http://example.com/people/alice and http://example.com/people/bob - related by the schema:parent relationship, and names the - http://example.com/people/bob "Bob".

-

The third box consists of two resources, one - named http://example.com/people/bob and the other unnamed. - The two resources related to each other using schema:sibling relationship - with the second named "Mary".

-
-
- -
-

Relationship to Other Linked Data Formats

- -

The JSON-LD examples below demonstrate how JSON-LD can be used to - express semantic data marked up in other linked data formats such as Turtle, - RDFa, and Microdata. These sections are merely provided as - evidence that JSON-LD is very flexible in what it can express across different - Linked Data approaches.

- -
-

Turtle

- -

The following are examples of transforming RDF expressed in [[Turtle]] - into JSON-LD.

- -
-

Prefix definitions

- -

The JSON-LD context has direct equivalents for the Turtle - @prefix declaration:

- -
-      
-      
- -
-      
-      
-
- -
-

Embedding

- -

Both [[Turtle]] and JSON-LD allow embedding, although [[Turtle]] only allows embedding of - blank nodes.

- -
-      
-      
- -
-      
-      
-
- -
-

Conversion of native data types

- -

In JSON-LD numbers and boolean values are native data types. While [[Turtle]] - has a shorthand syntax to express such values, RDF's abstract syntax requires - that numbers and boolean values are represented as typed literals. Thus, - to allow full round-tripping, the JSON-LD 1.1 Processing Algorithms and API specification [[JSON-LD11-API]] - defines conversion rules between JSON-LD's native data types and RDF's - counterparts. Numbers without fractions are - converted to xsd:integer-typed literals, numbers with fractions - to xsd:double-typed literals and the two boolean values - true and false to a xsd:boolean-typed - literal. All typed literals are in canonical lexical form.

- -
-      
-      
- -
-      
-      
- -
- -
-

Lists

-

Both JSON-LD and [[Turtle]] can represent sequential lists of values.

- -
-      
-      
- -
-      
-      
-
-
- -
-

RDFa

- -

The following example describes three people with their respective names and - homepages in RDFa [[RDFA-CORE]].

- -
-    
-    
- -

An example JSON-LD implementation using a single context is - described below.

- -
-    
-    
-
- -
-

Microdata

- -

The HTML Microdata [[MICRODATA]] example below expresses book information as - a Microdata Work item.

- -
-    
-    
- -

Note that the JSON-LD representation of the Microdata information stays - true to the desires of the Microdata community to avoid contexts and - instead refer to items by their full IRI.

- -
-    
-    
-
-
- -
-

IANA Considerations

- -

This section has been submitted to the Internet Engineering Steering - Group (IESG) for review, approval, and registration with IANA.

- -

application/ld+json

-
-
Type name:
-
application
-
Subtype name:
-
ld+json
-
Required parameters:
-
None
-
Optional parameters:
-
-
-
profile
-
-

A non-empty list of space-separated URIs identifying specific - constraints or conventions that apply to a JSON-LD document according to [[!RFC6906]]. - A profile does not change the semantics of the resource representation - when processed without profile knowledge, so that clients both with - and without knowledge of a profiled resource can safely use the same - representation. The profile parameter MAY be used by - clients to express their preferences in the content negotiation process. - If the profile parameter is given, a server SHOULD return a document that - honors the profiles in the list which are recognized by the server. - It is RECOMMENDED that profile URIs are dereferenceable and provide - useful documentation at that URI. For more information and background - please refer to [[!RFC6906]].

-

This specification defines three values for the profile parameter. - To request or specify expanded JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#expanded SHOULD be used. - To request or specify compacted JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#compacted SHOULD be used. - To request or specify flattened JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#flattened SHOULD be used. - Please note that, according [[HTTP11]], the value of the profile - parameter has to be enclosed in quotes (") because it contains - special characters and, if multiple profiles are combined, whitespace.

-

When processing the "profile" media type parameter, it is important to - note that its value contains one or more URIs and not IRIs. In some cases - it might therefore be necessary to convert between IRIs and URIs as specified in - section 3 Relationship between IRIs and URIs - of [[RFC3987]].

-
-
-
-
Encoding considerations:
-
See RFC 6839, section 3.1.
-
Security considerations:
-
See [[!RFC8259]] -

Since JSON-LD is intended to be a pure data exchange format for - directed graphs, the serialization SHOULD NOT be passed through a - code execution mechanism such as JavaScript's eval() - function to be parsed. An (invalid) document may contain code that, - when executed, could lead to unexpected side effects compromising - the security of a system.

-

When processing JSON-LD documents, links to remote contexts are - typically followed automatically, resulting in the transfer of files - without the explicit request of the user for each one. If remote - contexts are served by third parties, it may allow them to gather - usage patterns or similar information leading to privacy concerns. - Specific implementations, such as the API defined in the - JSON-LD 1.1 Processing Algorithms and API specification [[!JSON-LD11-API]], - may provide fine-grained mechanisms to control this behavior.

-

JSON-LD contexts that are loaded from the Web over non-secure connections, - such as HTTP, run the risk of being altered by an attacker such that - they may modify the JSON-LD active context in a way that - could compromise security. It is advised that any application that - depends on a remote context for mission critical purposes vet and - cache the remote context before allowing the system to use it.

-

Given that JSON-LD allows the substitution of long IRIs with short terms, - JSON-LD documents may expand considerably when processed and, in the worst case, - the resulting data might consume all of the recipient's resources. Applications - should treat any data with due skepticism.

-
-
Interoperability considerations:
-
Not Applicable
-
Published specification:
-
http://www.w3.org/TR/json-ld
-
Applications that use this media type:
-
Any programming environment that requires the exchange of - directed graphs. Implementations of JSON-LD have been created for - JavaScript, Python, Ruby, PHP, and C++. -
-
Additional information:
-
-
-
Magic number(s):
-
Not Applicable
-
File extension(s):
-
.jsonld
-
Macintosh file type code(s):
-
TEXT
-
-
-
Person & email address to contact for further information:
-
Manu Sporny <msporny@digitalbazaar.com>
-
Intended usage:
-
Common
-
Restrictions on usage:
-
None
-
Author(s):
-
Manu Sporny, Dave Longley, Gregg Kellogg, Markus Lanthaler, Niklas Lindström
-
Change controller:
-
W3C
-
- -

Fragment identifiers used with application/ld+json - are treated as in RDF syntaxes, as per - RDF 1.1 Concepts and Abstract Syntax - [[RDF11-CONCEPTS]].

-
- -
-

Security Considerations

-

Consider requirements from Self-Review Questionnaire: Security and Privacy.

-

See,

-
- -
-

Open Issues

-

The following is a list of issues open at the time of publication.

-

Consider using "@type": "@json" to describe native values in the compact form.

-

Allows a term definition to include an @values block to describe structured values, such as for GeoJSON.

-

When requesting JSON-LD from an HTTP endpoint, it would be useful to provide a reference to a context or frame which should be used by the server to put the results into the proper format.

-

Provide a means for refering to a remote context without without requiring it to be downloaded.

-

Consider a container type, similar to @list for encoding things like schema:ItemList serializations, when the values are schema:ListItem and order is set through schema:position.

-

Consider the opposite of "@container": "@set"; this would be when there is exactly one entry in an @list, instead of compacting to an array, compact to a single item.

-

It would be useful if JSON-LD recognized both value (rdf:nil) and list ([]).

-

Consider a mechanism such as Microdata's @itemref for including objects within another referencing node.

-

Mechinism to allow freezing terms so that additional contexts don't override them.

-

Should consider html>head>base@href and xml:base, as appropriate.

-

Update terminology in the spec from IRI to URL.

-

For every example, there should be an equivalent of the example in the expanded form, in a table with the triples, in [[Turtle]] (as close to the JSON-LD structure as possible) and, possibly, as graphs. Not all of them would appear on the screen at the same time but, rather, the reader could choose what to see with some tabs.

-

-

Proposal is to start from scratch, ie, deprecating @graph and replacing the functionality with something cleaner.

-
-
    -
  • Give each JSON-LD feature a name. For example: aliasing, reverseProperties, typeCoercion, etc.
  • -
  • Each JSON-LD version will officially support a set of these features. For example, JSON-LD 1.0 supports roughly ~20, JSON-LD 1.1 supports roughly ~30, and so on.
  • -
  • Move some of these less-used features (based on real world data/usage) into a "Advanced JSON-LD Features" specification to keep the base specification simpler and more easily readable.
  • -
  • Extend the @version keyword to take an array, where you can specify experimental extensions. For example: "@version": [1.1, "amazingExtensionFoo", "nicheExtensionBar"] - processors throw if they don't understand every extension listed.
  • -
-
-

Ensure that the output is consistent in shape. Thus if there can ever be multiple values, the structure is always an array.

-

-

-

-

-

Consider issues surrounding confusion of differing expansion rules for @id, @type, and dictionary members.

-

Require JSON-LD processors to be able to identify and extract JSON-LD from a script tag with type application/ld+json within an HTML document.

-

- Instead of normatively requiring an initial context, such as RDFa does, instead JSON-LD has the ability to import contexts. This approach means that the existing context rules are followed, and the best practice context can be updated over time as new norms emerge in the community. If the best practice context is not useful to a particular community, then they don't need to import it. -

-
- -
-

Changes since 1.0 Recommendation of 16 January 2014

-
    -
  • A context may contain a @version member which is used to set the processing mode.
  • -
  • An expanded term definition can now have an - @context property, which defines a context used for values of - a property identified with such a term.
  • -
  • @container values within an expanded term definition may now - include @id, @graph and @type, corresponding to id maps and type maps.
  • -
  • An expanded term definition can now have an - @nest property, which identifies a term expanding to - @nest which is used for containing properties using the same - @nest mapping. When expanding, the values of a property - expanding to @nest are treated as if they were contained - within the enclosing node object directly.
  • -
  • The JSON syntax has been abstracted into an internal representation - to allow for other serializations that are functionally equivalent - to JSON.
  • -
  • Added and .
  • -
  • Both language maps and index maps may legitimately have an @none key, but - JSON-LD 1.0 only allowed string keys. This has been updated - to allow @none keys.
  • -
  • The value for @container in an expanded term definition - can also be an array containing any appropriate container - keyword along with @set (other than @list). - This allows a way to ensure that such property values will always - be expressed in array form.
  • -
  • In JSON-LD 1.1, terms will be chosen as compact IRI prefixes - when compacting only if - a simple term definition is used where the value ends with a URI gen-delim character, - or if their expanded term definition contains - a @prefix member with the value true. The 1.0 algorithm has - been updated to only consider terms that map to a value that ends with a URI - gen-delim character.
  • -
  • Values of properties where the associated term definition - has @container set to @graph are interpreted as - implicitly named graphs, where the associated graph name is - assigned from a new blank node identifier. Other combinations - include ["@container", "@id"], ["@container", "@index"] each also - may include "@set", which create maps from the - graph identifier or index value similar to index maps - and id maps.
  • -
  • The empty string ("") has been added as a possible value for @vocab in - a context. When this is set, vocabulary-relative IRIs, such as the - keys of node objects, are expanded or compacted relative - to the base IRI using string concatenation.
  • -
  • Lists may now have items which are themselves lists.
  • -
-
- -
-

Changes since JSON-LD Community Group Final Report

-
    -
  • Lists may now have items which are themselves lists.
  • -
-
- -
-

Acknowledgements

- -

This 1.1 version of the specification is a product of deliberations by the - members of the JSON-LD 1.1 Working Group chaired by Robert Sanderson and - Benjamin Young along with members of the Working Group: - Adam Soroka, - Alejandra Gonzalez Beltran, - Axel Polleres, - Christopher Allen, - Dan Brickley, - Dave Longley, - David Lehn, - David Newbury, - Harold Solbrig, - Ivan Herman, - Jeff Mixter, - Leonard Rosenthol, - Manu Sporny, - Matthias Kovatsch, - Sebastian Käbisch, - Simon Steyskal, - Steve Blackmon, - Timothy Cole, - Victor Charpenay, - and Gregg Kellogg.

- -

A large amount of thanks goes out to the JSON-LD Community Group - participants who worked through many of the technical issues on the mailing - list and the weekly telecons: - Chris Webber, - David Wood, - Drummond Reed, - Eleanor Joslin, - Farbian Gandon, - Herm Fisher, - Jamie Pitts, - Kim Hamilton Duffy, - Niklas Lindström, - Paolo Ciccarese, - Paul Frazze, - Paul Warren, - Rego Gmür, - Rob Trainer, - Ted Thibodeau Jr., - and Victor Charpenay.

- -

For the 1.0 version of the specification

- -

The authors would like to extend a deep appreciation and the most sincere - thanks to Mark Birbeck, who contributed foundational concepts - to JSON-LD via his work on RDFj. JSON-LD uses a number of core concepts - introduced in RDFj, such as the context as a mechanism to provide an - environment for interpreting JSON data. Mark had also been very involved in - the work on RDFa as well. RDFj built upon that work. JSON-LD exists - because of the work and ideas he started nearly a decade ago in 2004.

- -

A large amount of thanks goes out to the JSON-LD Community Group - participants who worked through many of the technical issues on the mailing - list and the weekly telecons - of special mention are François Daoust, - Stéphane Corlosquet, Lin Clark, and Zdenko 'Denny' Vrandečić.

- -

The work of David I. Lehn and Mike Johnson are appreciated for - reviewing, and performing several early implementations - of the specification. Thanks also to Ian Davis for this work on RDF/JSON.

- -

Thanks to the following individuals, in order of their first name, for - their input on the specification: Adrian Walker, Alexandre Passant, - Andy Seaborne, Ben Adida, Blaine Cook, Bradley Allen, Brian Peterson, - Bryan Thompson, Conal Tuohy, Dan Brickley, Danny Ayers, Daniel Leja, - Dave Reynolds, David Booth, David I. Lehn, David Wood, Dean Landolt, - Ed Summers, elf Pavlik, - Eric Prud'hommeaux, Erik Wilde, Fabian Christ, Jon A. Frost, Gavin Carothers, - Glenn McDonald, Guus Schreiber, Henri Bergius, Jose María Alvarez Rodríguez, - Ivan Herman, Jack Moffitt, Josh Mandel, KANZAKI Masahide, Kingsley Idehen, - Kuno Woudt, Larry Garfield, Mark Baker, Mark MacGillivray, Marko Rodriguez, - Marios Meimaris, Matt Wuerstl, - Melvin Carvalho, Nathan Rixham, Olivier Grisel, Paolo Ciccarese, Pat Hayes, - Patrick Logan, Paul Kuykendall, Pelle Braendgaard, - Peter Patel-Schneider, Peter Williams, Pierre-Antoine Champin, - Richard Cyganiak, Roy T. Fielding, Sandro Hawke, Simon Grant, Srecko Joksimovic, - Stephane Fellah, Steve Harris, Ted Thibodeau Jr., Thomas Steiner, Tim Bray, - Tom Morris, Tristan King, Sergio Fernández, Werner Wilms, and William Waites.

diff --git a/linked-data-graph.png b/linked-data-graph.png deleted file mode 100644 index 99870f3f..00000000 Binary files a/linked-data-graph.png and /dev/null differ diff --git a/linked-data-graph.svg b/linked-data-graph.svg deleted file mode 100644 index e3d6bbb1..00000000 --- a/linked-data-graph.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/publication-snapshots/FPWD/Overview.html b/publication-snapshots/FPWD/Overview.html deleted file mode 100644 index 206429f0..00000000 --- a/publication-snapshots/FPWD/Overview.html +++ /dev/null @@ -1,7126 +0,0 @@ - -JSON-LD 1.1 - - - - - - - - -
- -

JSON-LD 1.1

-

A JSON-based Serialization for Linked Data

-

W3C First Public Working Draft

-
-
This version:
https://www.w3.org/TR/2018/WD-json-ld11-20180911/
Latest published version:
https://www.w3.org/TR/json-ld11/
-
Latest editor's draft:
https://w3c.github.io/json-ld-syntax/
- - - - - - -
Editor:
-
Gregg Kellogg (Spec-Ops) (v1.0 and v1.1)
-
Former editors:
Manu Sporny (Digital Bazaar) (v1.0)
Markus Lanthaler (Graz University of Technology) (v1.0)
-
Authors:
Manu Sporny (Digital Bazaar) (v1.0)
Dave Longley (Digital Bazaar) (v1.0)
Gregg Kellogg (Spec-Ops) (v1.0 and v1.1)
Markus Lanthaler (Graz University of Technology) (v1.0)
Niklas Lindström (v1.0)
-
Participate:
- GitHub w3c/json-ld-syntax -
- File a bug -
- Commit history -
- Pull requests -
-
- - - - -
-
-

Abstract

-

JSON is a useful data serialization and messaging format. - This specification defines JSON-LD, a JSON-based format to serialize - Linked Data. The syntax is designed to easily integrate into deployed - systems that already use JSON, and provides a smooth upgrade path from - JSON to JSON-LD. - It is primarily intended to be a way to use Linked Data in Web-based - programming environments, to build interoperable Web services, and to - store Linked Data in JSON-based storage engines.

-
- -

Status of This Document

- This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/. -

This document has been developed by the - JSON-LD Working Group and was derived from the JSON-LD Community Group's Final Report.

There is a - live JSON-LD playground that is capable - of demonstrating the features described in this document.

- This document was published by the JSON-LD Working Group as a First Public Working Draft. - This document is intended to become a W3C Recommendation. -

- GitHub Issues are - preferred for discussion of this specification. - - - Alternatively, you can send comments to our mailing list. - - Please send them to - public-json-ld-wg@w3.org - (archives). - -

- Publication as a First Public Working Draft does not imply endorsement by the W3C - Membership. This is a draft document and may be updated, replaced or obsoleted by other - documents at any time. It is inappropriate to cite this document as other than work in - progress. -

- - This document was produced by - a group - operating under the - W3C Patent Policy. - - - - W3C maintains a public list of any patent - disclosures - made in connection with the deliverables of - the group; that page also includes - instructions for disclosing a patent. An individual who has actual knowledge of a patent - which the individual believes contains - Essential - Claim(s) must disclose the information in accordance with - section - 6 of the W3C Patent Policy. - - -

This document is governed by the 1 February 2018 W3C Process Document. -

-

Set of Documents

-

This document is one of three JSON-LD 1.1 Recommendations produced by the - JSON-LD Working Group:

- - -
- -
-

1. Introduction §

This section is non-normative.

- -

Linked Data [LINKED-DATA] is a way to create a network of - standards-based machine interpretable data across different documents and - Web sites. It allows an application to start at one piece of Linked Data, - and follow embedded links to other pieces of Linked Data that are hosted on - different sites across the Web.

- -

JSON-LD is a lightweight syntax to serialize Linked Data in - JSON [RFC8259]. Its design allows existing JSON to be interpreted as - Linked Data with minimal changes. JSON-LD is primarily intended to be a - way to use Linked Data in Web-based programming environments, to build - interoperable Web services, and to store Linked Data in JSON-based storage engines. Since - JSON-LD is 100% compatible with JSON, the large number of JSON parsers and libraries - available today can be reused. In addition to all the features JSON provides, - JSON-LD introduces:

- -
    -
  • a universal identifier mechanism for JSON objects - via the use of IRIs,
  • -
  • a way to disambiguate keys shared among different JSON documents by mapping - them to IRIs via a context,
  • -
  • a mechanism in which a value in a JSON object may refer - to a resource on a different site on the Web,
  • -
  • the ability to annotate strings with their language,
  • -
  • a way to associate datatypes with values such as dates and times,
  • -
  • and a facility to express one or more directed graphs, such as a social - network, in a single document.
  • -
- -

- JSON-LD is designed to be usable directly as JSON, with no knowledge of RDF - [RDF11-CONCEPTS]. It is also designed to be usable as RDF, if desired, for - use with other Linked Data technologies like SPARQL. Developers who - require any of the facilities listed above or need to serialize an RDF Graph - or Dataset in a JSON-based syntax will find JSON-LD of interest. People - intending to use JSON-LD with RDF tools will find it can be used as another - RDF syntax, like Turtle [TURTLE]. Complete details of how JSON-LD relates - to RDF are in section 10. Relationship to RDF. -

- -

- The syntax is designed to not disturb already - deployed systems running on JSON, but provide a smooth upgrade path from - JSON to JSON-LD. Since the shape of such data varies wildly, JSON-LD - features mechanisms to reshape documents into a deterministic structure - which simplifies their processing.

- -
-

1.1 How to Read this Document §

This section is non-normative.

- -

This document is a detailed specification for a serialization of Linked - Data in JSON. The document is primarily intended for the following audiences:

- -
    -
  • Software developers who want to encode Linked Data in a variety of - programming languages that can use JSON
  • -
  • Software developers who want to convert existing JSON to JSON-LD
  • -
  • Software developers who want to understand the design decisions and - language syntax for JSON-LD
  • -
  • Software developers who want to implement processors and APIs for - JSON-LD
  • -
  • Software developers who want to generate or consume Linked Data, - an RDF graph, or an RDF Dataset in a JSON syntax
  • -
- -

A companion document, the JSON-LD 1.1 Processing Algorithms and API specification - [JSON-LD11-API], specifies how to work with JSON-LD at a higher level by - providing a standard library interface for common JSON-LD operations.

- -

To understand the basics in this specification you must first be familiar with - JSON, which is detailed in [RFC8259].

- -

This document almost exclusively uses the term IRI - (Internationalized Resource Indicator) - when discussing hyperlinks. Many Web developers are more familiar with the - URL (Uniform Resource Locator) - terminology. The document also uses, albeit rarely, the URI - (Uniform Resource Indicator) - terminology. While these terms are often used interchangeably among - technical communities, they do have important distinctions from one - another and the specification goes to great lengths to try and use the - proper terminology at all times. -

-
- -
-

1.2 Contributing §

- -

There are a number of ways that one may participate in the development of - this specification:

- -
    -
  • Technical discussion typically occurs on the working group mailing list: - public-json-ld-wg@w3.org
  • - -
  • The working group uses #json-ld - IRC channel is available for real-time discussion on irc.w3.org.
  • - -
  • The #json-ld - IRC channel is also available for real-time discussion on irc.freenode.net.
  • -
- -
- -
-

1.3 Typographical conventions §

-

The following typographic conventions are used in this specification:

- -
-
markup
-
Markup (elements, attributes, properties), machine processable values (string, characters, media types), property name, or a file name is in red-orange monospace font.
-
variable
-
A variable in pseudo-code or in an algorithm description is in italics.
-
definition
-
A definition of a term, to be used elsewhere in this or other specifications, is in bold and italics.
-
definition reference
-
A reference to a definition in this document is underlined and is also an active link to the definition itself.
-
markup definition reference
-
A references to a definition in this document, when the reference itself is also a markup, is underlined, red-orange monospace font, and is also an active link to the definition itself.
-
external definition reference
-
A reference to a definition in another document is underlined, in italics, and is also an active link to the definition itself.
-
markup external definition reference
-
A reference to a definition in another document, when the reference itself is also a markup, is underlined, in italics red-orange monospace font, and is also an active link to the definition itself.
-
hyperlink
-
A hyperlink is underlined and in blue.
-
[reference]
-
A document reference (normative or informative) is enclosed in square brackets and links to the references section.
-
Changes from Recommendation
-
Sections or phrases changed from the previous Recommendation are highlighted.
-
- -
Note

Notes are in light green boxes with a green left border and with a "Note" header in green. Notes are always informative.

- -
-
Example 1
-
Examples are in light khaki boxes, with khaki left border, and with a
-numbered "Example" header in khaki. Examples are always informative.
-The content of the example is in monospace font and may be syntax colored.
-
-
-
- -
-

1.4 Terminology §

- -

This document uses the following terms as defined in JSON [RFC8259]. Refer - to the JSON Grammar section in [RFC8259] for formal definitions.

- -
-
array
- In the JSON serialization, an array structure is represented as square brackets surrounding zero - or more values. Values are separated by commas. - In the internal representation, an array is an ordered collection of zero or more values. - While JSON-LD uses the same array representation as JSON, - the collection is unordered by default. While order is - preserved in regular JSON arrays, it is not in regular JSON-LD arrays - unless specifically defined (see - Sets and Lists in - the JSON-LD Syntax specification [JSON-LD11]).
-
JSON object
- In the JSON serialization, an object structure is represented as a pair of curly brackets surrounding zero or - more members composed of name-value pairs. A name is a string. A single colon comes after - each name, separating the name from the value. A single comma separates a value - from a following name. In JSON-LD the names in an object MUST be unique. - In the internal representation a JSON object is equivalent to a - dictionary (see [WEBIDL]), - composed of dictionary members with key-value pairs.
-
JSON-LD internal representation
The JSON-LD - internal representation is the result of transforming a JSON syntactic structure - into the core data structures suitable for direct processing: - arrays, dictionaries, - strings, numbers, booleans, and null.
-
null
- The use of the null value within JSON-LD is used to - ignore or reset values. A dictionary member in the @context where - the value, or the @id of the value, is null - explicitly decouples a term's association with an IRI. A dictionary member in - the body of a JSON-LD document whose value is null has the - same meaning as if the dictionary member was not defined. If - @value, @list, or @set is set to - null in expanded form, then the entire JSON - object is ignored.
-
number
- In the JSON serialization, a number is similar to that used in most programming languages, except - that the octal and hexadecimal formats are not used and that leading - zeros are not allowed. - In the internal representation, a number is equivalent to either - a long - or double, depending - on if the number has a non-zero fractional part (see [WEBIDL]).
-
string
- A string is a sequence of zero or more Unicode (UTF-8) characters, - wrapped in double quotes, using backslash escapes (if necessary). A - character is represented as a single character string.
-
true and false
- Values that are used to express one of two possible - boolean states.
- -

Furthermore, the following terminology is used throughout this document:

- -
-
-
-
-
-
-
-
-
-
-
absolute IRI
- An absolute IRI is defined in [RFC3987] containing a scheme along with a path and - optional query and fragment segments.
-
active context
- A context that is used to resolve terms while the processing - algorithm is running.
-
base IRI
- The base IRI is an absolute IRI established in the context, - or is based on the JSON-LD document location. The base IRI is used to turn - relative IRIs into absolute IRIs.
-
blank node
- A node in a graph that is neither an - IRI, nor a JSON-LD value, nor a list. - A blank node does not contain a de-referenceable - identifier because it is either ephemeral in nature or does not contain information that needs to be - linked to from outside of the linked data graph. A blank node is assigned an identifier starting with - the prefix _:.
-
blank node identifier
- A blank node identifier is a string that can be used as an identifier for a - blank node within the scope of a JSON-LD document. Blank node identifiers - begin with _:.
-
compact IRI
- A compact IRI is has the form of prefix:suffix and is used as a way - of expressing an IRI without needing to define separate term definitions for - each IRI contained within a common vocabulary identified by prefix.
-
context
- A set of rules for interpreting a JSON-LD document as specified in - The Context of the JSON-LD Syntax specification [JSON-LD11].
-
default graph
- The default graph is the only graph in a JSON-LD document which has no graph name. - When executing an algorithm, the graph where data should be placed - if a named graph is not specified.
-
default language
- The default language is set in the context using the @language key whose - value MUST be a string representing a [BCP47] language code or null.
-
edge
- Every edge has a direction associated with it and is labeled with - an IRI or a blank node identifier. Within the JSON-LD syntax - these edge labels are called properties. Whenever possible, an - edge should be labeled with an IRI.
-
expanded term definition
- An expanded term definition, is a term definition where the value is a dictionary - containing one or more keyword keys to define the associated absolute IRI, - if this is a reverse property, the type associated with string values, and a container mapping.
-
frame
- A JSON-LD document, which describes the form for transforming - another JSON-LD document using matching and embedding rules. - A frame document allows additional keywords and certain dictionary members - to describe the matching and transforming process.
-
graph name
- The IRI identifying a named graph.
-
graph object
- A graph object represents a named graph represented as the - value of a dictionary member within a node object. When expanded, a - graph object MUST have an @graph member, and may also have - @id, and @index members. - A simple graph object is a - graph object which does not have an @id member. Note - that node objects may have a @graph member, but are - not considered graph objects if they include any other members. - A top-level object consisting of @graph is also not a graph object.
-
id map
- An id map is a dictionary value of a term defined with - @container set to @id, whose keys are - interpreted as IRIs representing the @id - of the associated node object; value MUST be a node object. - If the value contains a key expanding to @id, it's value MUST - be equivalent to the referencing key.
-
implicitly named graph
- A named graph created from the value of a dictionary member having an - expanded term definition where @container is set to @graph.
-
index map
- An index map is a dictionary value of a term defined with - @container set to @index, whose values MUST be any of the following types: - string, - number, - true, - false, - null, - node object, - value object, - list object, - set object, or - an array of zero or more of the above possibilities. -
-
IRI
- An Internationalized Resource Identifier as described in [RFC3987].
-
JSON-LD document
- A JSON-LD document is a serialization of a collection of - graphs and comprises exactly one - default graph and zero or more named graphs.
-
JSON-LD Processor
- A JSON-LD Processor is a system which can perform the algorithms defined in [JSON-LD11-API].
-
JSON-LD value
- A JSON-LD value is a string, a number, - true or false, a typed value, or a - language-tagged string.
-
keyword
- A string that is specific to JSON-LD, specified in the JSON-LD Syntax specification [JSON-LD11] - in the section titled Syntax Tokens and Keywords.
-
language map
- An language map is a dictionary value of a term defined with - @container set to @language, whose keys MUST be strings representing - [BCP47] language codes and the values MUST be any of the following types: - null, - string, or - an array of zero or more of the above possibilities. -
-
language-tagged string
- A language-tagged string consists of a string and a non-empty language - tag as defined by [BCP47]. The language tag MUST be well-formed according to - section 2.2.9 Classes of Conformance - of [BCP47], and is normalized to lowercase.
-
linked data graph
- A labeled directed graph, i.e., a set of nodes - connected by edges, - as specified in the Data Model - section of the JSON-LD specification [JSON-LD11]. - A linked data graph is a generalized representation of an - RDF graph - as defined in [RDF11-CONCEPTS].
-
list
- A list is an ordered sequence of IRIs, - blank nodes, and JSON-LD values. - See RDF collection - in [RDF-SCHEMA].
-
list object
- A list object is a dictionary that has a @list - key.
-
local context
- A context that is specified with a dictionary, - specified via the @context keyword.
-
named graph
- A named graph is a linked data graph that is identified by an IRI or blank node.
-
nested property
- A nested property is a key in a node object whose value is a - dictionary containing members which are treated as if they were values of the node object. - The nested property itself is semantically meaningless used only to create a sub-structure within - a node object. -
-
node
- Every node is an IRI, a blank node, - a JSON-LD value, or a list. - A piece of information that is represented in a linked data graph.
-
node object
- A node object represents zero or more properties of a - node in the graph serialized by the - JSON-LD document. A dictionary is a node object - if it exists outside of the JSON-LD context and: -
    -
  • it does not contain the @value, @list, - or @set keywords, or
  • -
  • it is not the top-most dictionary in the JSON-LD document consisting - of no other members than @graph and @context.
  • -
- The members of a node object whose keys are not keywords are also called properties of the node object. -
-
prefix
- A prefix is the first component of a compact IRI which comes from a - term that maps to a string that, when prepended to the suffix of the compact IRI - results in an absolute IRI.
-
processing mode
- The processing mode defines how a JSON-LD document is processed. - By default, all documents are assumed to be conformant with - JSON-LD 1.0 [JSON-LD]. By defining - a different version using the @version member in a - context, or via explicit API option, other processing modes - can be accessed. This specification defines extensions for the - json-ld-1.1 processing mode.
-
property
- The IRI label of an edge in a linked data graph. - See RDF predicate in [RDF11-CONCEPTS].
-
RDF dataset
- A dataset as specified by [RDF11-CONCEPTS] representing a collection of - RDF graphs.
-
RDF resource
- A resource as specified by [RDF11-CONCEPTS].
-
RDF triple
- A triple as specified by [RDF11-CONCEPTS].
-
relative IRI
- A relative IRI is an IRI that is relative to some other absolute IRI, - typically the base IRI of the document. Note that - properties, values of @type, and values of terms defined to be vocabulary relative - are resolved relative to the vocabulary mapping, not the base IRI.
-
set object
- A set object is a dictionary that has an @set member.
-
term
- A term is a short word defined in a context that MAY be expanded to an IRI -
-
term definition
- A term definition is an entry in a context, where the key defines a term which may be used within - a dictionary as a key, type, or elsewhere that a string is interpreted as a vocabulary item. - Its value is either a string (simple term definition), expanding to an absolute IRI, or an expanded term definition. -
-
type map
- An type map is a dictionary value of a term defined with - @container set to @type, whose keys are - interpreted as IRIs representing the @type - of the associated node object; - value MUST be a node object, or array of node objects. - If the value contains a term expanding to @type, it's values - are merged with the map value when expanding.
-
typed value
- A typed value consists of a value, which is a string, and a type, - which is an IRI.
-
value object
- A value object is a dictionary that has an @value member.
-
vocabulary mapping
- The vocabulary mapping is set in the context using the @vocab key whose - value MUST be an absolute IRI or null.
-
-
- -
-

1.5 Design Goals and Rationale §

This section is non-normative.

- -

JSON-LD satisfies the following design goals:

- -
-
Simplicity
-
No extra processors or software libraries are necessary to use JSON-LD - in its most basic form. The language provides developers with a very easy - learning curve. Developers only need to know JSON and two - keywords (@context - and @id) to use the basic functionality in JSON-LD.
-
Compatibility
-
A JSON-LD document is always a valid JSON document. This ensures that - all of the standard JSON libraries work seamlessly with JSON-LD documents.
-
Expressiveness
-
The syntax serializes directed graphs. This ensures that almost - every real world data model can be expressed.
-
Terseness
-
The JSON-LD syntax is very terse and human readable, requiring as - little effort as possible from the developer.
-
Zero Edits, most of the time
-
JSON-LD ensures a smooth and simple transition from existing - JSON-based systems. In many cases, - zero edits to the JSON document and the addition of one line to the HTTP response - should suffice (see section 6. Interpreting JSON as JSON-LD). - This allows organizations that have - already deployed large JSON-based infrastructure to use JSON-LD's features - in a way that is not disruptive to their day-to-day operations and is - transparent to their current customers. However, there are times where - mapping JSON to a graph representation is a complex undertaking. - In these instances, rather than extending JSON-LD to support - esoteric use cases, we chose not to support the use case. While Zero - Edits is a design goal, it is not always possible without adding - great complexity to the language. JSON-LD focuses on simplicity when - possible.
-
Usable as RDF
-
JSON-LD is usable by developers as - idiomatic JSON, with no need to understand RDF [RDF11-CONCEPTS]. - JSON-LD is also usable as RDF, so people intending to use JSON-LD - with RDF tools will find it can be used like any other RDF syntax. - Complete details of how JSON-LD relates to RDF are in section - 10. Relationship to RDF.
-
-
- -
-

1.6 Data Model Overview §

This section is non-normative.

- -

Generally speaking, the data model described by a - JSON-LD document is a labeled, - directed graph. The graph contains - nodes, which are connected by - edges. A node is typically data - such as a string, number, - typed values (like dates and times) - or an IRI.

-

Within a directed graph, nodes with may - be unnamed, i.e., not identified by an IRI or representing - data such as strings or numbers. Such nodes are called blank nodes, - and may be identified using a blank node identifier. - These identifiers may be required to represent a fully connected graph - using a tree structure, such as JSON, but otherwise have no - intrinsic meaning.

-

This simple data model is incredibly - flexible and powerful, capable of modeling almost any kind of - data. For a deeper explanation of the data model, see - section 8. Data Model.

- -

Developers who are familiar with Linked Data technologies will - recognize the data model as the RDF Data Model. To dive deeper into how - JSON-LD and RDF are related, see - section 10. Relationship to RDF.

- -

At the surface level, a JSON-LD document is simply - JSON, detailed in [RFC8259]. - For the purpose of describing the core data structures, - this is limited to arrays, dictionaries (the parsed version of a JSON Object), - strings, numbers, booleans, and null, - called the JSON-LD internal representation. - This allows surface syntaxes other than JSON - to be manipulated using the same algorithms, when the syntax maps - to equivalent core data structures.

-
Note

Although not discussed in this specification, - parallel work using YAML [YAML] - and binary representations such as CBOR [RFC7049] - could be used to map into the internal representation, allowing - the JSON-LD 1.1 API [JSON-LD11-API] to operate as if the source was a - JSON document.

-
- -
-

1.7 Syntax Tokens and Keywords §

- -

JSON-LD specifies a number of syntax tokens and keywords - that are a core part of the language:

- -
:
-
The separator for JSON keys and values that use - compact IRIs.
@base
-
Used to set the base IRI against which to resolve those relative IRIs - interpreted relative to the document. - This keyword is described in section 4.1.3 Base IRI.
-
@container
-
Used to set the default container type for a term. - This keyword is described in the following sections: -
-
@context
-
Used to define the short-hand names that are used throughout a JSON-LD - document. These short-hand names are called terms and help - developers to express specific identifiers in a compact manner. The - @context keyword is described in detail in - section 3.1 The Context.
-
@graph
Used to express a graph. - This keyword is described in section 4.8 Named Graphs.
-
@id
-
Used to uniquely identify node objects that are being described in the document - with IRIs or - blank node identifiers. This keyword - is described in section 3.3 Node Identifiers.
-
@index
-
Used to specify that a container is used to index information and - that processing should continue deeper into a JSON data structure. - This keyword is described in section 4.6.1 Data Indexing.
-
@language
-
Used to specify the language for a particular string value or the default - language of a JSON-LD document. This keyword is described in - section 4.2.3 String Internationalization.
-
@list
-
Used to express an ordered set of data. - This keyword is described in section 4.3.1 Lists.
-
@nest
Collects a set of nested properties within - a node object.
-
@none
Used as an index value - in an id map, language map, type map, or elsewhere where a dictionary is - used to index into other values.
-
@prefix
- With the value true, allows this term to be used to construct a compact IRI - when compacting.
-
@reverse
-
Used to express reverse properties. This keyword is described in - section 4.7 Reverse Properties.
-
@set
-
Used to express an unordered set of data and to ensure that values are always - represented as arrays. This keyword is described in - section 4.3.2 Sets.
-
@type
-
Used to set the data type of a node or - typed value. This keyword is described in - section 4.2.1 Typed Values.
-
@value
-
Used to specify the data that is associated with a particular - property in the graph. This keyword is described in - section 4.2.3 String Internationalization and - section 4.2.1 Typed Values.
-
@version
- Used in a context definition to set the processing mode. - New features since JSON-LD 1.0 [JSON-LD] described in this specification are - only available when processing mode has been explicitly set to - json-ld-1.1. -
-
@vocab
-
Used to expand properties and values in @type with a common prefix - IRI. This keyword is described in section 4.1.2 Default Vocabulary.
-
- -

All keys, keywords, and values in JSON-LD are case-sensitive.

-
-
- -

2. Conformance §

- As well as sections marked as non-normative, all authoring guidelines, diagrams, examples, - and notes in this specification are non-normative. Everything else in this specification is - normative. -

The key words MAY, MUST, MUST NOT, RECOMMENDED, SHOULD, and SHOULD NOT are - to be interpreted as described in [RFC2119]. -

-

Conformance criteria are relevant to authors and authoring tool implementers. As well - as sections marked as non-normative, all authoring guidelines, diagrams, examples, - and notes in this specification are non-normative. Everything else in this - specification is normative.

- -

A JSON-LD document complies with this specification if it follows - the normative statements in appendix 9. JSON-LD Grammar. JSON documents - can be interpreted as JSON-LD by following the normative statements in - section 6. Interpreting JSON as JSON-LD. For convenience, normative - statements for documents are often phrased as statements on the properties of the document.

- -

This specification makes use of the following namespace prefixes:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PrefixIRI
dchttp://purl.org/dc/terms/
credhttps://w3id.org/credentials#
foafhttp://xmlns.com/foaf/0.1/
geojsonhttps://purl.org/geojson/vocab#
provhttp://www.w3.org/ns/prov#
rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#
schemahttp://schema.org/
xsdhttp://www.w3.org/2001/XMLSchema#
- -

These are used within this document as part of a compact IRI - as a shorthand for the resulting absolute IRI, such as dc:title - used to represent http://purl.org/dc/terms/title.

-
- -
-

3. Basic Concepts §

This section is non-normative.

- -

JSON [RFC8259] is a lightweight, language-independent data interchange format. - It is easy to parse and easy to generate. However, it is difficult to integrate JSON - from different sources as the data may contain keys that conflict with other - data sources. Furthermore, JSON has no - built-in support for hyperlinks, which are a fundamental building block on - the Web. Let's start by looking at an example that we will be using for the - rest of this section:

- -
-
Example 2: Sample JSON document
-
{
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/",
-  "image": "http://manu.sporny.org/images/manu.png"
-}
-
- -

It's obvious to humans that the data is about a person whose - name is "Manu Sporny" - and that the homepage property contains the URL of that person's homepage. - A machine doesn't have such an intuitive understanding and sometimes, - even for humans, it is difficult to resolve ambiguities in such representations. This problem - can be solved by using unambiguous identifiers to denote the different concepts instead of - tokens such as "name", "homepage", etc.

- -

Linked Data, and the Web in general, uses IRIs - (Internationalized Resource Identifiers as described in [RFC3987]) for unambiguous - identification. The idea is to use IRIs - to assign unambiguous identifiers to data that may be of use to other developers. - It is useful for terms, - like name and homepage, to expand to IRIs - so that developers don't accidentally step on each other's terms. Furthermore, developers and - machines are able to use this IRI (by using a web browser, for instance) to go to - the term and get a definition of what the term means. This process is known as IRI - dereferencing.

- -

Leveraging the popular schema.org vocabulary, - the example above could be unambiguously expressed as follows:

- -
-
Example 3: Sample JSON-LD document using full IRIs instead of terms
-
{
-  "http://schema.org/name": "Manu Sporny",
-  "http://schema.org/url": { "@id": "http://manu.sporny.org/" },  ← The '@id' keyword means 'This value is an identifier that is an IRI'
-  "http://schema.org/image": { "@id": "http://manu.sporny.org/images/manu.png" }
-}
-
- -

In the example above, every property is unambiguously identified by an IRI and all values - representing IRIs are explicitly marked as such by the - @id keyword. While this is a valid JSON-LD - document that is very specific about its data, the document is also overly verbose and difficult - to work with for human developers. To address this issue, JSON-LD introduces the notion - of a context as described in the next section.

- -
-

3.1 The Context §

This section is non-normative.

- -

When two people communicate with one another, the conversation takes - place in a shared environment, typically called - "the context of the conversation". This shared context allows the - individuals to use shortcut terms, like the first name of a mutual friend, - to communicate more quickly but without losing accuracy. A context in - JSON-LD works in the same way. It allows two applications to use shortcut - terms to communicate with one another more efficiently, but without - losing accuracy.

- -

Simply speaking, a context is used to map terms to - IRIs. Terms are case sensitive - and any valid string that is not a reserved JSON-LD keyword - can be used as a term.

- -

For the sample document in the previous section, a context would - look something like this:

- -
-
Example 4: Context for the sample document in the previous section
-
{
-  "@context": {
-    "name": "http://schema.org/name",  ← This means that 'name' is shorthand for 'http://schema.org/name' 
-    "image": {
-      "@id": "http://schema.org/image",  ← This means that 'image' is shorthand for 'http://schema.org/image' 
-      "@type": "@id"  ← This means that a string value associated with 'image' should be interpreted as an identifier that is an IRI 
-    },
-    "homepage": {
-      "@id": "http://schema.org/url",  ← This means that 'homepage' is shorthand for 'http://schema.org/url' 
-      "@type": "@id"  ← This means that a string value associated with 'homepage' should be interpreted as an identifier that is an IRI 
-    }
-  }
-}
-
- -

As the context above shows, the value of a term definition can - either be a simple string, mapping the term to an IRI, - or a dictionary.

- -

When a when a member with a term key has a dictionary value, the dictionary is called - an expanded term definition. The example above specifies that - the values of image and homepage, if they are - strings, are to be interpreted as - IRIs. Expanded term definitions - also allow terms to be used for index maps - and to specify whether array values are to be - interpreted as sets or lists. - Expanded term definitions may - be defined using absolute or - compact IRIs as keys, which is - mainly used to associate type or language information with an - absolute or compact IRI.

- -

Contexts can either be directly embedded - into the document or be referenced. Assuming the context document in the previous - example can be retrieved at https://json-ld.org/contexts/person.jsonld, - it can be referenced by adding a single line and allows a JSON-LD document to - be expressed much more concisely as shown in the example below:

- -
-
Example 5: Referencing a JSON-LD context
-
{
-  "@context": "https://json-ld.org/contexts/person.jsonld",
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/",
-  "image": "http://manu.sporny.org/images/manu.png"
-}
-
- -

The referenced context not only specifies how the terms map to - IRIs in the Schema.org vocabulary but also - specifies that string values associated with - the homepage and image property - can be interpreted as an IRI ("@type": "@id", - see section 3.2 IRIs for more details). This information allows developers - to re-use each other's data without having to agree to how their data will interoperate - on a site-by-site basis. External JSON-LD context documents may contain extra - information located outside of the @context key, such as - documentation about the terms declared in the - document. Information contained outside of the @context value - is ignored when the document is used as an external JSON-LD context document.

- -

JSON documents can be interpreted as JSON-LD without having to be modified by - referencing a context via an HTTP Link Header - as described in section 6. Interpreting JSON as JSON-LD. It is also - possible to apply a custom context using the JSON-LD 1.1 API [JSON-LD11-API].

- -

In JSON-LD documents, - contexts may also be specified inline. - This has the advantage that documents can be processed even in the - absence of a connection to the Web. Ultimately, this is a modeling decision - and different use cases may require different handling.

- -
-
Example 6: In-line context definition
-
{
-  "@context": {
-    "name": "http://schema.org/name",
-    "image": {
-      "@id": "http://schema.org/image",
-      "@type": "@id"
-    },
-    "homepage": {
-      "@id": "http://schema.org/url",
-      "@type": "@id"
-    }
-  },
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/",
-  "image": "http://manu.sporny.org/images/manu.png"
-}
-
- -

This section only covers the most basic features of the JSON-LD Context. - The Context can also be used to help interpret other more - complex JSON data structures, such as indexed values, - ordered values, and - nested properties. - More advanced features related to the JSON-LD Context are covered in - section section 4. Advanced Concepts.

-
- -
-

3.2 IRIs §

This section is non-normative.

- -

IRIs (Internationalized Resource Identifiers - [RFC3987]) are fundamental to Linked Data as that is how most - nodes and properties - are identified. In JSON-LD, IRIs may be represented as an - absolute IRI or a relative IRI. An - absolute IRI is defined in [RFC3987] as containing a - scheme along with path and optional query and - fragment segments. A relative IRI is an IRI - that is relative to some other absolute IRI. - In JSON-LD, with exceptions are as described below, all relative IRIs - are resolved relative to the base IRI.

- -
Note

Properties, values of @type, - and values of properties with a term definition - that defines them as being relative to the vocabulary mapping, - may have the form of a relative IRI, but are resolved using the - vocabulary mapping, and not the base IRI.

- -

A string is interpreted as an IRI when it is the - value of an dictionary member with the key@id:

- -
-
Example 7: Values of @id are interpreted as IRI
-
{
-  ...
-  "homepage": { "@id": "http://example.com/" }
-  ...
-}
-
- -

Values that are interpreted as IRIs, can also be - expressed as relative IRIs. For example, - assuming that the following document is located at - http://example.com/about/, the relative IRI - ../ would expand to http://example.com/ (for more - information on where relative IRIs can be - used, please refer to section 9. JSON-LD Grammar).

- -
-
Example 8: IRIs can be relative
-
{
-  ...
-  "homepage": { "@id": "../" }
-  ...
-}
-
- -

Absolute IRIs can be expressed directly - in the key position like so:

- -
-
Example 9: IRI as a key
-
{
-  ...
-  "http://schema.org/name": "Manu Sporny",
-  ...
-}
-
- -

In the example above, the key http://schema.org/name - is interpreted as an absolute IRI.

- -

Term-to-IRI expansion occurs if the key matches a term defined - within the active context:

- -
-
Example 10: Term expansion from context definition
-
{
-  "@context": {
-    "name": "http://schema.org/name"
-  },
-  "name": "Manu Sporny",
-  "status": "trollin'"
-}
-
- -

JSON keys that do not expand to an IRI, such as status - in the example above, are not Linked Data and thus ignored when processed.

- -

If type coercion rules are specified in the @context for - a particular term or property IRI, an IRI is generated:

- -
-
Example 11: Type coercion
-
{
-  "@context": {
-    ...
-    "homepage": {
-      "@id": "http://schema.org/url",
-      "@type": "@id"
-    }
-    ...
-  },
-  ...
-  "homepage": "http://manu.sporny.org/"
-  ...
-}
-
- -

In the example above, since the value http://manu.sporny.org/ - is expressed as a JSON string, the type coercion - rules will transform the value into an IRI when processing the data. - See section 4.2.2 Type Coercion for more - details about this feature.

- -

In summary, IRIs can be expressed in a variety of - different ways in JSON-LD:

- -
    -
  1. Dictionary members that have a key mapping to a term in - the active context expand to an IRI - (only applies outside of the context definition).
  2. -
  3. An IRI is generated for the string value specified using - @id or @type.
  4. -
  5. An IRI is generated for the string value of any key for which there - are coercion rules that contain an @type key that is - set to a value of @id or @vocab.
  6. -
- -

This section only covers the most basic features associated with IRIs - in JSON-LD. More advanced features related to IRIs are covered in - section 4. Advanced Concepts. -

- -
- -
-

3.3 Node Identifiers §

This section is non-normative.

- -

To be able to externally reference nodes - in a graph, it is important that - nodes have an identifier. IRIs - are a fundamental concept of Linked Data, for - nodes to be truly linked, dereferencing the - identifier should result in a representation of that node. - This may allow an application to retrieve further information about a - node.

- -

In JSON-LD, a node is identified using the @id - keyword:

- -
-
Example 12: Identifying a node
-
{
-  "@context": {
-    ...
-    "name": "http://schema.org/name"
-  },
-  "@id": "http://me.markus-lanthaler.com/",
-  "name": "Markus Lanthaler",
-  ...
-}
-
- -

The example above contains a node object identified by the IRI - http://me.markus-lanthaler.com/.

- -

This section only covers the most basic features associated with - node identifiers in JSON-LD. More advanced features related to - node identifiers are covered in section 4. Advanced Concepts. -

- -
- -
-

3.4 Specifying the Type §

This section is non-normative.

- -

In Linked Data, it is common to specify the type of a graph node; - in many cases, this can be inferred based on the properties used within a - given node object, or the property for which a node is a value. For - example, in the schema.org vocabulary, the givenName - property is associated with a Person. Therefore, one may reason that - if a node object contains the property firstName, that the - type is a Person; making this explicit with @type helps - to clarify the association.

- -

The type of a particular node can be specified using the @type - keyword. In Linked Data, types are uniquely - identified with an IRI.

- -
-
Example 13: Specifying the type for a node
-
{
-  "@context": {
-    ...
-    "givenName": "http://schema.org/givenName",
-    "familyName": "http://schema.org/familyName"
-  },
-  "@id": "http://me.markus-lanthaler.com/",
-  "@type": "http://schema.org/Person",
-  "givenName": "Markus",
-  "familyName": "Lanthaler",
-  ...
-}
-
- -

A node can be assigned more than one type by using an array:

- -
-
Example 14: Specifying multiple types for a node
-
{
-  ...
-  "@id": "http://me.markus-lanthaler.com/",
-  "@type": [
-     "http://schema.org/Person",
-     "http://xmlns.com/foaf/0.1/Person"
-    ],
-  ...
-}
-
- -

The value of an @type key may also be a term defined in the active context:

-
-
Example 15: Using a term to specify the type
-
{
-  "@context": {
-    ...
-    "Person": "http://schema.org/Person"
-  },
-  "@id": "http://example.org/places#BrewEats",
-  "@type": "Person",
-  ...
-}
-
- -
Note

This section only covers the most basic features associated with - types in JSON-LD. It is worth noting that the @type - keyword is not only used to specify the type of a - node but also to express typed values - (as described in section 4.2.1 Typed Values) and to - type coerce values (as described in - section 4.2.2 Type Coercion). Specifically, @type - cannot be used in a context to define a node's - type. For a detailed description of the differences, please refer to - section 4.2.1 Typed Values.

- -
-
- -
-

4. Advanced Concepts §

- -

JSON-LD has a number of features that provide functionality above and beyond - the core functionality described above. JSON can be used to express data - using such structures, and the features described in this - section can be used to interpret a variety of different JSON structures as - Linked Data. A JSON-LD processor will make use of provided and embedded - contexts to interpret property values in a number of different idiomatic - ways.

- -
-
Describing values
-

One pattern in JSON is for the value of a property to be a string. - Often times, this string actually represents some other typed value, for - example an IRI, a date, or a string in some specific language. See section 4.2 Describing Values for details on how to - describe such value typing.

-
Value ordering
-

In JSON, a property with an array value implies an implicit order; - arrays in JSON-LD do not provide an ordering of the contained elements by - default, unless defined using embedded structures or through a context - definition. See section 4.3 Value Ordering for a - further discussion.

-
Property nesting
-

Another JSON idiom often found in APIs is to use an - intermediate object to represent the properties of an object; in JSON-LD - these are refered to as nested properties and are described in section 4.4 Nested Properties.

-
Referencing objects
-
-

Linked Data is all about describing the relationships between different resources. - Sometimes these relationships are between resources defined in different - documents described on the web, sometimes the resources are described - within the same document.

- -
-
Example 16: Referencing Objects on the Web
-
{
-  "@context": {
-    "@vocab": "http://schema.org/",
-    "knows": {"@type": "@id"}
-  },
-  "@id": "http://manu.sporny.org/about#manu",
-  "@type": "Person",
-  "name": "Manu Sporny",
-  "knows": "http://greggkellogg.net/foaf#me"
-}
-
- -

In this case, a document residing at http://manu.sporny.org/about - may contain the example above, and reference another document at - http://greggkellogg.net/foaf which could include a similar - representation.

- -

A common idiom found in JSON usage is objects being specified as the - value of other objects, called object embedding in JSON-LD; - for example, a friend specified as an - object value of a Person:

- -
-
Example 17: Embedding Objects
-
{
-  "@context": {
-    "@vocab": "http://schema.org/"
-  },
-  "@id": "http://manu.sporny.org/about#manu",
-  "@type": "Person",
-  "name": "Manu Sporny",
-  "knows": {
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@type": "Person",
-    "name": "Gregg Kellogg"
-  }
-}
-
- -

See section 4.5 Embedding details these relationships.

-
-
Indexed values
-

Another common idiom in JSON is to use an intermediate object to represent property values via indexing. JSON-LD allows data to be indexed - in a number of different ways, as detailed in section 4.6 Indexed Values.

-
Reverse Properties
-

JSON-LD serializes directed graphs. That means that - every property points from a node to another node - or value. However, in some cases, it is desirable - to serialize in the reverse direction, as detailed in section 4.7 Reverse Properties.

-
- -

The following sections describe such - advanced functionality in more detail.

- -

4.1 Advanced Context Usage §

This section is non-normative.

- -

Section 3.1 The Context introduced the basics of what makes - JSON-LD work. This section expands on the basic principles of the - context and demonstrates how more advanced use cases can - be achieved using JSON-LD.

- -

In general, contexts may be used any time a - dictionary is defined. - The only time that one cannot express a context is as a direct child of another context definition (other than as part of an expanded term definition). - For example, a JSON-LD document may use more than one context at different - points in a document:

- -
-
Example 18: Using multiple contexts
-
[
-  {
-    "@context": "https://json-ld.org/contexts/person.jsonld",
-    "name": "Manu Sporny",
-    "homepage": "http://manu.sporny.org/",
-    "depiction": "http://twitter.com/account/profile_image/manusporny"
-  },
-  {
-    "@context": "https://json-ld.org/contexts/place.jsonld",
-    "name": "The Empire State Building",
-    "description": "The Empire State Building is a 102-story landmark in New York City.",
-    "geo": {
-      "latitude": "40.75",
-      "longitude": "73.98"
-    }
-  }
-]
-
- -

Duplicate context terms are overridden using a - most-recently-defined-wins mechanism.

- -
-
Example 19: Scoped contexts within node objects
-
{
-  "@context": {
-    "name": "http://example.com/person#name",
-    "details": "http://example.com/person#details"
-  },
-  "name": "Markus Lanthaler",
-  ...
-  "details": {
-    "@context": {
-      "name": "http://example.com/organization#name"
-    },
-    "name": "Graz University of Technology"
-  }
-}
-
- -

In the example above, the name term is overridden - in the more deeply nested details structure. Note that this is - rarely a good authoring practice and is typically used when working with - legacy applications that depend on a specific structure of the - dictionary. If a term is redefined within a - context, all previous rules associated with the previous definition are - removed. If a term is redefined to null, - the term is effectively removed from the list of - terms defined in the active context.

- -

Multiple contexts may be combined using an array, which is processed - in order. The set of contexts defined within a specific dictionary are - referred to as local contexts. The - active context refers to the accumulation of - local contexts that are in scope at a - specific point within the document. Setting a local context - to null effectively resets the active context - to an empty context, without term definitions, default language, - or other things defined within previous contexts. - The following example specifies an external context - and then layers an embedded context on top of the external context:

- -
-
Example 20: Combining external and local contexts
-
{
-  "@context": [
-    "https://json-ld.org/contexts/person.jsonld",
-    {
-      "pic": "http://xmlns.com/foaf/0.1/depiction"
-    }
-  ],
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/",
-  "pic": "http://twitter.com/account/profile_image/manusporny"
-}
-
- -
Note

When possible, the context definition should be put - at the top of a JSON-LD document. This makes the document easier to read and - might make streaming parsers more efficient. Documents that do not have the - context at the top are still conformant JSON-LD.

- -
Note

To avoid forward-compatibility issues, terms - starting with an @ character are to be avoided as they - might be used as keyword in future versions - of JSON-LD. Terms starting with an @ character that are not - JSON-LD 1.1 keywords are treated as any other term, i.e., - they are ignored unless mapped to an IRI. Furthermore, the use of - empty terms ("") is not allowed as - not all programming languages are able to handle empty JSON keys.

- -

4.1.1 JSON-LD 1.1 Processing Mode §

This section is non-normative.

- -

New features defined in JSON-LD 1.1 are available - when the processing mode is set to json-ld-1.1. - This may be set using the @version member in a context - set to the value 1.1 as a number, or through an API option.

- -
-
Example 21: Setting @version in context
-
{
-  "@context": {
-    "@version": 1.1,
-    ...
-  },
-  ...
-}
-
- -

The first context encountered when processing a - document which contains @version determines the processing mode, - unless it is defined explicitly through an API option.

- -
Note

Setting the processing mode explicitly - for JSON-LD 1.1 is necessary so that a JSON-LD 1.0 processor - does not attempt to process a JSON-LD 1.1 document and silently - produce different results.

-
- -

4.1.2 Default Vocabulary §

This section is non-normative.

- -

At times, all properties and types may come from the same vocabulary. JSON-LD's - @vocab keyword allows an author to set a common prefix which - is used as the vocabulary mapping and is used - for all properties and types that do not match a term and are neither - a compact IRI nor an absolute IRI (i.e., they do - not contain a colon).

- -
-
Example 22: Using a common vocabulary prefix
-
{
-  "@context": {
-    "@vocab": "http://schema.org/"
-  },
-  "@id": "http://example.org/places#BrewEats",
-  "@type": "Restaurant",
-  "name": "Brew Eats"
-  ...
-}
-
- -

If @vocab is used but certain keys in an - dictionary should not be expanded using - the vocabulary IRI, a term can be explicitly set - to null in the context. For instance, in the - example below the databaseId member would not expand to an - IRI causing the property to be dropped when expanding.

- -
-
Example 23: Using the null keyword to ignore data
-
{
-  "@context": {
-     "@vocab": "http://schema.org/",
-     "databaseId": null
-  },
-  "@id": "http://example.org/places#BrewEats",
-  "@type": "Restaurant",
-  "name": "Brew Eats",
-  "databaseId": "23987520"
-}
-
- -
-
4.1.2.1 Using the Document Base as the Default Vocabulary §
-

In some cases, vocabulary terms are defined directly within the document - itself, rather than in an external vocabulary. Since - json-ld-1.1, the vocabulary mapping in the active - context can be set to the empty string "", which causes terms which - are expanded relative to the vocabulary, such as the keys of node - objects, to use the base IRI to create absolute - IRIs.

-
-
Example 24: Using "" as the vocabulary mapping
-
{
-  "@context": {
-    "@version": 1.1,
-    "@base": "http://example/document",
-    "@vocab": ""
-  },
-  "@id": "http://example.org/places#BrewEats",
-  "@type": "#Restaurant",
-  "#name": "Brew Eats"
-  ...
-}
-
-

If this document were located at http://example/document, it would expand as follows:

-
-
Example 25: Using "" as the vocabulary mapping (expanded)
-
[{
-  "@id": "http://example.org/places#BrewEats",
-  "@type": ["http://example/document#Restaurant"],
-  "http://example/document#name": [{"@value": "Brew Eats"}]
-}]
-
-
-
- -

4.1.3 Base IRI §

This section is non-normative.

- -

JSON-LD allows IRIs - to be specified in a relative form which is - resolved against the document base according - section 5.1 Establishing a Base URI - of [RFC3986]. The base IRI may be explicitly set with a context - using the @base keyword.

- -

For example, if a JSON-LD document was retrieved from http://example.com/document.jsonld, - relative IRIs would resolve against that IRI:

- -
-
Example 26: Use a relative IRI as node identifier
-
{
-  "@context": {
-    "label": "http://www.w3.org/2000/01/rdf-schema#label"
-  },
-  "@id": "",
-  "label": "Just a simple document"
-}
-
- -

This document uses an empty @id, which resolves to the document base. - However, if the document is moved to a different location, the IRI would change. - To prevent this without having to use an absolute IRI, a context - may define an @base mapping, to overwrite the base IRI for the document.

- -
-
Example 27: Setting the document base in a document
-
{
-  "@context": {
-    "@base": "http://example.com/document.jsonld",
-    "label": "http://www.w3.org/2000/01/rdf-schema#label"
-  },
-  "@id": "",
-  "label": "Just a simple document"
-}
-
- -

Setting @base to null will prevent - relative IRIs from being expanded to - absolute IRIs.

- -

Please note that the @base will be ignored if used in - external contexts.

-
- -

4.1.4 Compact IRIs §

This section is non-normative.

- -

A compact IRI is a way of expressing an IRI - using a prefix and suffix separated by a colon (:). - The prefix is a term taken from the - active context and is a short string identifying a - particular IRI in a JSON-LD document. For example, the - prefix foaf may be used as a short hand for the - Friend-of-a-Friend vocabulary, which is identified using the IRI - http://xmlns.com/foaf/0.1/. A developer may append - any of the FOAF vocabulary terms to the end of the prefix to specify a short-hand - version of the absolute IRI for the vocabulary term. For example, - foaf:name would be expanded to the IRI - http://xmlns.com/foaf/0.1/name.

- -
-
Example 28: Prefix expansion
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/"
-    ...
-  },
-  "@type": "foaf:Person",
-  "foaf:name": "Dave Longley",
-  ...
-}
-
- -

In the example above, foaf:name expands to the IRI - http://xmlns.com/foaf/0.1/name and foaf:Person expands - to http://xmlns.com/foaf/0.1/Person.

- -

Prefixes are expanded when the form of the value - is a compact IRI represented as a prefix:suffix - combination, the prefix matches a term defined within the - active context, and the suffix does not begin with two - slashes (//). The compact IRI is expanded by - concatenating the IRI mapped to the prefix to the (possibly empty) - suffix. If the prefix is not defined in the active context, - or the suffix begins with two slashes (such as in http://example.com), - the value is interpreted as absolute IRI instead. If the prefix is an - underscore (_), the value is interpreted as blank node identifier - instead.

- -

It's also possible to use compact IRIs within the context as shown in the - following example:

- -
-
Example 29: Using vocabularies
-
{
-  "@context": {
-    "@version": 1.1,
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "foaf": "http://xmlns.com/foaf/0.1/",
-    "foaf:homepage": { "@type": "@id" },
-    "picture": { "@id": "foaf:depiction", "@type": "@id" }
-  },
-  "@id": "http://me.markus-lanthaler.com/",
-  "@type": "foaf:Person",
-  "foaf:name": "Markus Lanthaler",
-  "foaf:homepage": "http://www.markus-lanthaler.com/",
-  "picture": "http://twitter.com/account/profile_image/markuslanthaler"
-}
-
- -

In JSON-LD 1.0, terms may be chosen as compact IRI prefixes when - compacting only if a simple term definition is used where the value ends with a - URI gen-delim character (e.g, /, - # and others, see [RFC3986]). - The previous specification allows any term to be chosen as - a compact IRI prefix, which led to a poor experience.

- -

In JSON-LD 1.1, terms may be chosen as compact IRI prefixes - when compacting only if - a simple term definition is used where the value ends with a URI gen-delim character, - or if their expanded term definition contains - a @prefix member with the value true.

- -
Note

This represents a small change to the 1.0 algorithm to prevent IRIs - that are not really intended to be used as prefixes from being used for creating - compact IRIs.

- -

When processing mode is set to json-ld-1.1, terms will be used as compact IRI prefixes - when compacting only if their expanded term definition contains - a @prefix member with the value true, or if it has a - a simple term definition where the value ends with a URI gen-delim character - (e.g, /, # and others, see [RFC3986]).

- -
-
Example 30: Using explicit @prefix declaration to create compact IRIs
-
{
-  "@context": {
-    "compact-iris": {"@id": "http://example.com/compact-iris-", "@prefix": true},
-    "property": "http://example.com/property"
-  },
-  "property": {
-    "@id": "compact-iris:are-considered",
-    "property": "@prefix does not require a gen-delim"
-  }
-}
-
- -

In this case, the compact-iris term would not normally be usable as a prefix, both - because it is defined with an expanded term definition, and because - it's @id does not end in a - gen-delim character. Adding - "@prefix": true allows it to be used as the prefix portion of - the compact IRI compact-iris:are-considered.

-
- -

4.1.5 Aliasing Keywords §

This section is non-normative.

- -

Each of the JSON-LD keywords, - except for @context, may be aliased to application-specific - keywords. This feature allows legacy JSON content to be utilized - by JSON-LD by re-using JSON keys that already exist in legacy documents. - This feature also allows developers to design domain-specific implementations - using only the JSON-LD context.

- -
-
Example 31: Aliasing keywords
-
{
-  "@context": {
-    "url": "@id",
-    "a": "@type",
-    "name": "http://xmlns.com/foaf/0.1/name"
-  },
-  "url": "http://example.com/about#gregg",
-  "a": "http://xmlns.com/foaf/0.1/Person",
-  "name": "Gregg Kellogg"
-}
-
- -

In the example above, the @id and @type - keywords have been given the aliases - url and a, respectively.

- -

Since keywords cannot be redefined, they can also not be aliased to - other keywords.

- -
Note

Aliased keywords may not be used within a context, itself.

-
- -

4.1.6 IRI Expansion within a Context §

This section is non-normative.

-

In general, normal IRI expansion rules apply - anywhere an IRI is expected (see section 3.2 IRIs). Within - a context definition, this can mean that terms defined - within the context may also be used within that context as long as - there are no circular dependencies. For example, it is common to use - the xsd namespace when defining typed values:

- -
-
Example 32: IRI expansion within a context
-
{
-  "@context": {
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "age": {
-      "@id": "http://xmlns.com/foaf/0.1/age",
-      "@type": "xsd:integer"
-    },
-    "homepage": {
-      "@id": "http://xmlns.com/foaf/0.1/homepage",
-      "@type": "@id"
-    }
-  },
-  ...
-}
-
- -

In this example, the xsd term is defined - and used as a prefix for the @type coercion - of the age property.

- -

Terms may also be used when defining the IRI of another -term:

- -
-
Example 33: Using a term to define the IRI of another term within a context
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/",
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "name": "foaf:name",
-    "age": {
-      "@id": "foaf:age",
-      "@type": "xsd:integer"
-    },
-    "homepage": {
-      "@id": "foaf:homepage",
-      "@type": "@id"
-    }
-  },
-  ...
-}
-
- -

Compact IRIs - and IRIs may be used on the left-hand side of a - term definition.

- -
-
Example 34: Using a compact IRI as a term
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/",
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "name": "foaf:name",
-    "foaf:age": {
-      "@type": "xsd:integer"
-    },
-    "foaf:homepage": {
-      "@type": "@id"
-    }
-  },
-  ...
-}
-
- -

-In this example, the compact IRI form is used in two different -ways. -In the first approach, foaf:age declares both the -IRI for the term (using short-form) as well as the -@type associated with the term. In the second -approach, only the @type associated with the term is -specified. The full IRI for -foaf:homepage is determined by looking up the foaf -prefix in the -context. -

- -

-Absolute IRIs may also be used in the key position in a context: -

- -
-
Example 35: Associating context definitions with absolute IRIs
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/",
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "name": "foaf:name",
-    "foaf:age": {
-      "@id": "foaf:age",
-      "@type": "xsd:integer"
-    },
-    "http://xmlns.com/foaf/0.1/homepage": {
-      "@type": "@id"
-    }
-  },
-  ...
-}
-
- -

In order for the absolute IRI to match above, the absolute IRI - needs to be used in the JSON-LD document. Also note that foaf:homepage - will not use the { "@type": "@id" } declaration because - foaf:homepage is not the same as http://xmlns.com/foaf/0.1/homepage. - That is, terms are looked up in a context using - direct string comparison before the prefix lookup mechanism is applied.

- -
Note

While it is possible to define a compact IRI, or - an absolute IRI to expand to some other unrelated IRI - (for example, foaf:name expanding to - http://example.org/unrelated#species), such usage is strongly - discouraged.

- -

The only exception for using terms in the context is that - circular definitions are not allowed. That is, - a definition of term1 cannot depend on the - definition of term2 if term2 also depends on - term1. For example, the following context definition - is illegal:

-
-
Example 36: Illegal circular definition of terms within a context
-
{
-  "@context": {
-    "term1": "term2:foo",
-    "term2": "term1:bar"
-  },
-  ...
-}
-
-
- -

4.1.7 Scoped Contexts §

This section is non-normative.

- -

An expanded term definition can include a @context - property, which defines a context (an embedded context) for values of properties defined using that term. This allows - values to use term definitions, base IRI, - vocabulary mapping or default language which is different from the - node object they are contained in, as if the - context was specified within the value itself.

- -
-
Example 37: Defining an @context within a term definition
-
{
-  "@context": {
-    "@version": 1.1,
-    "name": "http://schema.org/name",
-    "interest": {
-      "@id": "http://xmlns.com/foaf/0.1/interest",
-      "@context": {"@vocab": "http://xmlns.com/foaf/0.1/"}
-    }
-  },
-  "name": "Manu Sporny",
-  "interest": {
-    "@id": "https://www.w3.org/TR/json-ld/",
-    "name": "JSON-LD",
-    "topic": "Linking Data"
-  }
-}
-
- -

In this case, the social profile is defined using the schema.org vocabulary, but interest is imported from FOAF, and is used to define a node describing one of Manu's interests where those properties now come from the FOAF vocabulary.

- -

Expanding this document, uses a combination of terms defined in the outer context, and those defined specifically for that term in an embedded context.

- -
-
Example 38: Expanded document using a scoped context
-
[{
-  "http://schema.org/name": [{"@value": "Manu Sporny"}],
-  "http://xmlns.com/foaf/0.1/interest": [{
-    "@id": "https://www.w3.org/TR/json-ld/",
-    "http://schema.org/name": [{"@value": "JSON-LD"}],
-    "http://xmlns.com/foaf/0.1/topic": [{"@value": "Linking Data"}]
-  }]
-}]
-
- -

Scoping can also be performed using a term used as a value of @type:

- -
-
Example 39: Defining an @context within a term definition used on @type
-
{
-  "@context": {
-    "@version": 1.1,
-    "name": "http://schema.org/name",
-    "interest": "http://xmlns.com/foaf/0.1/interest",
-    "Document": {
-      "@id": "http://xmlns.com/foaf/0.1/Document",
-      "@context": {"@vocab": "http://xmlns.com/foaf/0.1/"}
-    }
-  },
-  "@type": "Person",
-  "name": "Manu Sporny",
-  "interest": {
-    "@id": "https://www.w3.org/TR/json-ld/",
-    "@type": "Document",
-    "name": "JSON-LD",
-    "topic": "Linking Data"
-  }
-}
-
- -

Scoping on @type is useful when common properties are used to - relate things of different types, where the vocabularies in use within - different entities calls for different context scoping. For example, - hasPart/partOf may be common terms used in a document, but mean - different things depending on the context.

- -

When expanding, each value of @type is considered - (ordering them lexographically) where that value is also a term in - the active context having its own embedded context. If so, that - embedded context is applied to the active context. When compacting, if - a term is chosen to represent an IRI used as a value of @type where that - term definition also has an embedded context, it is then applied to the - active context to affect further compaction.

- -
Note

The values of @type are unordered, so if multiple - types are listed, the order that scoped contexts are applied is based on - lexicographical ordering.

- -
Note

If a term defines a scoped context, and then that term - is later re-defined, the association of the context defined in the earlier - expanded term definition is lost - within the scope of that re-definition. This is consistent with - term definitions of a term overriding previous term definitions from - earlier less deeply nested definitions, as discussed in - section 4.1 Advanced Context Usage.

- -
Note

Scoped Contexts are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
- -

4.2 Describing Values §

This section is non-normative.

-

Values are leaf nodes in a graph associated with scalar values such as - strings, dates, times, and other such atomic values.

- -

4.2.1 Typed Values §

This section is non-normative.

- -

A value with an associated type, also known as a - typed value, is indicated by associating a value with - an IRI which indicates the value's type. Typed values may be - expressed in JSON-LD in three ways:

- -
    -
  1. By utilizing the @type keyword when defining - a term within an @context section.
  2. -
  3. By utilizing a value object.
  4. -
  5. By using a native JSON type such as number, true, or false.
  6. -
- -

The first example uses the @type keyword to associate a -type with a particular term in the @context:

- -
-
Example 40: Expanded term definition with type coercion
-
{
-  "@context": {
-    "modified": {
-      "@id": "http://purl.org/dc/terms/modified",
-      "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
-    }
-  },
-  ...
-  "@id": "http://example.com/docs/1",
-  "modified": "2010-05-29T14:17:39+02:00",
-  ...
-}
-
- -

The modified key's value above is automatically type coerced to a - dateTime value because of the information specified in the - @context. A JSON-LD processor will interpret the example above - as follows:

- - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/docs/1dc:modified2010-05-29T14:17:39+02:00xsd:dateTime
- - - -

The second example uses the expanded form of setting the type information -in the body of a JSON-LD document:

- -
-
Example 41: Expanded value with type
-
{
-  "@context": {
-    "modified": {
-      "@id": "http://purl.org/dc/terms/modified"
-    }
-  },
-  ...
-  "modified": {
-    "@value": "2010-05-29T14:17:39+02:00",
-    "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
-  }
-  ...
-}
-
- -

Both examples above would generate the value - 2010-05-29T14:17:39+02:00 with the type - http://www.w3.org/2001/XMLSchema#dateTime. Note that it is - also possible to use a term or a compact IRI to - express the value of a type.

- -
Note

The @type keyword is also used to associate a type - with a node. The concept of a node type and - a value type are different.

- -

A node type specifies the type of thing - that is being described, like a person, place, event, or web page. A - value type specifies the data type of a particular value, such - as an integer, a floating point number, or a date.

- -
-
Example 42: Example demonstrating the context-sensitivity for @type
-
{
-  ...
-  "@id": "http://example.org/posts#TripToWestVirginia",
-  "@type": "http://schema.org/BlogPosting",  ← This is a node type
-  "modified": {
-    "@value": "2010-05-29T14:17:39+02:00",
-    "@type": "http://www.w3.org/2001/XMLSchema#dateTime"  ← This is a value type
-  }
-  ...
-}
-
- - - -

The first use of @type associates a node type - (http://schema.org/BlogPosting) with the node, - which is expressed using the @id keyword. - The second use of @type associates a value type - (http://www.w3.org/2001/XMLSchema#dateTime) with the - value expressed using the @value keyword. As a - general rule, when @value and @type are used in - the same dictionary, the @type - keyword is expressing a value type. - Otherwise, the @type keyword is expressing a - node type. The example above expresses the following data:

- - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.org/posts#TripToWestVirginiardf:typeschema:BlogPosting-
http://example.org/posts#TripToWestVirginiadc:modified2010-05-29T14:17:39+02:00xsd:dateTime
-
- -

4.2.2 Type Coercion §

This section is non-normative.

- -

JSON-LD supports the coercion of values to particular data types. -Type coercion allows someone deploying JSON-LD to coerce the incoming or -outgoing values to the proper data type based on a mapping of data type IRIs to -terms. Using type coercion, value representation is preserved without requiring -the data type to be specified with each piece of data.

- -

Type coercion is specified within an expanded term definition - using the @type key. The value of this key expands to an IRI. - Alternatively, the keyword @id or @vocab may be used - as value to indicate that within the body of a JSON-LD document, a string value of a - term coerced to @id or @vocab is to be interpreted as an - IRI. The difference between @id and @vocab is how values are expanded - to absolute IRIs. @vocab first tries to expand the value - by interpreting it as term. If no matching term is found in the - active context, it tries to expand it as compact IRI or absolute IRI - if there's a colon in the value; otherwise, it will expand the value using the - active context's vocabulary mapping, if present. - Values coerced to @id in contrast are expanded as - compact IRI or absolute IRI if a colon is present; otherwise, they are interpreted - as relative IRI.

- -

Terms or compact IRIs used as the value of a - @type key may be defined within the same context. This means that one may specify a - term like xsd and then use xsd:integer within the same - context definition.

- -

The example below demonstrates how a JSON-LD author can coerce values to -typed values and IRIs.

- -
-
Example 43: Expanded term definition with types
-
{
-  "@context": {
-    "xsd": "http://www.w3.org/2001/XMLSchema#",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "age": {
-      "@id": "http://xmlns.com/foaf/0.1/age",
-      "@type": "xsd:integer"
-    },
-    "homepage": {
-      "@id": "http://xmlns.com/foaf/0.1/homepage",
-      "@type": "@id"
-    }
-  },
-  "@id": "http://example.com/people#john",
-  "name": "John Smith",
-  "age": "41",
-  "homepage": [
-    "http://personal.example.org/",
-    "http://work.example.com/jsmith/"
-  ]
-}
-
- -

The example shown above would generate the following data:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueValue Type
http://example.com/people#johnfoaf:nameJohn Smith 
http://example.com/people#johnfoaf:age41xsd:integer
http://example.com/people#johnfoaf:homepagehttp://personal.example.org/IRI
http://work.example.com/jsmith/IRI
- -

Terms may also be defined using absolute IRIs - or compact IRIs. This allows coercion rules - to be applied to keys which are not represented as a simple term. - For example:

- -
-
Example 44: Term definitions using compact and absolute IRIs
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/",
-    "foaf:age": {
-      "@id": "http://xmlns.com/foaf/0.1/age",
-      "@type": "xsd:integer"
-    },
-    "http://xmlns.com/foaf/0.1/homepage": {
-      "@type": "@id"
-    }
-  },
-  "foaf:name": "John Smith",
-  "foaf:age": "41",
-  "http://xmlns.com/foaf/0.1/homepage": [
-    "http://personal.example.org/",
-    "http://work.example.com/jsmith/"
-  ]
-}
-
- -

In this case the @id definition in the term definition is optional. - If it does exist, the compact IRI or IRI representing - the term will always be expanded to IRI defined by the @id - key—regardless of whether a prefix is defined or not.

- -

Type coercion is always performed using the unexpanded value of the key. In the - example above, that means that type coercion is done looking for foaf:age - in the active context and not for the corresponding, expanded - IRI http://xmlns.com/foaf/0.1/age.

- -
Note

Keys in the context are treated as terms for the purpose of - expansion and value coercion. At times, this may result in multiple representations for the same expanded IRI. - For example, one could specify that dog and cat both expanded to http://example.com/vocab#animal. - Doing this could be useful for establishing different type coercion or language specification rules. It also allows a compact IRI (or even an - absolute IRI) to be defined as something else entirely. For example, one could specify that - the term http://example.org/zoo should expand to - http://example.org/river, but this usage is discouraged because it would lead to a - great deal of confusion among developers attempting to understand the JSON-LD document.

-
- -

4.2.3 String Internationalization §

This section is non-normative.

- -

At times, it is important to annotate a string - with its language. In JSON-LD this is possible in a variety of ways. - First, it is possible to define a default language for a JSON-LD document - by setting the @language key in the context:

- -
-
Example 45: Setting the default language of a JSON-LD document
-
{
-  "@context": {
-    ...
-    "@language": "ja"
-  },
-  "name": "花澄",
-  "occupation": "科学者"
-}
-
- -

The example above would associate the ja language - code with the two strings 花澄 and 科学者. - Languages codes are defined in [BCP47]. The default language applies to all - string values that are not type coerced.

- -

To clear the default language for a subtree, @language can - be set to null in a local context as follows:

- -
-
Example 46: Clearing default language
-
{
-  "@context": {
-    ...
-    "@language": "ja"
-  },
-  "name": "花澄",
-  "details": {
-    "@context": {
-      "@language": null
-    },
-    "occupation": "Ninja"
-  }
-}
-
- -

Second, it is possible to associate a language with a specific term - using an expanded term definition:

- -
-
Example 47: Expanded term definition with language
-
{
-  "@context": {
-    ...
-    "ex": "http://example.com/vocab/",
-    "@language": "ja",
-    "name": { "@id": "ex:name", "@language": null },
-    "occupation": { "@id": "ex:occupation" },
-    "occupation_en": { "@id": "ex:occupation", "@language": "en" },
-    "occupation_cs": { "@id": "ex:occupation", "@language": "cs" }
-  },
-  "name": "Yagyū Muneyoshi",
-  "occupation": "忍者",
-  "occupation_en": "Ninja",
-  "occupation_cs": "Nindža",
-  ...
-}
-
- -

The example above would associate 忍者 with the specified default - language code ja, Ninja with the language code - en, and Nindža with the language code cs. - The value of name, Yagyū Muneyoshi wouldn't be - associated with any language code since @language was reset to - null in the expanded term definition.

- -
Note

Language associations are only applied to plain - strings. Typed values - or values that are subject to type coercion - are not language tagged.

- -

Just as in the example above, systems often need to express the value of a - property in multiple languages. Typically, such systems also try to ensure that - developers have a programmatically easy way to navigate the data structures for - the language-specific data. In this case, language maps - may be utilized.

- -
-
Example 48: Language map expressing a property in three languages
-
{
-  "@context": {
-    ...
-    "occupation": { "@id": "ex:occupation", "@container": "@language" }
-  },
-  "name": "Yagyū Muneyoshi",
-  "occupation": {
-    "ja": "忍者",
-    "en": "Ninja",
-    "cs": "Nindža"
-  }
-  ...
-}
-
- -

The example above expresses exactly the same information as the previous - example but consolidates all values in a single property. To access the - value in a specific language in a programming language supporting dot-notation - accessors for object properties, a developer may use the - property.language pattern. For example, to access the occupation - in English, a developer would use the following code snippet: - obj.occupation.en.

- -

Third, it is possible to override the default language by using a - value object:

- -
-
Example 49: Overriding default language using an expanded value
-
{
-  "@context": {
-    ...
-    "@language": "ja"
-  },
-  "name": "花澄",
-  "occupation": {
-    "@value": "Scientist",
-    "@language": "en"
-  }
-}
-
- -

This makes it possible to specify a plain string by omitting the - @language tag or setting it to null when expressing - it using a value object:

- -
-
Example 50: Removing language information using an expanded value
-
{
-  "@context": {
-    ...
-    "@language": "ja"
-  },
-  "name": {
-    "@value": "Frank"
-  },
-  "occupation": {
-    "@value": "Ninja",
-    "@language": "en"
-  },
-  "speciality": "手裏剣"
-}
-
- -

See section 9.6 Language Maps for a description - of using language maps to set the language of mapped values.

-
- -
- -

4.3 Value Ordering §

This section is non-normative.

- -

A JSON-LD author can express multiple values in a compact way by using - arrays. Since graphs do not describe ordering for links - between nodes, arrays in JSON-LD do not provide an ordering of the - contained elements by default. This is exactly the opposite from regular JSON - arrays, which are ordered by default. For example, consider the following - simple document:

- -
-
Example 51: Multiple values with no inherent order
-
{
-  ...
-  "@id": "http://example.org/people#joebob",
-  "foaf:nick": [ "joe", "bob", "JB" ],
-  ...
-}
-
- -

The example shown above would result in the following data being generated, - each relating the node to an individual value, with no inherent order:

- - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nickjoe
http://example.org/people#joebobfoaf:nickbob
http://example.org/people#joebobfoaf:nickJB
- -

Multiple values may also be expressed using the expanded form:

- -
-
Example 52: Using an expanded form to set multiple values
-
{
-  "@id": "http://example.org/articles/8",
-  "dc:title":  [
-    {
-      "@value": "Das Kapital",
-      "@language": "de"
-    },
-    {
-      "@value": "Capital",
-      "@language": "en"
-    }
-  ]
-}
-
- -

The example shown above would generate the following data, again with - no inherent order:

- - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguage
http://example.org/articles/8dc:titleDas Kapitalde
http://example.org/articles/8dc:titleCapitalen
- -

Although multiple values of a property are typically of the same type, - JSON-LD places no restriction on this, and a property may have values - of different types:

- -
-
Example 53: Multiple array values of different types
-
{
-  "@id": "http://example.org/people#michael",
-  "dc:name": [
-    "Michael",
-    {"@value": "Mike"},
-    {"@value": "Miguel", "@language": "es"},
-    { "@id": "https://www.wikidata.org/wiki/Q4927524" },
-    42
-  ]
-}
-
- -

The example shown above would generate the following data, also with - no inherent order:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValueLanguageValue Type
http://example.org/people#michaeldc:nameMichael
http://example.org/people#michaeldc:nameMike
http://example.org/people#michaeldc:nameMigueles
http://example.org/people#michaeldc:namehttps://www.wikidata.org/wiki/Q4927524
http://example.org/people#michaeldc:name42xsd:integer
- -

4.3.1 Lists §

This section is non-normative.

-

As the notion of ordered collections is rather important in data - modeling, it is useful to have specific language support. In JSON-LD, - a list may be represented using the @list keyword as follows:

- -
-
Example 54: An ordered collection of values in JSON-LD
-
{
-  ...
-  "@id": "http://example.org/people#joebob",
-  "foaf:nick": {
-    "@list": [ "joe", "bob", "jaybee" ]
-  },
-  ...
-}
-
- -

This describes the use of this array as being ordered, - and order is maintained when processing a document. If every use of a given multi-valued - property is a list, this may be abbreviated by setting @container - to @list in the context:

- -
-
Example 55: Specifying that a collection is ordered in the context
-
{
-  "@context": {
-    ...
-    "nick": {
-      "@id": "http://xmlns.com/foaf/0.1/nick",
-      "@container": "@list"
-    }
-  },
-  ...
-  "@id": "http://example.org/people#joebob",
-  "nick": [ "joe", "bob", "jaybee" ],
-  ...
-}
-
- -

The implementation of lists in RDF depends on linking anonymous nodes - together using the properties rdf:first and - rdf:rest, with the end of the list defined as the resource - rdf:nil. This can be represented as triples, as the following - example shows:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.org/people#joebobfoaf:nick_:b0
_:b0rdf:firstjoe
_:b0rdf:rest_:b1
_:b1rdf:firstbob
_:b1rdf:rest_:b2
_:b2rdf:firstjaybee
_:b2rdf:restrdf:nil
- -

JSON-LD provides a syntactic shortcut for these lists. In Turtle, the graph would be expressed as follows:

- -
-
Example 56: An ordered collection of values in Turtle
-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://example.org/people#joebob> foaf:nick ("joe" "bob" "jaybee") .
-
- -

In JSON-LD 1.1, lists of lists, where the value of - a list object, may itself be a list object, are - fully supported. For example, in GeoJSON (see [RFC7946]), - coordinates are an ordered list of positions, which are - represented as an array of two or more numbers:

- -
-
Example 57: Coordinates expressed in GeoJSON
-
{
-  "type": "Feature",
-  "bbox": [-10.0, -10.0, 10.0, 10.0],
-  "geometry": {
-    "type": "Polygon",
-    "coordinates": [
-        [
-            [-10.0, -10.0],
-            [10.0, -10.0],
-            [10.0, 10.0],
-            [-10.0, -10.0]
-        ]
-    ]
-  }
-  //...
-}
-
- -

For these examples, it's important that values - expressed within bbox and coordinates maintain their order, - which requires the use of embedded list structures. In JSON-LD 1.1, we can - express this using recursive lists, by simply adding the appropriate context - definion:

- -
-
Example 58: Coordinates expressed in JSON-LD
-
{
-  "@context": {
-    "@vocab": "https://purl.org/geojson/vocab#",
-    "type": "@type",
-    "bbox": {"@container": "@list"},
-    "coordinates": {"@container": "@list"}
-  },
-  "type": "Feature",
-  "bbox": [-10.0, -10.0, 10.0, 10.0],
-  "geometry": {
-    "type": "Polygon",
-    "coordinates": [
-        [
-            [-10.0, -10.0],
-            [10.0, -10.0],
-            [10.0, 10.0],
-            [-10.0, -10.0]
-        ]
-    ]
-  }
-  //...
-}
-
- -

This is equivalent to the expanded form, which uses list objects:

- -
-
Example 59: Coordinates expressed in JSON-LD (expanded)
-
[{
-  "@type": ["https://purl.org/geojson/vocab#Feature"],
-  "https://purl.org/geojson/vocab#bbox": [{
-    "@list": [
-      {"@value": -10.0},
-      {"@value": -10.0},
-      {"@value": 10.0},
-      {"@value": 10.0}
-    ]
-  }],
-  "https://purl.org/geojson/vocab#geometry": [{
-    "@type": ["https://purl.org/geojson/vocab#Polygon"],
-    "https://purl.org/geojson/vocab#coordinates": [{
-      "@list": [{
-        "@list": [
-          {"@list": [{"@value": -10.0}, {"@value": -10.0}]},
-          {"@list": [{"@value": 10.0}, {"@value": -10.0}]},
-          {"@list": [{"@value": 10.0}, {"@value": 10.0}]},
-          {"@list": [{"@value": -10.0}, {"@value": -10.0}]}
-        ]
-      }]
-    }]
-  }]
-}]
-
- -

Note that coordinates includes three levels of lists. - When expressed in Turtle, this would be the following:

- -
-
Example 60: Coordinates expressed in Turtle
-
@prefix geojson: <https://purl.org/geojson/vocab#>.
-
-[
-  a geojson:Feature ;
-  geojson:bbox (-1.0e1 -1.0e1 1.0e1 1.0e1) ;
-  geojson:geometry [
-    a geojson:Polygon ;
-    geojson:coordinates (
-      (
-        (-1.0e1 -1.0e1)
-        (1.0e1 -1.0e1)
-        (1.0e1 1.0e1)
-        (-1.0e1 -1.0e1)
-      )
-    )
-  ]
-] .
-
- -

Values of terms associated with an @list container - are always represented in the form of an array, - even if there is just a single value or no value at all.

-
- -

4.3.2 Sets §

This section is non-normative.

- -

While @list is used to describe ordered lists, - the @set keyword is used to describe unordered sets. - The use of @set in the body of a JSON-LD document - is optimized away when processing the document, as it is just syntactic - sugar. However, @set is helpful when used within the context - of a document. - Values of terms associated with an @set container - are always represented in the form of an array, - even if there is just a single value that would otherwise be optimized to - a non-array form in compact form (see - section 5.2 Compacted Document Form). This makes post-processing of - JSON-LD documents easier as the data is always in array form, even if the - array only contains a single value.

- -
-
Example 61: An unordered collection of values in JSON-LD
-
{
-  ...
-  "@id": "http://example.org/people#joebob",
-  "foaf:nick": {
-    "@set": [ "joe", "bob", "jaybee" ]
-  },
-  ...
-}
-
- -

This describes the use of this array as being unordered, - and order is maintained when processing a document. By default, - arrays of values are unordered, but this may be made explicit by - setting @container to @set in the context: - -

-
Example 62: Specifying that a collection is unordered in the context
-
{
-  "@context": {
-    ...
-    "nick": {
-      "@id": "http://xmlns.com/foaf/0.1/nick",
-      "@container": "@set"
-    }
-  },
-  ...
-  "@id": "http://example.org/people#joebob",
-  "nick": [ "joe", "bob", "jaybee" ],
-  ...
-}
-
- -

Since JSON-LD 1.1, the @set keyword may be - combined with other container specifications within an expanded term - definition to similarly cause compacted values of indexes to be consistently - represented using arrays. See section 4.6 Indexed Values for a further discussion.

-
-
- - -

4.4 Nested Properties §

This section is non-normative.

- -

Many JSON APIs separate properties from their entities using an - intermediate object; in JSON-LD these are called nested properties. - For example, a set of possible labels may be grouped - under a common property:

-
-
Example 63: Nested properties
-
{
-  "@context": {
-    "@version": 1.1,
-    "skos": "http://www.w3.org/2004/02/skos/core#",
-    "labels": "@nest",
-    "main_label": {"@id": "skos:prefLabel"},
-    "other_label": {"@id": "skos:altLabel"},
-    "homepage": {"@id": "http://schema.org/description", "@type": "@id"}
-  },
-  "@id": "http://example.org/myresource",
-  "homepage": "http://example.org",
-  "labels": {
-     "main_label": "This is the main label for my resource",
-     "other_label": "This is the other label"
-  }
-}
-
- -

By defining labels using the keyword @nest, - a JSON-LD processor will ignore the nesting created by using the - labels property and process the contents as if it were declared - directly within containing object. In this case, the labels - property is semantically meaningless. Defining it as equivalent to - @nest causes it to be ignored when expanding, making it - equivalent to the following:

- -
-
Example 64: Nested properties folded into containing object
-
{
-  "@context": {
-    "skos": "http://www.w3.org/2004/02/skos/core#",
-    "main_label": {"@id": "skos:prefLabel"},
-    "other_label": {"@id": "skos:altLabel"},
-    "homepage": {"@id": "http://schema.org/description", "@type": "@id"}
-  },
-  "@id": "http://example.org/myresource",
-  "homepage": "http://example.org",
-  "main_label": "This is the main label for my resource",
-  "other_label": "This is the other label"
-}
-
- -

Similarly, node objects may contain a @nest property to - reference a term aliased to @nest which causes such - values to be nested under that aliased term.

-
-
Example 65: Defining property nesting
-
{
-  "@context": {
-    "@version": 1.1,
-    "skos": "http://www.w3.org/2004/02/skos/core#",
-    "labels": "@nest",
-    "main_label": {"@id": "skos:prefLabel", "@nest": "labels"},
-    "other_label": {"@id": "skos:altLabel", "@nest": "labels"},
-    "homepage": {"@id": "http://schema.org/description", "@type": "@id"}
-  },
-  "@id": "http://example.org/myresource",
-  "homepage": "http://example.org",
-  "labels": {
-     "main_label": "This is the main label for my resource",
-     "other_label": "This is the other label"
-  }
-}
-
- -
Note

Nested properties are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
- -

4.5 Embedding §

This section is non-normative.

- -

Embedding is a JSON-LD feature that allows an author to - use node objects as - property values. This is a commonly used mechanism for - creating a parent-child relationship between two nodes.

- -

Without embedding, node objects can be linked by referencing the - identifier of another node object. For example:

- -
-
Example 66: Referencing node objects
-
{
-  "@context": {
-    "@vocab": "http://schema.org/",
-    "knows": {"@type": "@id"}
-  },
-  "@graph": [{
-    "name": "Manu Sporny",
-    "@type": "Person",
-    "knows": "http://greggkellogg.net/foaf#me"
-  }, {
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@type": "Person",
-    "name": "Gregg Kellogg"
-  }]
-}
-
- -

The previous example describes two node objects, for Manu and Gregg, with - the knows property defined to treat string values as identifiers. - Embedding allows the node object for Gregg to be embedded as a value - of the knows property:

- -
-
Example 67: Embedding a node object as property value of another node object
-
{
-  "@context": {
-    "@vocab": "http://schema.org/"
-  },
-  "name": "Manu Sporny",
-  "knows": {
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@type": "Person",
-    "name": "Gregg Kellogg"
-  }
-}
-
- -

A node object, like the one used above, may be used in - any value position in the body of a JSON-LD document. Note that type coercion of the knows property - is not required, as the value is not a string.

- - -

While it is considered a best practice to identify nodes in a graph, - at times this is impractical. In the data model, nodes without an explicit - identifier are called blank nodes, which can be represented in a - serialization such as JSON-LD using a blank node identifier. In the - previous example, the top-level node for Manu does not have an identifier, - and does not need one to describe it within the data model. However, if we - were to want to describe a knows relationship from Gregg to Manu, - we would need to introduce a blank node identifier - (here _:b0).

- -
-
Example 68: Referencing an unidentified node
-
{
-  "@context": {
-    "@vocab": "http://schema.org/"
-  },
-  "@id": "_:b0",
-  "name": "Manu Sporny",
-  "knows": {
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@type": "Person",
-    "name": "Gregg Kellogg",
-    "knows": {"@id": "_:b0"}
-  }
-}
-
- -

Blank node identifiers may be automatically introduced by algorithms such as flattening, but they are also useful for authors to describe such relationships directly.

- - -

4.5.1 Identifying Blank Nodes §

This section is non-normative.

- -

At times, it becomes necessary to be able to express information without - being able to uniquely identify the node with an IRI. - This type of node is called a blank node. JSON-LD does not require - all nodes to be identified using @id. However, some graph topologies - may require identifiers to be serializable. Graphs containing loops, e.g., cannot - be serialized using embedding alone, @id must be used to connect the nodes. - In these situations, one can use blank node identifiers, - which look like IRIs using an underscore (_) - as scheme. This allows one to reference the node locally within the document, but - makes it impossible to reference the node from an external document. The - blank node identifier is scoped to the document in which it is used.

- -
-
Example 69: Specifying a local blank node identifier
-
{
-   ...
-   "@id": "_:n1",
-   "name": "Secret Agent 1",
-   "knows": {
-     "name": "Secret Agent 2",
-     "knows": { "@id": "_:n1" }
-   }
-}
-
- -

The example above contains information about two secret agents that cannot be identified - with an IRI. While expressing that agent 1 knows agent 2 - is possible without using blank node identifiers, - it is necessary to assign agent 1 an identifier so that it can be referenced - from agent 2.

-

It is worth noting that blank node identifiers may be relabeled during processing. - If a developer finds that they refer to the blank node more than once, - they should consider naming the node using a dereferenceable IRI so that - it can also be referenced from other documents.

-
-
- -

4.6 Indexed Values §

This section is non-normative.

- -

Sometimes multiple property values need to be accessed - in a more direct fashion than iterating though multiple array values. JSON-LD - provides an indexing mechanism to allow the use of an intermediate dictionary - to associate specific indexes with associated values.

- -
-
Data Indexing
As described in section 4.6.1 Data Indexing, - data indexing allows an arbitrary to reference a node or value.
-
Language Indexing
As described in section 4.6.2 Language Indexing, - language indexing allows a language to reference a string and be - interpreted as the language associated with that string.
-
Node Identifier Indexing
As described in section 4.6.3 Node Identifier Indexing, - node indentifier indexing allows an IRI to reference a node - and be interpreted as the identifier of that node.
-
Node Type Indexing
As described in section 4.6.4 Node Type Indexing, - node type indexing allows an IRI to reference a node - and be interpreted as a type of that node.
-
- -

See section 4.8 Named Graphs for other uses of indexing in JSON-LD.

- -

4.6.1 Data Indexing §

This section is non-normative.

- -

Databases are typically used to make access to - data more efficient. Developers often extend this sort of functionality into - their application data to deliver similar performance gains. Often this - data does not have any meaning from a Linked Data standpoint, but is - still useful for an application.

- -

JSON-LD introduces the notion of index maps - that can be used to structure data into a form that is - more efficient to access. The data indexing feature allows an author to - structure data using a simple key-value map where the keys do not map - to IRIs. This enables direct access to data - instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @index keyword with a - @container declaration in the context:

- -
-
Example 70: Indexing data in JSON-LD
-
{
-  "@context": {
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "body": "schema:articleBody",
-    "words": "schema:wordCount",
-    "post": {
-      "@id": "schema:blogPost",
-      "@container": "@index"
-    }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "en": {
-      "@id": "http://example.com/posts/1/en",
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    },
-    "de": {
-      "@id": "http://example.com/posts/1/de",
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    }
-  }
-}
-
- -

In the example above, the post term has - been marked as an index map. The en and - de keys will be ignored semantically, but preserved - syntactically, by the JSON-LD Processor. This allows a developer to - access the German version of the post using the - following code snippet: obj.post.de.

- -

The interpretation of the data above is expressed in - the table below. Note how the index keys do not appear in the Linked Data - below, but would continue to exist if the document were compacted or - expanded (see section 5.2 Compacted Document Form and - section 5.1 Expanded Document Form) using a JSON-LD processor:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SubjectPropertyValue
http://example.com/rdf:typeschema:Blog
http://example.com/schema:nameWorld Financial News
http://example.com/schema:blogPosthttp://example.com/posts/1/en
http://example.com/schema:blogPosthttp://example.com/posts/1/de
http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
http://example.com/posts/1/enschema:wordCount1539
http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
http://example.com/posts/1/deschema:wordCount1204
- -

The value of @container can also - be an array containing both @index and @set. - When compacting, this ensures that a JSON-LD Processor will use - the array form for all values of indexes.

- -
-
Example 71: Indexing data in JSON-LD with @set representation
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "body": "schema:articleBody",
-    "words": "schema:wordCount",
-    "post": {
-      "@id": "schema:blogPost",
-      "@container": ["@index", "@set"]
-    }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "en": [{
-      "@id": "http://example.com/posts/1/en",
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    }],
-    "de": [{
-      "@id": "http://example.com/posts/1/de",
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    }]
-  }
-}
-
- -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - data which does not have an associated index, which is useful to maintain - a normalized representation.

- -
-
Example 72: Indexing data using @none
-
{
-  "@context": {
-     "schema": "http://schema.org/",
-     "name": "schema:name",
-     "body": "schema:articleBody",
-     "words": "schema:wordCount",
-     "post": {
-       "@id": "schema:blogPost",
-       "@container": "@index"
-     }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "en": {
-      "@id": "http://example.com/posts/1/en",
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    },
-    "de": {
-      "@id": "http://example.com/posts/1/de",
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    },
-    "@none": {
-      "@id": "http://example.com/posts/1/no-language",
-      "body": "Unindexed description",
-      "words": 20
-    }
-  }
-}
-
-
-

4.6.2 Language Indexing §

This section is non-normative.

- -

JSON which includes string values in multiple languages may be - represented using a language map to allow for easily - indexing property values by language tag. This enables direct access to - language values instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @language keyword with a - @container declaration in the context:

- -
-
Example 73: Indexing languaged-tagged strings in JSON-LD
-
{
-  "@context": {
-    "vocab": "http://example.com/vocab/",
-    "label": {
-      "@id": "vocab:label",
-      "@container": "@language"
-    }
-  },
-  "@id": "http://example.com/queen",
-  "label": {
-    "en": "The Queen",
-    "de": [ "Die Königin", "Ihre Majestät" ]
-  }
-}
-
- -

In the example above, the label term has - been marked as an language map. The en and - de keys are implicitly associated with their respective - values by the JSON-LD Processor. This allows a developer to - access the German version of the label using the - following code snippet: obj.label.de.

- -

The value of @container can also - be an array containing both @language and @set. - When compacting, this ensures that a JSON-LD Processor will use - the array form for all values of language tags.

- -
-
Example 74: Indexing languaged-tagged strings in JSON-LD with @set representation
-
{
-  "@context": {
-    "@version": 1.1,
-    "vocab": "http://example.com/vocab/",
-    "label": {
-      "@id": "vocab:label",
-      "@container": ["@language", "@set"]
-    }
-  },
-  "@id": "http://example.com/queen",
-  "label": {
-    "en": ["The Queen"],
-    "de": [ "Die Königin", "Ihre Majestät" ]
-  }
-}
-
- -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - data which does not have a language, which is useful to maintain - a normalized representation.

- -
-
Example 75: Indexing languaged-tagged strings using @none for no language
-
{
-  "@context": {
-    "vocab": "http://example.com/vocab/",
-    "label": {
-      "@id": "vocab:label",
-      "@container": "@language"
-    }
-  },
-  "@id": "http://example.com/queen",
-  "label": {
-    "en": "The Queen",
-    "de": [ "Die Königin", "Ihre Majestät" ],
-    "@none": "The Queen"
-  }
-}
-
-
-

4.6.3 Node Identifier Indexing §

This section is non-normative.

- -

In addition to index maps, JSON-LD introduces the notion of id maps - for structuring data. The id indexing feature allows an author to - structure data using a simple key-value map where the keys map - to IRIs. This enables direct access to associated node objects - instead of having to scan an array in search of a specific item. - In JSON-LD such data can be specified by associating the - @id keyword with a - @container declaration in the context:

- -
-
Example 76: Indexing data in JSON-LD by node identifiers
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "body": "schema:articleBody",
-    "words": "schema:wordCount",
-    "post": {
-      "@id": "schema:blogPost",
-      "@container": "@id"
-    }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "http://example.com/posts/1/en": {
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    },
-    "http://example.com/posts/1/de": {
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    }
-  }
-}
-
- -

In the example above, the post term has - been marked as an id map. The http://example.com/posts/1/en and - http://example.com/posts/1/de keys will be interpreted - as the @id property of the node object value.

- -

The interpretation of the data above is exactly the same - as that in section 4.6.1 Data Indexing - using a JSON-LD processor.

- -

The value of @container can also - be an array containing both @id and @set. - When compacting, this ensures that a JSON-LD processor will use - the array form for all values of node identifiers.

- -
-
Example 77: Indexing data in JSON-LD by node identifiers with @set representation
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "body": "schema:articleBody",
-    "words": "schema:wordCount",
-    "post": {
-      "@id": "schema:blogPost",
-      "@container": ["@id", "@set"]
-    }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "http://example.com/posts/1/en": [{
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    }],
-    "http://example.com/posts/1/de": [{
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    }]
-  }
-}
-
- -

The special index @none is used for indexing - node objects which do not have an @id, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none, such as the term none - used in the example below.

- -
-
Example 78: Indexing data in JSON-LD by node identifiers using @none
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "body": "schema:articleBody",
-    "words": "schema:wordCount",
-    "post": {
-      "@id": "schema:blogPost",
-      "@container": "@id"
-    },
-    "none": "@none"
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-    "http://example.com/posts/1/en": {
-      "body": "World commodities were up today with heavy trading of crude oil...",
-      "words": 1539
-    },
-    "http://example.com/posts/1/de": {
-      "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-      "words": 1204
-    },
-    "none": {
-      "body": "Description for object within an @id",
-      "words": 20
-    }
-  }
-}
-
- -
Note

Id maps are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-

4.6.4 Node Type Indexing §

This section is non-normative.

- -

In addition to id and index maps, JSON-LD introduces the notion of type maps - for structuring data. The type indexing feature allows an author to - structure data using a simple key-value map where the keys map - to IRIs. This enables data to be structured based on the @type - of specific node objects. - In JSON-LD such data can be specified by associating the - @type keyword with a - @container declaration in the context:

- -
-
Example 79: Indexing data in JSON-LD by type
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "affiliation": {
-      "@id": "schema:affiliation",
-      "@container": "@type"
-    }
-  },
-  "name": "Manu Sporny",
-  "affiliation": {
-    "schema:Corporation": {
-      "@id": "https://digitalbazaar.com/",
-      "name": "Digital Bazaar"
-    },
-    "schema:ProfessionalService": {
-      "@id": "https://spec-ops.io",
-      "name": "Spec-Ops"
-    }
-  }
-}
-
- -

In the example above, the affiliation term has - been marked as an type map. The schema:Corporation and - schema:ProfessionalService keys will be interpreted - as the @type property of the node object value.

- -

The value of @container can also - be an array containing both @type and @set. - When compacting, this ensures that a JSON-LD processor will use - the array form for all values of types.

- -
-
Example 80: Indexing data in JSON-LD by type with @set representation
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "affiliation": {
-      "@id": "schema:affiliation",
-      "@container": ["@type", "@set"]
-    }
-  },
-  "name": "Manu Sporny",
-  "affiliation": {
-    "schema:Corporation": [{
-      "@id": "https://digitalbazaar.com/",
-      "name": "Digital Bazaar"
-    }],
-    "schema:ProfessionalService": [{
-      "@id": "https://spec-ops.io",
-      "name": "Spec-Ops"
-    }]
-  }
-}
-
- -

The special index @none is used for indexing - node objects which do not have an @type, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none, such as the term none - used in the example below.

- -
-
Example 81: Indexing data in JSON-LD by type using @none
-
{
-  "@context": {
-    "@version": 1.1,
-    "schema": "http://schema.org/",
-    "name": "schema:name",
-    "affiliation": {
-      "@id": "schema:affiliation",
-      "@container": "@type"
-    },
-    "none": "@none"
-  },
-  "name": "Manu Sporny",
-  "affiliation": {
-    "schema:Corporation": {
-      "@id": "https://digitalbazaar.com/",
-      "name": "Digital Bazaar"
-    },
-    "schema:ProfessionalService": {
-      "@id": "https://spec-ops.io",
-      "name": "Spec-Ops"
-    },
-    "none": {
-      "@id": "http://greggkellogg.net/",
-      "name": "Gregg Kellogg"
-    }
-  }
-}
-
- -

As with id maps, when used with @type, a container may also - include @set to ensure that key values are always contained in an array.

- -
Note

Type maps are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
- -

4.7 Reverse Properties §

This section is non-normative.

- -

JSON-LD serializes directed graphs. That means that - every property points from a node to another node - or value. However, in some cases, it is desirable - to serialize in the reverse direction. Consider for example the case where a person - and its children should be described in a document. If the used vocabulary does not - provide a children property but just a parent - property, every node representing a child would have to - be expressed with a property pointing to the parent as in the following - example.

- -
-
Example 82: A document with children linking to their parent
-
[
-  {
-    "@id": "#homer",
-    "http://example.com/vocab#name": "Homer"
-  }, {
-    "@id": "#bart",
-    "http://example.com/vocab#name": "Bart",
-    "http://example.com/vocab#parent": { "@id": "#homer" }
-  }, {
-    "@id": "#lisa",
-    "http://example.com/vocab#name": "Lisa",
-    "http://example.com/vocab#parent": { "@id": "#homer" }
-  }
-]
-
- -

Expressing such data is much simpler by using JSON-LD's @reverse - keyword:

- -
-
Example 83: A person and its children using a reverse property
-
{
-  "@id": "#homer",
-  "http://example.com/vocab#name": "Homer",
-  "@reverse": {
-    "http://example.com/vocab#parent": [
-      {
-        "@id": "#bart",
-        "http://example.com/vocab#name": "Bart"
-      }, {
-        "@id": "#lisa",
-        "http://example.com/vocab#name": "Lisa"
-      }
-    ]
-  }
-}
-
- -

The @reverse keyword can also be used in - expanded term definitions - to create reverse properties as shown in the following example:

- - -
-
Example 84: Using @reverse to define reverse properties
-
{
-  "@context": { "name": "http://example.com/vocab#name",
-    "children": { "@reverse": "http://example.com/vocab#parent" }
-  },
-  "@id": "#homer",
-  "name": "Homer",
-  "children": [
-    {
-      "@id": "#bart",
-      "name": "Bart"
-    }, {
-      "@id": "#lisa",
-      "name": "Lisa"
-    }
-  ]
-}
-
-
- -

4.8 Named Graphs §

This section is non-normative.

- -

At times, it is necessary to make statements about a graph - itself, rather than just a single node. This can be done by - grouping a set of nodes using the @graph - keyword. A developer may also name data expressed using the - @graph keyword by pairing it with an - @id keyword as shown in the following example:

- -
-
Example 85: Identifying and making statements about a graph
-
{
-  "@context": {
-    "generatedAt": {
-      "@id": "http://www.w3.org/ns/prov#generatedAtTime",
-      "@type": "http://www.w3.org/2001/XMLSchema#date"
-    },
-    "Person": "http://xmlns.com/foaf/0.1/Person",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows"
-  },
-  "@id": "http://example.org/foaf-graph",
-  "generatedAt": "2012-04-09",
-  "@graph": [
-    {
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": "Person",
-      "name": "Manu Sporny",
-      "knows": "http://greggkellogg.net/foaf#me"
-    }, {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": "Person",
-      "name": "Gregg Kellogg",
-      "knows": "http://manu.sporny.org/about#manu"
-    }
-  ]
-}
-
- -

The example above expresses a named graph that is identified - by the IRI http://example.org/foaf-graph. That - graph is composed of the statements about Manu and Gregg. Metadata about - the graph itself is expressed via the generatedAt property, - which specifies when the graph was generated. An alternative view of the - information above is represented in table form below:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
http://example.org/foaf-graphhttp://manu.sporny.org/about#manuxsd:typefoaf:Person
http://example.org/foaf-graphhttp://manu.sporny.org/about#manufoaf:nameManu Sporny
http://example.org/foaf-graphhttp://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#mexsd:typefoaf:Person
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg
http://example.org/foaf-graphhttp://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu
- -

When a JSON-LD document's top-level structure is an - dictionary that contains no other - keys than @graph and - optionally @context (properties that are not mapped to an - IRI or a keyword are ignored), - @graph is considered to express the otherwise implicit - default graph. This mechanism can be useful when a number - of nodes exist at the document's top level that - share the same context, which is, e.g., the case when a - document is flattened. The - @graph keyword collects such nodes in an array - and allows the use of a shared context.

- -
-
Example 86: Using @graph to explicitly express the default graph
-
{
-  "@context": {...},
-  "@graph": [
-    {
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": "foaf:Person",
-      "name": "Manu Sporny",
-      "knows": "http://greggkellogg.net/foaf#me"
-    }, {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": "foaf:Person",
-      "name": "Gregg Kellogg",
-      "knows": "http://manu.sporny.org/about#manu"
-    }
-  ]
-}
-
- -

In this case, embedding doesn't work as each node object - references the other. This is equivalent to using multiple - node objects in array and defining - the @context within each node object:

- -
-
Example 87: Context needs to be duplicated if @graph is not used
-
[
-  {
-    "@context": {...},
-    "@id": "http://manu.sporny.org/about#manu",
-    "@type": "foaf:Person",
-    "name": "Manu Sporny",
-    "knows": "http://greggkellogg.net/foaf#me"
-  },
-  {
-    "@context": {...},
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@type": "foaf:Person",
-    "name": "Gregg Kellogg",
-    "knows": "http://manu.sporny.org/about#manu"
-  }
-]
-
- -
-

4.8.1 Graph Containers §

This section is non-normative.

-

In some cases, it is useful to logically partition data into separate - graphs, without making this explicit within the JSON expression. For - example, a JSON document may contain data against which other metadata is - asserted and it is useful to separate this data in the data model using - the notion of named graphs, without the syntactic overhead - associated with the @graph keyword.

- -

An expanded term definition can use @graph as the - value of @container. This indicates that values of this - term should be considered to be named graphs, where the - graph name is an automatically assigned blank node identifier - creating an implicitly named graph. When expanded, these become - simple graph objects.

- -

An alternative to our example above could use an anonymously named graph - as follows:

- -
-
Example 88: Implicitly named graph
-
{
-  "@context": {
-    "@version": 1.1,
-    "generatedAt": {
-      "@id": "http://www.w3.org/ns/prov#generatedAtTime",
-      "@type": "http://www.w3.org/2001/XMLSchema#date"
-    },
-    "Person": "http://xmlns.com/foaf/0.1/Person",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows",
-    "claim": {
-     "@id": "https://w3id.org/credentials#claim",
-      "@container": "@graph"
-    }
-  },
-  "@id": "http://example.org/foaf-graph",
-  "generatedAt": "2012-04-09",
-  "claim": [
-    {
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": "Person",
-      "name": "Manu Sporny",
-      "knows": "http://greggkellogg.net/foaf#me"
-    }, {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": "Person",
-      "name": "Gregg Kellogg",
-      "knows": "http://manu.sporny.org/about#manu"
-    }
-  ]
-}
-
- -

The example above expresses a named graph that is identified - by the blank node identifier _:b0. That - graph is composed of the statements about Manu and Gregg. Metadata about - the graph itself is expressed via the generatedAt property, - which specifies when the graph was generated. An alternative view of the - information above is represented in table form below:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
 http://example.org/foaf-graphcred:claim_:b0
_:b0http://manu.sporny.org/about#manuxsd:typefoaf:Person
_:b0http://manu.sporny.org/about#manufoaf:nameManu Sporny
_:b0http://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me
_:b0http://greggkellogg.net/foaf#mexsd:typefoaf:Person
_:b0http://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg
_:b0http://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu
- -
Note

The blank node identifier _:b0 - is automatically created to allow the default graph to reference the - named graph as the definition of the claim. These are - necessary for serialization, where nodes without explicit identifiers, - such as the named graph in this case, can be represented.

- -

Expanding this graph results in the following:

- -
-
Example 89: Implicitly named graph after expansion
-
[{
-  "http://www.w3.org/ns/prov#generatedAtTime": [{
-    "@value": "2012-04-09",
-    "@type": "http://www.w3.org/2001/XMLSchema#date"
-  }],
-  "@id": "http://example.org/foaf-graph",
-  "https://w3id.org/credentials#claim": [{
-    "@graph": [{
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": ["http://xmlns.com/foaf/0.1/Person"],
-      "http://xmlns.com/foaf/0.1/knows": [{
-        "@value": "http://greggkellogg.net/foaf#me"
-      }],
-      "http://xmlns.com/foaf/0.1/name": [{
-        "@value": "Manu Sporny"
-      }]
-    }, {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": ["http://xmlns.com/foaf/0.1/Person"],
-      "http://xmlns.com/foaf/0.1/knows": [{
-        "@value": "http://manu.sporny.org/about#manu"
-      }],
-      "http://xmlns.com/foaf/0.1/name": [{
-        "@value": "Gregg Kellogg"
-      }]
-    }]
-  }]
-}]
-
- -
Note

Strictly speaking, the value of such a term - is not a named graph, rather it is the graph name - associated with the named graph, which exists separately within - the dataset.

- -
Note

Graph Containers are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
- -

4.8.2 Named Graph Data Indexing §

This section is non-normative.

- -

In addition to indexing node objects by index, graph objects may - also be indexed by an index. By using the @graph - container type, introduced in section 4.8.1 Graph Containers - in addition to @index, an object value of such a property is - treated as a key-value map where the keys do not map to IRIs, but - are taken from an @index property associated with named graphs - which are their values. When expanded, these must be simple graph objects

- -

The following example describes a default graph referencing multiple named - graphs using an index map.

- -
-
Example 90: Indexing graph data in JSON-LD
-
{
-  "@context": {
-     "@version": 1.1,
-     "schema": "http://schema.org/",
-     "name": "schema:name",
-     "body": "schema:articleBody",
-     "words": "schema:wordCount",
-     "post": {
-       "@id": "schema:blogPost",
-       "@container": ["@graph", "@index"]
-     }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-     "en": {
-       "@id": "http://example.com/posts/1/en",
-       "body": "World commodities were up today with heavy trading of crude oil...",
-       "words": 1539
-     },
-     "de": {
-       "@id": "http://example.com/posts/1/de",
-       "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-       "words": 1204
-     }
-  }
-}
-
- -

This expands to the following:

- -
-
Example 91: Indexed graph data after expansion
-
[{
-  "@id": "http://example.com/",
-  "@type": ["http://schema.org/Blog"],
-  "http://schema.org/blogPost": [{
-    "@graph": [{
-      "@id": "http://example.com/posts/1/de",
-      "http://schema.org/articleBody": [{
-        "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."
-      }],
-      "http://schema.org/wordCount": [{"@value": 1204}]
-    }],
-    "@index": "de"
-  }, {
-    "@graph": [{
-      "@id": "http://example.com/posts/1/en",
-      "http://schema.org/articleBody": [{
-        "@value": "World commodities were up today with heavy trading of crude oil..."
-      }],
-      "http://schema.org/wordCount": [{"@value": 1539}]
-    }],
-    "@index": "en"
-  }],
-  "http://schema.org/name": [{"@value": "World Financial News"}]
-}]
-
- -

When expressed as Quads, this becomes the following:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.com/rdf:typeschema:Blog
 http://example.com/schema:nameWorld Financial News
 http://example.com/schema:blogPost_:b1
 http://example.com/schema:blogPost_:b2
_:b1http://example.com/posts/1/deschema:wordCount1204xsd:integer
_:b1http://example.com/posts/1/deschema:articleBodyDie Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...
_:b2http://example.com/posts/1/enschema:wordCount1539xsd:integer
_:b2http://example.com/posts/1/enschema:articleBodyWorld commodities were up today with heavy trading of crude oil...
- -

As with index maps, when used with @graph, a container may also - include @set to ensure that key values are always contained in an array.

- -

If the processing mode is set to json-ld-1.1, - the special index @none is used for indexing - graphs which does not have an @index key, which is useful to maintain - a normalized representation. Note, however, that - compacting a document where multiple unidentified named graphs are - compacted using the @none index will result in the content - of those graphs being merged. To prevent this, give each graph a distinct - @index key.

- -
-
Example 92: Indexing graphs using @none for no index
-
{
-  "@context": {
-     "@version": 1.1,
-     "schema": "http://schema.org/",
-     "name": "schema:name",
-     "body": "schema:articleBody",
-     "words": "schema:wordCount",
-     "post": {
-       "@id": "schema:blogPost",
-       "@container": ["@graph", "@index"]
-     }
-  },
-  "@id": "http://example.com/",
-  "@type": "schema:Blog",
-  "name": "World Financial News",
-  "post": {
-     "en": {
-       "@id": "http://example.com/posts/1/en",
-       "body": "World commodities were up today with heavy trading of crude oil...",
-       "words": 1539
-     },
-     "@none": {
-       "@id": "http://example.com/posts/1/no-language",
-       "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
-       "words": 1204
-     }
-  }
-}
-
- -

This expands to the following:

- -
-
Example 93: Indexed languaged-tagged strings with @none after expansion
-
[{
-  "@id": "http://example.com/",
-  "@type": ["http://schema.org/Blog"],
-  "http://schema.org/blogPost": [{
-    "@graph": [{
-      "@id": "http://example.com/posts/1/no-language",
-      "http://schema.org/articleBody": [{
-        "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."
-      }],
-      "http://schema.org/wordCount": [{"@value": 1204}]
-    }]
-  }, {
-    "@graph": [{
-      "@id": "http://example.com/posts/1/en",
-      "http://schema.org/articleBody": [{
-        "@value": "World commodities were up today with heavy trading of crude oil..."
-      }],
-      "http://schema.org/wordCount": [{"@value": 1539}]
-    }],
-    "@index": "en"
-  }],
-  "http://schema.org/name": [{"@value": "World Financial News"}]
-}]
-
-
- -

4.8.3 Named Graph Indexing §

This section is non-normative.

- -

In addition to indexing node objects by identifier, graph objects may - also be indexed by their graph name. By using the @graph - container type, introduced in section 4.8.1 Graph Containers - in addition to @id, an object value of such a property is - treated as a key-value map where the keys represent the identifiers of named graphs - which are their values.

- -

The following example describes a default graph referencing multiple named - graphs using an id map.

- -
-
Example 94: Referencing named graphs using an id map
-
{
-  "@context": {
-    "@version": 1.1,
-    "generatedAt": {
-      "@id": "http://www.w3.org/ns/prov#generatedAtTime",
-      "@type": "http://www.w3.org/2001/XMLSchema#date"
-    },
-    "Person": "http://xmlns.com/foaf/0.1/Person",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows",
-    "graphMap": {
-      "@id": "http://example.org/graphMap",
-      "@container": ["@graph", "@id"]
-    }
-  },
-  "@id": "http://example.org/foaf-graph",
-  "generatedAt": "2012-04-09",
-  "graphMap": {
-    "http://manu.sporny.org/about#manu": {
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": "Person",
-      "name": "Manu Sporny",
-      "knows": "http://greggkellogg.net/foaf#me"
-    },
-    "http://greggkellogg.net/foaf#me": {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": "Person",
-      "name": "Gregg Kellogg",
-      "knows": "http://manu.sporny.org/about#manu"
-    }
-  }
-}
-
- -

This expands to the following:

- -
-
Example 95: Referencing named graphs after expansion
-
[{
-  "@id": "http://example.org/foaf-graph",
-  "http://example.org/graphMap": [{
-    "@id": "http://greggkellogg.net/foaf#me",
-    "@graph": [{
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": ["http://xmlns.com/foaf/0.1/Person"],
-      "http://xmlns.com/foaf/0.1/knows": [{"@value": "http://manu.sporny.org/about#manu"}],
-      "http://xmlns.com/foaf/0.1/name": [{"@value": "Gregg Kellogg"}]
-    }]
-  }, {
-    "@id": "http://manu.sporny.org/about#manu",
-    "@graph": [{
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": [
-        "http://xmlns.com/foaf/0.1/Person"
-      ],
-      "http://xmlns.com/foaf/0.1/knows": [
-        {
-          "@value": "http://greggkellogg.net/foaf#me"
-        }
-      ],
-      "http://xmlns.com/foaf/0.1/name": [
-        {
-          "@value": "Manu Sporny"
-        }
-      ]
-    }]
-  }],
-  "http://www.w3.org/ns/prov#generatedAtTime": [{
-    "@value": "2012-04-09",
-    "@type": "http://www.w3.org/2001/XMLSchema#date"
-  }]
-}]
-
- -

When expressed as Quads, this becomes the following:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GraphSubjectPropertyValueValue Type
 http://example.org/foaf-graphprov:generatedAtTime2012-04-09xsd:date
 http://example.org/foaf-graphhttp://example.org/graphMaphttp://manu.sporny.org/about#manu
 http://example.org/foaf-graphhttp://example.org/graphMaphttp://greggkellogg.net/foaf#me
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manuxsd:typefoaf:Person
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manufoaf:nameManu Sporny
http://manu.sporny.org/about#manuhttp://manu.sporny.org/about#manufoaf:knowshttp://greggkellogg.net/foaf#me
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#mexsd:typefoaf:Person
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#mefoaf:nameGregg Kellogg
http://greggkellogg.net/foaf#mehttp://greggkellogg.net/foaf#mefoaf:knowshttp://manu.sporny.org/about#manu
- -

As with id maps, when used with @graph, a container may also - include @set to ensure that key values are always contained in an array.

- -

As with id maps, the special index @none is used for indexing - named graphs which do not have an @id, which is useful to maintain - a normalized representation. The @none index may also be - a term which expands to @none. - Note, however, that if multiple graphs are represented without - an @id, they will be merged on expansion. To prevent this, - use @none judiciously, and consider giving graphs - their own distinct identifier.

- -
-
Example 96: Referencing named graphs using an id map with @none
-
{
-  "@context": {
-    "@version": 1.1,
-    "generatedAt": {
-      "@id": "http://www.w3.org/ns/prov#generatedAtTime",
-      "@type": "http://www.w3.org/2001/XMLSchema#date"
-    },
-    "Person": "http://xmlns.com/foaf/0.1/Person",
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows",
-    "graphMap": {
-      "@id": "http://example.org/graphMap",
-      "@container": ["@graph", "@id"]
-    }
-  },
-  "@id": "http://example.org/foaf-graph",
-  "generatedAt": "2012-04-09",
-  "graphMap": {
-    "@none": [{
-      "@id": "http://manu.sporny.org/about#manu",
-      "@type": "Person",
-      "name": "Manu Sporny",
-      "knows": "http://greggkellogg.net/foaf#me"
-    }, {
-      "@id": "http://greggkellogg.net/foaf#me",
-      "@type": "Person",
-      "name": "Gregg Kellogg",
-      "knows": "http://manu.sporny.org/about#manu"
-    }]
-  }
-}
-
- -
Note

Graph Containers are a new feature in JSON-LD 1.1, requiring - processing mode set to json-ld-1.1.

-
-
-
- -

5. Forms of JSON-LD §

This section is non-normative.

-

As with many data formats, there is no single correct way to describe data in JSON-LD. - However, as JSON-LD is used for describing graphs, certain transformations can be used - to change the shape of the data, without changing its meaning as Linked Data.

- -
-
Expanded Document Form
-
Expansion is the process of taking a JSON-LD document and applying a - context so that the @context is no longer necessary. - This process is described further in section 5.1 Expanded Document Form.
-
Compacted Document Form
-
Compaction is the process - of applying a provided context to an existing JSON-LD document. This process - is described further in section 5.2 Compacted Document Form.
-
Flattened Document Form
-
Flattening is the process of extracting - embedded nodes to the top level of the JSON tree, and replacing the embedded - node with a reference, creating blank node identifiers as necessary. This - process is described further in section 5.3 Flattened Document Form.
-
Framed Document Form
-
Framing is used to shape - the data in a JSON-LD document, using an example frame document - which is used to both match the flattened data and show an example - of how the resulting data should be shaped. This - process is described further in section 5.4 Framed Document Form.
-
- -

5.1 Expanded Document Form §

This section is non-normative.

- -

The JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] - defines a method for expanding a JSON-LD document. - Expansion is the process of taking a JSON-LD document and applying a - context such that all IRIs, types, and values - are expanded so that the @context is no longer necessary.

- -

For example, assume the following JSON-LD input document:

- -
-
Example 97: Sample JSON-LD document to be expanded
-
{
-   "@context": {
-      "name": "http://xmlns.com/foaf/0.1/name",
-      "homepage": {
-        "@id": "http://xmlns.com/foaf/0.1/homepage",
-        "@type": "@id"
-      }
-   },
-   "name": "Manu Sporny",
-   "homepage": "http://manu.sporny.org/"
-}
-
- -

Running the JSON-LD Expansion algorithm against the JSON-LD input document - provided above would result in the following output:

- -
-
Example 98: Expanded form for the previous example
-
[
-  {
-    "http://xmlns.com/foaf/0.1/name": [
-      { "@value": "Manu Sporny" }
-    ],
-    "http://xmlns.com/foaf/0.1/homepage": [
-      { "@id": "http://manu.sporny.org/" }
-    ]
-  }
-]
-
- -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - expanded document form. The profile URI identifying expanded document - form is http://www.w3.org/ns/json-ld#expanded.

-
- -

5.2 Compacted Document Form §

This section is non-normative.

- -

The JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] defines - a method for compacting a JSON-LD document. Compaction is the process - of applying a developer-supplied context to shorten IRIs - to terms or compact IRIs - and JSON-LD values expressed in expanded form to simple values such as - strings or numbers. - Often this makes it simpler to work with document as the data is expressed in - application-specific terms. Compacted documents are also typically easier to read - for humans.

- -

For example, assume the following JSON-LD input document:

- -
-
Example 99: Sample expanded JSON-LD document
-
[
-  {
-    "http://xmlns.com/foaf/0.1/name": [ "Manu Sporny" ],
-    "http://xmlns.com/foaf/0.1/homepage": [
-      {
-       "@id": "http://manu.sporny.org/"
-      }
-    ]
-  }
-]
-
- -

Additionally, assume the following developer-supplied JSON-LD context:

- -
-
Example 100: Sample context
-
{
-  "@context": {
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "homepage": {
-      "@id": "http://xmlns.com/foaf/0.1/homepage",
-      "@type": "@id"
-    }
-  }
-}
-
- -

Running the JSON-LD Compaction algorithm given the context supplied above - against the JSON-LD input document provided above would result in the following - output:

- -
-
Example 101: Compact form of the sample document once sample context has been applied
-
{
-  "@context": {
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "homepage": {
-      "@id": "http://xmlns.com/foaf/0.1/homepage",
-      "@type": "@id"
-    }
-  },
-  "name": "Manu Sporny",
-  "homepage": "http://manu.sporny.org/"
-}
-
- -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - compacted document form. The profile URI identifying compacted document - form is http://www.w3.org/ns/json-ld#compacted.

-
- -

5.3 Flattened Document Form §

This section is non-normative.

- -

The JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] defines - a method for flattening a JSON-LD document. - Flattening collects all - properties of a node in a single dictionary and labels - all blank nodes with - blank node identifiers. - This ensures a shape of the data and consequently may drastically simplify the code - required to process JSON-LD in certain applications.

- -

For example, assume the following JSON-LD input document:

- -
-
Example 102: Sample JSON-LD document to be flattened
-
{
-  "@context": {
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows"
-  },
-  "@id": "http://me.markus-lanthaler.com/",
-  "name": "Markus Lanthaler",
-  "knows": [
-    {
-      "@id": "http://manu.sporny.org/about#manu",
-      "name": "Manu Sporny"
-    }, {
-      "name": "Dave Longley"
-    }
-  ]
-}
-
- -

Running the JSON-LD Flattening algorithm against the JSON-LD input document in - the example above and using the same context would result in the following - output:

- -
-
Example 103: Flattened and compacted form for the previous example
-
{
-  "@context": {
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows"
-  },
-  "@graph": [
-    {
-      "@id": "_:b0",
-      "name": "Dave Longley"
-    }, {
-      "@id": "http://manu.sporny.org/about#manu",
-      "name": "Manu Sporny"
-    }, {
-      "@id": "http://me.markus-lanthaler.com/",
-      "name": "Markus Lanthaler",
-      "knows": [
-        { "@id": "http://manu.sporny.org/about#manu" },
-        { "@id": "_:b0" }
-      ]
-    }
-  ]
-}
-
- -

JSON-LD's media type defines a - profile parameter which can be used to signal or request - flattened document form. The profile URI identifying flattened document - form is http://www.w3.org/ns/json-ld#flattened. It can be - combined with the profile URI identifying - expanded document form or - compacted document from.

-
- -

5.4 Framed Document Form §

This section is non-normative.

- -

The JSON-LD 1.1 Framing specification [JSON-LD11-FRAMING] defines - a method for framing a JSON-LD document. Framing is used to shape - the data in a JSON-LD document, using an example frame document - which is used to both match the flattened data and show an example - of how the resulting data should be shaped.

- -

For example, assume the following JSON-LD frame:

- -
-
Example 104: Sample library frame
-
{
-  "@context": {"@vocab": "http://example.org/"},
-  "@type": "Library",
-  "contains": {
-    "@type": "Book",
-    "contains": {
-      "@type": "Chapter"
-    }
-  }
-}
-
- -

This frame document describes an embedding structure that would place - objects with type Library at the top, with objects of - type Book that were linked to the library object using - the contains property embedded as property values. It also - places objects of type Chapter within the referencing Book object - as embedded values of the Book object.

- -

When using a flattened set of objects that match the frame components:

-
-
Example 105: Flattened library objects
-
{
-  "@context": {
-    "@vocab": "http://example.org/",
-    "contains": {"@type": "@id"}
-  },
-  "@graph": [{
-    "@id": "http://example.org/library",
-    "@type": "Library",
-    "contains": "http://example.org/library/the-republic"
-  }, {
-    "@id": "http://example.org/library/the-republic",
-    "@type": "Book",
-    "creator": "Plato",
-    "title": "The Republic",
-    "contains": "http://example.org/library/the-republic#introduction"
-  }, {
-    "@id": "http://example.org/library/the-republic#introduction",
-    "@type": "Chapter",
-    "description": "An introductory chapter on The Republic.",
-    "title": "The Introduction"
-  }]
-}
-
- -

The Frame Algorithm can create a new document which follows the structure - of the frame:

-
-
Example 106: Framed library objects
-
{
-  "@context": {"@vocab": "http://example.org/"},
-  "@id": "http://example.org/library",
-  "@type": "Library",
-  "contains": {
-    "@id": "http://example.org/library/the-republic",
-    "@type": "Book",
-    "contains": {
-      "@id": "http://example.org/library/the-republic#introduction",
-      "@type": "Chapter",
-      "description": "An introductory chapter on The Republic.",
-      "title": "The Introduction"
-    },
-    "creator": "Plato",
-    "title": "The Republic"
-  }
-}
-
-
-
- -

6. Interpreting JSON as JSON-LD §

- -

Ordinary JSON documents can be interpreted as JSON-LD - by providing an explicit JSON-LD context document. One way - to provide this is by using referencing a JSON-LD - context document in an HTTP Link Header. - Doing so allows JSON to be unambiguously machine-readable without requiring developers to drastically - change their documents and provides an upgrade path for existing infrastructure - without breaking existing clients that rely on the application/json - media type or a media type with a +json suffix as defined in - [RFC6839].

- -

In order to use an external context with an ordinary JSON document, - when retrieving an ordinary JSON document via HTTP, processors MUST - retrieve any JSON-LD document referenced by a - Link Header with:

- -
    -
  • rel="http://www.w3.org/ns/json-ld#context", and
  • -
  • type="application/ld+json".
  • -
- -

The referenced document MUST have a top-level JSON object. - The @context member within that object is added to the top-level - JSON object of the referencing document. If an array - is at the top-level of the referencing document and its items are - JSON objects, the @context - subtree is added to all array items. All extra information located outside - of the @context subtree in the referenced document MUST be - discarded. Effectively this means that the active context is - initialized with the referenced external context. A response MUST NOT - contain more than one HTTP Link Header [RFC8288] using the - http://www.w3.org/ns/json-ld#context link relation.

- -

Other mechanisms for providing a JSON-LD Context MAY be described for other - URI schemes.

- -

The JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] - provides for an expandContext option for specifying - a context to use when expanding JSON documents programatically.

- -

The following example demonstrates the use of an external context with an - ordinary JSON document over HTTP:

- - - -

Please note that JSON-LD documents - served with the application/ld+json - media type MUST have all context information, including references to external - contexts, within the body of the document. Contexts linked via a - http://www.w3.org/ns/json-ld#context HTTP Link Header MUST be - ignored for such documents.

-
- -

7. Embedding JSON-LD in HTML Documents §

This section is non-normative.

- -

HTML script elements can be used to embed blocks of data in documents. - This way, JSON-LD content can be easily embedded in HTML [HTML52] by placing - it in a script element with the type attribute set to - application/ld+json.

- -
-
Example 108: Embedding JSON-LD in HTML
-
<script type="application/ld+json">
-{
-  "@context": "https://json-ld.org/contexts/person.jsonld",
-  "@id": "http://dbpedia.org/resource/John_Lennon",
-  "name": "John Lennon",
-  "born": "1940-10-09",
-  "spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
-}
-</script>
-
- -

Depending on how the HTML document is served, certain strings may need - to be escaped.

- -

Defining how such data may be used is beyond the scope of this specification. - The embedded JSON-LD document might be extracted as is or, e.g., be - interpreted as RDF.

- -

If JSON-LD content is extracted as RDF [RDF11-CONCEPTS], it should be expanded into an - RDF Dataset using the - Deserialize JSON-LD to RDF Algorithm - [JSON-LD11-API].

-
- -
-

8. Data Model §

- -

JSON-LD is a serialization format for Linked Data based on JSON. - It is therefore important to distinguish between the syntax, which is - defined by JSON in [RFC8259], and the data model which is - an extension of the RDF data model [RDF11-CONCEPTS]. The precise - details of how JSON-LD relates to the RDF data model are given in - section 10. Relationship to RDF.

- -

To ease understanding for developers unfamiliar with the RDF model, the - following summary is provided:

- - - -

JSON-LD documents MAY contain data - that cannot be represented by the data model - defined above. Unless otherwise specified, such data is ignored when a - JSON-LD document is being processed. One result of this rule - is that properties which are not mapped to an IRI, - a blank node, or keyword will be ignored.

- -

Additionally, the JSON serialization format is internally represented using - the JSON-LD internal representation, which uses the generic - concepts of arrays, dictionaries, - strings, numbers, booleans, and null to describe - the data represented by a JSON document.

- -
- - -

The image depicts a linked data dataset with a default graph - and two named graphs.

-
-
Figure 1 An illustration of a linked data dataset.
- A description of the linked data dataset - diagram is available in the Appendix. Image available in - - SVG - and - - PNG - - formats.
-
-
- -
-

9. JSON-LD Grammar §

- -

This appendix restates the syntactic conventions described in the - previous sections more formally.

- -

A JSON-LD document MUST be valid JSON text as described - in [RFC8259], or some format that can be represented - in the JSON-LD internal representation that is equivalent to - valid JSON text.

- -

A JSON-LD document MUST be a single node object, - a dictionary consisting of only - the members @context and/or @graph, - or an array or zero or more node objects.

- -

In contrast to JSON, in JSON-LD the keys in objects - MUST be unique.

- -

Whenever a keyword is discussed in this grammar, - the statements also apply to an alias for that keyword.

- -
Note

JSON-LD allows keywords to be aliased - (see section 4.1.5 Aliasing Keywords for details). For example, if the active context - defines the term id as an alias for @id, - that alias may be legitimately used as a substitution for @id. - Note that keyword aliases are not expanded during context - processing.

- -
-

9.1 Terms §

- -

A term is a short-hand string that expands - to an IRI or a blank node identifier.

- -

A term MUST NOT equal any of the JSON-LD - keywords.

- -

When used as the prefix in a Compact IRI, to avoid - the potential ambiguity of a prefix being confused with an IRI - scheme, terms SHOULD NOT come from the list of URI schemes as defined in - [IANA-URI-SCHEMES]. Similarly, to avoid confusion between a - Compact IRI and a term, terms SHOULD NOT include a colon (:) - and SHOULD be restricted to the form of - isegment-nz-nc - as defined in [RFC3987].

- -

To avoid forward-compatibility issues, a term SHOULD NOT start - with an @ character as future versions of JSON-LD may introduce - additional keywords. Furthermore, the term MUST NOT - be an empty string ("") as not all programming languages - are able to handle empty JSON keys.

- -

See section 3.1 The Context and - section 3.2 IRIs for further discussion - on mapping terms to IRIs.

-
- -
-

9.2 Node Objects §

- -

A node object represents zero or more properties of a - node in the graph serialized by the - JSON-LD document. A dictionary is a - node object if it exists outside of a JSON-LD - context and:

- -
    -
  • it is not the top-most dictionary in the JSON-LD document consisting - of no other members than @graph and @context,
  • -
  • it does not contain the @value, @list, - or @set keywords, and
  • -
  • it is not a graph object.
  • -
- -

The properties of a node in - a graph may be spread among different - node objects within a document. When - that happens, the keys of the different - node objects need to be merged to create the - properties of the resulting node.

- -

A node object MUST be a dictionary. All keys - which are not IRIs, compact IRIs, terms valid in the - active context, or one of the following keywords - (or alias of such a keyword) - MUST be ignored when processed:

- -
    -
  • @context,
  • -
  • @id,
  • -
  • @graph,
  • -
  • @nest,
  • -
  • @type,
  • -
  • @reverse, or
  • -
  • @index
  • -
- -

If the node object contains the @context - key, its value MUST be null, an absolute IRI, - a relative IRI, a context definition, or - an array composed of any of these.

- -

If the node object contains the @id key, - its value MUST be an absolute IRI, a relative IRI, - or a compact IRI (including - blank node identifiers). - See section 3.3 Node Identifiers, - section 4.1.4 Compact IRIs, and - section 4.5.1 Identifying Blank Nodes for further discussion on - @id values.

- -

If the node object contains the @graph - key, its value MUST be - a node object or - an array of zero or more node objects. - If the node object contains an @id keyword, - its value is used as the graph name of a named graph. - See section 4.8 Named Graphs for further discussion on - @graph values. As a special case, if a dictionary - contains no keys other than @graph and @context, and the - dictionary is the root of the JSON-LD document, the - dictionary is not treated as a node object; this - is used as a way of defining node objects - that may not form a connected graph. This allows a - context to be defined which is shared by all of the constituent - node objects.

- -

If the node object contains the @type - key, its value MUST be either an absolute IRI, a - relative IRI, a compact IRI - (including blank node identifiers), - a term defined in the active context expanding into an absolute IRI, or - an array of any of these. - See section 3.4 Specifying the Type for further discussion on - @type values.

- -

If the node object contains the @reverse key, - its value MUST be a dictionary containing members representing reverse - properties. Each value of such a reverse property MUST be an absolute IRI, - a relative IRI, a compact IRI, a blank node identifier, - a node object or an array containing a combination of these.

- -

If the node object contains the @index key, - its value MUST be a string. See - section 4.6.1 Data Indexing for further discussion - on @index values.

- -

If the node object contains the @nest key, - its value MUST be an dictionary or an array of dictionaries - which MUST NOT include a value object. See - section 9.10 Property Nesting for further discussion - on @nest values.

- -

Keys in a node object that are not - keywords MAY expand to an absolute IRI - using the active context. The values associated with keys that expand - to an absolute IRI MUST be one of the following:

- - -
- -
-

9.3 Graph Objects §

- -

A graph object represents a named graph, which MAY include - include an explicit graph name. - A dictionary is a graph object if - it exists outside of a JSON-LD context, - it is not a node object, - it is not the top-most dictionary in the JSON-LD document, and - it consists of no members other than @graph, - @index, @id - and @context, or an alias of one of these keywords.

- -

If the graph object contains the @context - key, its value MUST be null, an absolute IRI, - a relative IRI, a context definition, or - an array composed of any of these.

- -

If the graph object contains the @id key, - its value is used as the identifier (graph name) of a named graph, and - MUST be an absolute IRI, a relative IRI, - or a compact IRI (including - blank node identifiers). - See section 3.3 Node Identifiers, - section 4.1.4 Compact IRIs, and - section 4.5.1 Identifying Blank Nodes for further discussion on - @id values.

- -

A graph object without an @id member is also a - simple graph object and represents a named graph without an - explicit identifier, although in the data model it still has a - graph name, which is an implicitly allocated - blank node identifier.

- -

The value of the @graph key MUST be - a node object or - an array of zero or more node objects. - See section 4.8 Named Graphs for further discussion on - @graph values..

-
- -
-

9.4 Value Objects §

- -

A value object is used to explicitly associate a type or a - language with a value to create a typed value or a language-tagged - string.

- -

A value object MUST be a dictionary containing the - @value key. It MAY also contain an @type, - an @language, an @index, or an @context key but MUST NOT contain - both an @type and an @language key at the same time. - A value object MUST NOT contain any other keys that expand to an - absolute IRI or keyword.

- -

The value associated with the @value key MUST be either a - string, a number, true, - false or null.

- -

The value associated with the @type key MUST be a - term, a compact IRI, - an absolute IRI, a string which can be turned - into an absolute IRI using the vocabulary mapping, or null.

- -

The value associated with the @language key MUST have the - lexical form described in [BCP47], or be null.

- -

The value associated with the @index key MUST be a - string.

- -

See section 4.2.1 Typed Values and - section 4.2.3 String Internationalization - for more information on value objects.

-
- -
-

9.5 Lists and Sets §

- -

A list represents an ordered set of values. A set - represents an unordered set of values. Unless otherwise specified, - arrays are unordered in JSON-LD. As such, the - @set keyword, when used in the body of a JSON-LD document, - represents just syntactic sugar which is optimized away when processing the document. - However, it is very helpful when used within the context of a document. Values - of terms associated with an @set or @list container - will always be represented in the form of an array when a document - is processed—even if there is just a single value that would otherwise be optimized to - a non-array form in compact document form. - This simplifies post-processing of the data as the data is always in a - deterministic form.

- -

A list object MUST be a dictionary that contains no - keys that expand to an absolute IRI or keyword other - than @list, @context, and @index.

- -

A set object MUST be a dictionary that contains no - keys that expand to an absolute IRI or keyword other - than @set, @context, and @index. - Please note that the @index key will be ignored when being processed.

- -

In both cases, the value associated with the keys @list and @set - MUST be one of the following types:

- - -

See section 4.3 Value Ordering for further discussion on sets and lists.

-
- -
-

9.6 Language Maps §

- -

A language map is used to associate a language with a value in a - way that allows easy programmatic access. A language map may be - used as a term value within a node object if the term is defined - with @container set to @language, - - or an array containing both @language and @set - . The keys of a - language map MUST be strings representing - [BCP47] language codes, the keyword @none, - or a term which expands to @none, - and the values MUST be any of the following types:

- - - -

See section 4.2.3 String Internationalization for further discussion - on language maps.

-
- -
-

9.7 Index Maps §

- -

An index map allows keys that have no semantic meaning, - but should be preserved regardless, to be used in JSON-LD documents. - An index map may - be used as a term value within a node object if the - term is defined with @container set to @index, - - or an array containing both @index and @set - . - The values of the members of an index map MUST be one - of the following types:

- - - -

See section 4.6.1 Data Indexing for further information on this topic.

- -

Index Maps may also be used to map indexes to associated - named graphs, if the term is defined with @container - set to an array containing both @graph and - @index, and optionally including @set. The - value consists of the node objects contained within the named - graph which is named using the referencing key, which can be - represented as a simple graph object.

-
- -
-

9.8 Id Maps §

- -

An id map is used to associate an IRI with a value that allows easy - programmatic access. An id map may be used as a term value within a node object if the term - is defined with @container set to @id, - or an array containing both @id and @set. - The keys of an id map MUST be IRIs - (relative IRI, compact IRI (including blank node identifiers), or absolute IRI), - the keyword @none, - or a term which expands to @none, - and the values MUST be node objects.

- -

If the value contains a property expanding to @id, it's value MUST - be equivalent to the referencing key. Otherwise, the property from the value is used as - the @id of the node object value when expanding.

- -

Id Maps may also be used to map graph names to their - named graphs, if the term is defined with @container - set to an array containing both @graph and @id, - and optionally including @set. The value consists of the - node objects contained within the named graph - which is named using the referencing key.

-
- -
-

9.9 Type Maps §

- -

A type map is used to associate an IRI with a value that allows easy - programmatic access. A type map may be used as a term value within a node object if the term - is defined with @container set to @type, - or an array containing both @type and @set. - The keys of a type map MUST be IRIs - (relative IRI, compact IRI (including blank node identifiers), or absolute IRI), - the keyword @none, - or a term which expands to @none, - and the values MUST be node objects.

- -

If the value contains a property expanding to @type, and it's value - is contains the referencing key after suitable expansion of both the referencing key - and the value, then the node object already contains the type. Otherwise, the property from the value is - added as a @type of the node object value when expanding.

-
- -
-

9.10 Property Nesting §

- -

A nested property is used to gather properties of a node object in a separate - dictionary, or array of dictionaries which are not - value objects. It is semantically transparent and is removed - during the process of expansion. Property nesting is recursive, and - collections of nested properties may contain further nesting.

- -

Semantically, nesting is treated as if the properties and values were declared directly - within the containing node object.

-
- -
-

9.11 Context Definitions §

- -

A context definition defines a local context in a - node object.

- -

A context definition MUST be a dictionary whose - keys MUST be either terms, compact IRIs, absolute IRIs, - or one of the keywords @language, @base, - @vocab, or @version.

- -

If the context definition has an @language key, - its value MUST have the lexical form described in [BCP47] or be null.

- -

If the context definition has an @base key, - its value MUST be an absolute IRI, a relative IRI, - or null.

- -

If the context definition has an @vocab key, - its value MUST be a absolute IRI, a compact IRI, - a blank node identifier, - an empty string (""), - a term, or null.

- -

If the context definition has an @version key, - its value MUST be a number with the value 1.1.

- -

The value of keys that are not keywords MUST be either an - absolute IRI, a compact IRI, a term, - a blank node identifier, a keyword, null, - or an expanded term definition.

- -

An expanded term definition is used to describe the mapping - between a term and its expanded identifier, as well as other - properties of the value associated with the term when it is - used as key in a node object.

- -

An expanded term definition MUST be a dictionary - composed of zero or more keys from - @id, - @reverse, - @type, - @language, - @context, - @prefix, or - @container. An - expanded term definition SHOULD NOT contain any other keys.

- -

If the term being defined is not a compact IRI or - absolute IRI and the active context does not have an - @vocab mapping, the expanded term definition MUST - include the @id key.

- -

If the expanded term definition contains the @id - keyword, its value MUST be null, an absolute IRI, - a blank node identifier, a compact IRI, a term, - or a keyword.

- -

If an expanded term definition has an @reverse member, - it MUST NOT have @id or @nest members at the same time, - its value MUST be an absolute IRI, - a blank node identifier, a compact IRI, or a term. If an - @container member exists, its value MUST be null, - @set, or @index.

- -

If the expanded term definition contains the @type - keyword, its value MUST be an absolute IRI, a - compact IRI, a term, null, or one of the - keywords @id or @vocab.

- -

If the expanded term definition contains the @language keyword, - its value MUST have the lexical form described in [BCP47] or be null.

- -

If the expanded term definition contains the @container - keyword, its value MUST be either - @list, - @set, - @language, - @index, - @id, - @graph, - @type, or be - null - - or an array containing exactly any one of those keywords, or a - combination of @set and any of @index, - @id, @graph, @type, - @language in any order - . - @container may also be an array - containing @graph along with either @id or - @index and also optionally including @set. - If the value - is @language, when the term is used outside of the - @context, the associated value MUST be a language map. - If the value is @index, when the term is used outside of - the @context, the associated value MUST be an - index map.

- -

If an expanded term definition has an @context member, - it MUST be a valid context definition.

- -

If the expanded term definition contains the @nest - keyword, its value MUST be either @nest, or a term - which expands to @nest.

- -

If the expanded term definition contains the @prefix - keyword, its value MUST be true or false.

- -

Terms MUST NOT be used in a circular manner. That is, - the definition of a term cannot depend on the definition of another term if that other - term also depends on the first term.

- -

See section 3.1 The Context for further discussion on contexts.

-
- -
- -
-

10. Relationship to RDF §

- -

JSON-LD is a - concrete RDF syntax - as described in [RDF11-CONCEPTS]. Hence, a JSON-LD document is both an - RDF document and a JSON document and correspondingly represents an - instance of an RDF data model. However, JSON-LD also extends the RDF data - model to optionally allow JSON-LD to serialize - generalized RDF Datasets. - The JSON-LD extensions to the RDF data model are:

- -
    -
  • In JSON-LD properties can be - IRIs or blank nodes - whereas in RDF properties (predicates) have to be IRIs. This - means that JSON-LD serializes - generalized RDF Datasets.
  • -
  • In JSON-LD lists use native JSON syntax, either contained in a - list object, or described as such within a context. Consequently, developers - using the JSON representation can access list elements directly rather than - using the vocabulary for collections described in [RDF-SCHEMA]..
  • -
  • RDF values are either typed literals - (typed values) or - language-tagged strings whereas - JSON-LD also supports JSON's native data types, i.e., number, - strings, and the boolean values true - and false. The JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] - defines the conversion rules - between JSON's native data types and RDF's counterparts to allow round-tripping.
  • -
- -

Summarized, these differences mean that JSON-LD is capable of serializing any RDF - graph or dataset and most, but not all, JSON-LD documents can be directly - interpreted as RDF as described in RDF 1.1 Concepts [RDF11-CONCEPTS].

- -

For authors and developers working with blank nodes - as properties when deserializing to RDF, - three potential approaches are suggested:

- - - -

The normative algorithms for interpreting JSON-LD as RDF and serializing - RDF as JSON-LD are specified in the JSON-LD 1.1 Processing Algorithms and API - specification [JSON-LD11-API].

- -

Even though JSON-LD serializes - generalized RDF Datasets, it can - also be used as a RDF graph source. - In that case, a consumer MUST only use the default graph and ignore all named graphs. - This allows servers to expose data in languages such as Turtle and JSON-LD - using content negotiation.

- -
Note

Publishers supporting both dataset and graph syntaxes have to ensure that - the primary data is stored in the default graph to enable consumers that do not support - datasets to process the information.

- -
-

10.1 Serializing/Deserializing RDF §

This section is non-normative.

- -

The process of serializing RDF as JSON-LD and deserializing JSON-LD to RDF - depends on executing the algorithms defined in - RDF Serialization-Deserialization Algorithms - in the JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API]. - It is beyond the scope of this document to detail these algorithms any further, - but a summary of the necessary operations is provided to illustrate the process.

- -

The procedure to deserialize a JSON-LD document to RDF involves the - following steps:

- -
    -
  1. Expand the JSON-LD document, removing any context; this ensures - that properties, types, and values are given their full representation - as IRIs and expanded values. Expansion - is discussed further in section 5.1 Expanded Document Form.
  2. -
  3. Flatten the document, which turns the document into an array of - node objects. Flattening is discussed - further in section 5.3 Flattened Document Form.
  4. -
  5. Turn each node object into a series of RDF triples.
  6. -
- -

For example, consider the following JSON-LD document in compact form:

- -
-
Example 110: Sample JSON-LD document
-
{
-  "@context": {
-    "name": "http://xmlns.com/foaf/0.1/name",
-    "knows": "http://xmlns.com/foaf/0.1/knows"
-  },
-  "@id": "http://me.markus-lanthaler.com/",
-  "name": "Markus Lanthaler",
-  "knows": [
-    {
-      "@id": "http://manu.sporny.org/about#manu",
-      "name": "Manu Sporny"
-    }, {
-      "name": "Dave Longley"
-    }
-  ]
-}
-
- -

Running the JSON-LD Expansion and Flattening algorithms against the - JSON-LD input document in the example above would result in the - following output:

- -
-
Example 111: Flattened and expanded form for the previous example
-
[
-  {
-    "@id": "_:b0",
-    "http://xmlns.com/foaf/0.1/name": "Dave Longley"
-  }, {
-    "@id": "http://manu.sporny.org/about#manu",
-    "http://xmlns.com/foaf/0.1/name": "Manu Sporny"
-  }, {
-    "@id": "http://me.markus-lanthaler.com/",
-    "http://xmlns.com/foaf/0.1/name": "Markus Lanthaler",
-    "http://xmlns.com/foaf/0.1/knows": [
-      { "@id": "http://manu.sporny.org/about#manu" },
-      { "@id": "_:b0" }
-    ]
-  }
-]
-
- -

Deserializing this to RDF now is a straightforward process of turning - each node object into one or more RDF triples. This can be - expressed in Turtle as follows:

- -
-
Example 112: Turtle representation of expanded/flattened document
-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-_:b0 foaf:name "Dave Longley" .
-
-<http://manu.sporny.org/about#manu> foaf:name "Manu Sporny" .
-
-<http://me.markus-lanthaler.com/> foaf:name "Markus Lanthaler" ;
-    foaf:knows <http://manu.sporny.org/about#manu>, _:b0 .
-
- -

The process of serializing RDF as JSON-LD can be thought of as the - inverse of this last step, creating an expanded JSON-LD document closely - matching the triples from RDF, using a single node object - for all triples having a common subject, and a single property - for those triples also having a common predicate. The result may - then be framed by using the - Framing Algorithm - described in [JSON-LD11-FRAMING] to create the desired object embedding.

-
-
- -

A. Image Desciptions §

This section is non-normative.

-

A.1 Linked Data Dataset §

-

Description of the Linked Data Dataset figure in section 8. Data Model §

-

The image consists of three dashed boxes, each describing a different - linked data graph. Each box consists of shapes linked with arrows describing - the linked data relationships.

-

The first box is titled "default graph: <no name>" describes two - resources: http://example.com/people/alice and http://example.com/people/bob - (denoting "Alice" and "Bob" respectively), which are - connected by an arrow labeled http://schema.org/knows which describes - the knows relationship between the two resources. Additionally, the "Alice" resource is related - to three different literals:

-
-
Alice
-
an RDF literal with no datatype or language.
-
weiblich | de
-
an language-tagged string with the value "weiblich" and language-tag "de".
-
female | en
-
an language-tagged string with the value "female" and language-tag "en".
-
-

This describes the RDF graph which can be represented in Turtle as follows:

-
        @prefix schema: "http://schema.org" .
-
-        <http://example.com/people/alice> schema:knows <http://example.com/people/bob>;
-          schema:name "Alice";
-          schema:gender "weiblich"@de, "female"@en .
-      
-

The second and third boxes describe two named graphs, with the graph names - <http://example.com/graphs/1> and <http://example.com/graphs/1>, respectively.

-

The second box consists of two resources related by an unnamed IRI with the second - resource having an unnamed literal property.

-

The third box consists of three resources related to each other by unnamed IRIs with the third - resource having an unnamed literal property.

-

The entire dataset can be represented in TriG as follows:

-
        @prefix schema: "http://schema.org" .
-
-        <http://example.com/people/alice> schema:knows <http://example.com/people/bob>;
-          schema:name "Alice";
-          schema:gender "weiblich"@de, "female"@en .
-
-        <http://example.com/graphs/1> {
-          [ <unnamed1> [<unnamed2> ""]]
-        }
-
-        <http://example.com/graphs/2> {
-          _:node1  <unnamed1> [
-            <unnamed1> [
-              <unnamed1> _:node1
-              <unnamed2> ""]] .
-        }
-      
-
-
- -
-

B. Relationship to Other Linked Data Formats §

This section is non-normative.

- -

The JSON-LD examples below demonstrate how JSON-LD can be used to - express semantic data marked up in other linked data formats such as Turtle, - RDFa, and Microdata. These sections are merely provided as - evidence that JSON-LD is very flexible in what it can express across different - Linked Data approaches.

- -
-

B.1 Turtle §

This section is non-normative.

- -

The following are examples of transforming RDF expressed in Turtle [TURTLE] - into JSON-LD.

- -
-

B.1.1 Prefix definitions §

- -

The JSON-LD context has direct equivalents for the Turtle - @prefix declaration:

- -
-
Example 113: A set of statements serialized in Turtle
-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://manu.sporny.org/about#manu> a foaf:Person;
-  foaf:name "Manu Sporny";
-  foaf:homepage <http://manu.sporny.org/> .
-
- -
-
Example 114: The same set of statements serialized in JSON-LD
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/"
-  },
-  "@id": "http://manu.sporny.org/about#manu",
-  "@type": "foaf:Person",
-  "foaf:name": "Manu Sporny",
-  "foaf:homepage": { "@id": "http://manu.sporny.org/" }
-}
-
-
- -
-

B.1.2 Embedding §

- -

Both Turtle and JSON-LD allow embedding, although Turtle only allows embedding of - blank nodes.

- -
-
Example 115: Embedding in Turtle
-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://manu.sporny.org/about#manu>
-  a foaf:Person;
-  foaf:name "Manu Sporny";
-  foaf:knows [ a foaf:Person; foaf:name "Gregg Kellogg" ] .
-
- -
-
Example 116: Same embedding example in JSON-LD
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/"
-  },
-  "@id": "http://manu.sporny.org/about#manu",
-  "@type": "foaf:Person",
-  "foaf:name": "Manu Sporny",
-  "foaf:knows": {
-    "@type": "foaf:Person",
-    "foaf:name": "Gregg Kellogg"
-  }
-}
-
-
- -
-

B.1.3 Conversion of native data types §

- -

In JSON-LD numbers and boolean values are native data types. While Turtle - has a shorthand syntax to express such values, RDF's abstract syntax requires - that numbers and boolean values are represented as typed literals. Thus, - to allow full round-tripping, the JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API] - defines conversion rules between JSON-LD's native data types and RDF's - counterparts. Numbers without fractions are - converted to xsd:integer-typed literals, numbers with fractions - to xsd:double-typed literals and the two boolean values - true and false to a xsd:boolean-typed - literal. All typed literals are in canonical lexical form.

- -
-
Example 117: JSON-LD using native data types for numbers and boolean values
-
{
-  "@context": {
-    "ex": "http://example.com/vocab#"
-  },
-  "@id": "http://example.com/",
-  "ex:numbers": [ 14, 2.78 ],
-  "ex:booleans": [ true, false ]
-}
-
- -
-
Example 118: Same example in Turtle using typed literals
-
@prefix ex: <http://example.com/vocab#> .
-@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
-
-<http://example.com/>
-  ex:numbers "14"^^xsd:integer, "2.78E0"^^xsd:double ;
-  ex:booleans "true"^^xsd:boolean, "false"^^xsd:boolean .
-
- -
- -
-

B.1.4 Lists §

-

Both JSON-LD and Turtle can represent sequential lists of values.

- -
-
Example 119: A list of values in Turtle
-
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
-
-<http://example.org/people#joebob> a foaf:Person;
-  foaf:name "Joe Bob";
-  foaf:nick ( "joe" "bob" "jaybee" ) .
-
- -
-
Example 120: Same example with a list of values in JSON-LD
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/"
-  },
-  "@id": "http://example.org/people#joebob",
-  "@type": "foaf:Person",
-  "foaf:name": "Joe Bob",
-  "foaf:nick": {
-    "@list": [ "joe", "bob", "jaybee" ]
-  }
-}
-
-
-
- -
-

B.2 RDFa §

This section is non-normative.

- -

The following example describes three people with their respective names and - homepages in RDFa [RDFA-CORE].

- -
-
Example 121: RDFa fragment that describes three people
-
<div prefix="foaf: http://xmlns.com/foaf/0.1/">
-   <ul>
-      <li typeof="foaf:Person">
-        <a property="foaf:homepage" href="http://example.com/bob/">
-          <span property="foaf:name">Bob</span>
-        </a>
-      </li>
-      <li typeof="foaf:Person">
-        <a property="foaf:homepage" href="http://example.com/eve/">
-         <span property="foaf:name">Eve</span>
-        </a>
-      </li>
-      <li typeof="foaf:Person">
-        <a property="foaf:homepage" href="http://example.com/manu/">
-          <span property="foaf:name">Manu</span>
-        </a>
-      </li>
-   </ul>
-</div>
-
- -

An example JSON-LD implementation using a single context is - described below.

- -
-
Example 122: Same description in JSON-LD (context shared among node objects)
-
{
-  "@context": {
-    "foaf": "http://xmlns.com/foaf/0.1/"
-  },
-  "@graph": [
-    {
-      "@type": "foaf:Person",
-      "foaf:homepage": "http://example.com/bob/",
-      "foaf:name": "Bob"
-    }, {
-      "@type": "foaf:Person",
-      "foaf:homepage": "http://example.com/eve/",
-      "foaf:name": "Eve"
-    }, {
-      "@type": "foaf:Person",
-      "foaf:homepage": "http://example.com/manu/",
-      "foaf:name": "Manu"
-    }
-  ]
-}
-
-
- -
-

B.3 Microdata §

This section is non-normative.

- -

The HTML Microdata [MICRODATA] example below expresses book information as - a Microdata Work item.

- -
-
Example 123: HTML that describes a book using microdata
-
<dl itemscope
-    itemtype="http://purl.org/vocab/frbr/core#Work"
-    itemid="http://purl.oreilly.com/works/45U8QJGZSQKDH8N">
- <dt>Title</dt>
- <dd><cite itemprop="http://purl.org/dc/terms/title">Just a Geek</cite></dd>
- <dt>By</dt>
- <dd><span itemprop="http://purl.org/dc/terms/creator">Wil Wheaton</span></dd>
- <dt>Format</dt>
- <dd itemprop="http://purl.org/vocab/frbr/core#realization"
-     itemscope
-     itemtype="http://purl.org/vocab/frbr/core#Expression"
-     itemid="http://purl.oreilly.com/products/9780596007683.BOOK">
-  <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/BOOK">
-  Print
- </dd>
- <dd itemprop="http://purl.org/vocab/frbr/core#realization"
-     itemscope
-     itemtype="http://purl.org/vocab/frbr/core#Expression"
-     itemid="http://purl.oreilly.com/products/9780596802189.EBOOK">
-  <link itemprop="http://purl.org/dc/terms/type" href="http://purl.oreilly.com/product-types/EBOOK">
-  Ebook
- </dd>
-</dl>
-
- -

Note that the JSON-LD representation of the Microdata information stays - true to the desires of the Microdata community to avoid contexts and - instead refer to items by their full IRI.

- -
-
Example 124: Same book description in JSON-LD (avoiding contexts)
-
[
-  {
-    "@id": "http://purl.oreilly.com/works/45U8QJGZSQKDH8N",
-    "@type": "http://purl.org/vocab/frbr/core#Work",
-    "http://purl.org/dc/terms/title": "Just a Geek",
-    "http://purl.org/dc/terms/creator": "Whil Wheaton",
-    "http://purl.org/vocab/frbr/core#realization":
-    [
-      "http://purl.oreilly.com/products/9780596007683.BOOK",
-      "http://purl.oreilly.com/products/9780596802189.EBOOK"
-    ]
-  }, {
-    "@id": "http://purl.oreilly.com/products/9780596007683.BOOK",
-    "@type": "http://purl.org/vocab/frbr/core#Expression",
-    "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/BOOK"
-  }, {
-    "@id": "http://purl.oreilly.com/products/9780596802189.EBOOK",
-    "@type": "http://purl.org/vocab/frbr/core#Expression",
-    "http://purl.org/dc/terms/type": "http://purl.oreilly.com/product-types/EBOOK"
-  }
-]
-
-
-
- -
-

C. IANA Considerations §

- -

This section has been submitted to the Internet Engineering Steering - Group (IESG) for review, approval, and registration with IANA.

- -

application/ld+json §

-
-
Type name:
-
application
-
Subtype name:
-
ld+json
-
Required parameters:
-
None
-
Optional parameters:
-
-
-
profile
-
-

A non-empty list of space-separated URIs identifying specific - constraints or conventions that apply to a JSON-LD document according to [RFC6906]. - A profile does not change the semantics of the resource representation - when processed without profile knowledge, so that clients both with - and without knowledge of a profiled resource can safely use the same - representation. The profile parameter MAY be used by - clients to express their preferences in the content negotiation process. - If the profile parameter is given, a server SHOULD return a document that - honors the profiles in the list which are recognized by the server. - It is RECOMMENDED that profile URIs are dereferenceable and provide - useful documentation at that URI. For more information and background - please refer to [RFC6906].

-

This specification defines three values for the profile parameter. - To request or specify expanded JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#expanded SHOULD be used. - To request or specify compacted JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#compacted SHOULD be used. - To request or specify flattened JSON-LD document form, - the URI http://www.w3.org/ns/json-ld#flattened SHOULD be used. - Please note that, according [HTTP11], the value of the profile - parameter has to be enclosed in quotes (") because it contains - special characters and, if multiple profiles are combined, whitespace.

-

When processing the "profile" media type parameter, it is important to - note that its value contains one or more URIs and not IRIs. In some cases - it might therefore be necessary to convert between IRIs and URIs as specified in - section 3 Relationship between IRIs and URIs - of [RFC3987].

-
-
-
-
Encoding considerations:
-
See RFC 6839, section 3.1.
-
Security considerations:
-
See [RFC8259] -

Since JSON-LD is intended to be a pure data exchange format for - directed graphs, the serialization SHOULD NOT be passed through a - code execution mechanism such as JavaScript's eval() - function to be parsed. An (invalid) document may contain code that, - when executed, could lead to unexpected side effects compromising - the security of a system.

-

When processing JSON-LD documents, links to remote contexts are - typically followed automatically, resulting in the transfer of files - without the explicit request of the user for each one. If remote - contexts are served by third parties, it may allow them to gather - usage patterns or similar information leading to privacy concerns. - Specific implementations, such as the API defined in the - JSON-LD 1.1 Processing Algorithms and API specification [JSON-LD11-API], - may provide fine-grained mechanisms to control this behavior.

-

JSON-LD contexts that are loaded from the Web over non-secure connections, - such as HTTP, run the risk of being altered by an attacker such that - they may modify the JSON-LD active context in a way that - could compromise security. It is advised that any application that - depends on a remote context for mission critical purposes vet and - cache the remote context before allowing the system to use it.

-

Given that JSON-LD allows the substitution of long IRIs with short terms, - JSON-LD documents may expand considerably when processed and, in the worst case, - the resulting data might consume all of the recipient's resources. Applications - should treat any data with due skepticism.

-
-
Interoperability considerations:
-
Not Applicable
-
Published specification:
-
http://www.w3.org/TR/json-ld
-
Applications that use this media type:
-
Any programming environment that requires the exchange of - directed graphs. Implementations of JSON-LD have been created for - JavaScript, Python, Ruby, PHP, and C++. -
-
Additional information:
-
-
-
Magic number(s):
-
Not Applicable
-
File extension(s):
-
.jsonld
-
Macintosh file type code(s):
-
TEXT
-
-
-
Person & email address to contact for further information:
-
Manu Sporny <msporny@digitalbazaar.com>
-
Intended usage:
-
Common
-
Restrictions on usage:
-
None
-
Author(s):
-
Manu Sporny, Dave Longley, Gregg Kellogg, Markus Lanthaler, Niklas Lindström
-
Change controller:
-
W3C
-
- -

Fragment identifiers used with application/ld+json - are treated as in RDF syntaxes, as per - RDF 1.1 Concepts and Abstract Syntax - [RDF11-CONCEPTS].

-
- -
-

D. Security Considerations §

-
Editor's note

Consider requirements from Self-Review Questionnaire: Security and Privacy.

-

See, section C. IANA Considerations

-
- -
-

E. Open Issues §

This section is non-normative.

-

The following is a list of issues open at the time of publication.

-
Issue 4: Support JSON values that aren’t mappedspec:enhancementspec:substantive

Consider using "@type": "@json" to describe native values in the compact form.

-
Issue 7: support @values for describing multidimensional containersspec:help wantedspec:substantive

Allows a term definition to include an @values block to describe structured values, such as for GeoJSON.

-
Issue 8: HTTP parameters for specifying context or framehr:securityspec:enhancement

When requesting JSON-LD from an HTTP endpoint, it would be useful to provide a reference to a context or frame which should be used by the server to put the results into the proper format.

-
Issue 9: Content addressable contextsspec:enhancementspec:substantive

Provide a means for refering to a remote context without without requiring it to be downloaded.

-
Issue 15: Alternative support for list-like structures such as schema:ListItemspec:enhancementspec:substantive

Consider a container type, similar to @list for encoding things like schema:ItemList serializations, when the values are schema:ListItem and order is set through schema:position.

-
Issue 17: Consider the inverse of @container:@set? spec:enhancement

Consider the opposite of "@container": "@set"; this would be when there is exactly one entry in an @list, instead of compacting to an array, compact to a single item.

-
Issue 18: The absence of beingspec:enhancement

It would be useful if JSON-LD recognized both value (rdf:nil) and list ([]).

-
Issue 19: Indexing without a predicatespec:enhancementspec:substantive

Consider a mechanism such as Microdata's @itemref for including objects within another referencing node.

-
Issue 20: Introduce concept of "sealed” contextsspec:enhancement

Mechinism to allow freezing terms so that additional contexts don't override them.

-
Issue 23: What is 'base' for an embedded json-ld?spec:enhancement

Should consider html>head>base@href and xml:base, as appropriate.

-

Update terminology in the spec from IRI to URL.

-
Issue 26: Explanation of examplesspec:editorial

For every example, there should be an equivalent of the example in the expanded form, in a table with the triples, in turtle (as close to the JSON-LD structure as possible) and, possibly, as graphs. Not all of them would appear on the screen at the same time but, rather, the reader could choose what to see with some tabs.

-
Issue 29: Illustration of the data model: a more complex graph?spec:editorial

One of the difficulties in JSON-LD (imho) is that it is difficult to express a more complex graph, namely one that have several "roots" (I know this is not the precise term.). Almost all the examples in the document and elsewhere show the examples where there is one top-level object with an ID and things hang from there (not really a tree, but a bit "tree-like").

-

We should make it clearer that JSON-LD is capable to do more, in particular in the formal sections, ie, when defining the data model. In practice, Figure 1 should not suggest that the data model is only "tree-like". Alternatively, there should be a Figure 2 showing a different case where it is not the case.

-
Issue 30: Rethinking datasets and graphs?spec:enhancementspec:substantive

Proposal is to start from scratch, ie, deprecating @graph and replacing the functionality with something cleaner.

-
Issue 33: Feature Detection in JSON-LD Processorsspec:enhancementspec:substantive
-
    -
  • Give each JSON-LD feature a name. For example: aliasing, reverseProperties, typeCoercion, etc.
  • -
  • Each JSON-LD version will officially support a set of these features. For example, JSON-LD 1.0 supports roughly ~20, JSON-LD 1.1 supports roughly ~30, and so on.
  • -
  • Move some of these less-used features (based on real world data/usage) into a "Advanced JSON-LD Features" specification to keep the base specification simpler and more easily readable.
  • -
  • Extend the @version keyword to take an array, where you can specify experimental extensions. For example: "@version": [1.1, "amazingExtensionFoo", "nicheExtensionBar"] - processors throw if they don't understand every extension listed.
  • -
-
-
Issue 34: @type as @container:@set?spec:editorialtest:needs tests

Ensure that the output is consistent in shape. Thus if there can ever be multiple values, the structure is always an array.

-
Issue 37: Consider obsoleting use of blank nodes for properties and "generalized RDF"needs discussionspec:substantive

This is one of the major things that makes JSON-LD out of step with the RDF data model, and it's not clear if the feature is used or valuable. IIRC, the original issue was making it easy to support mapping ad-hoc JSON structures without creating IRIs, but the use of @vocab, and document-relative IRIs for properties would seem to obviate the need for this.

-

This would likely prohibit the direct use of blank node identifiers in the property position, as well as the mapping of terms to blank node identifiers.

-

Downsides: another area of potential incompatibility with JSON-LD 1.0. A backwards-compatible solution would be to preserve the feature, but mark it archaic. This might cause warnings to be generated if encountered with a processor running in 1.1 mode.

-
Issue 38: Improve language around coercion of datatypesspec:editorial

From discussion of #31, minuted here, the agreement was to revise the wording around type coercion to make it clearer that it applies only to data types, and not to the creation or manipulation of rdf:type triples in the data.

-
Issue 46: Consider documentation best practicesbest practicedefer

Consider best practices around the documentation of contexts and frames.

-

Options include:

-
    -
  • Content Negotiation on the context document URI to get either the JSON-LD or human readable documentations (#43)
  • -
  • Embedding contexts in HTML, and having them extracted via processing [Would have a normative effect on -syntax?]
  • -
  • Data in the body of the context document
  • -
  • An ignored keyword in the context referencing external resource (#42)
  • -
  • An ignored keyword in the context that embeds data (#32, #40)
  • -
-

To be considered during CR/PR phase as best practices. WG consensus is not to pursue this as a normative requirement.

-
Issue 48: JSON-LD Playground links from examplesspec:editorialspec:help wanted

It would be super nice to have JSON-LD Playground links available alongside any example which is itself complete JSON-LD (and doesn't contain elided sections/contents).

-

If this is something of interest to folks, I'm happy to add them "by hand" or look at automating the addition of the links (though I think that the elided scenarios might break that approach).

-

Anyhow. I think it'd be useful. 😄

-
Issue 56: Expanding @vocab properties consistently

Consider issues surrounding confusion of differing expansion rules for @id, @type, and dictionary members.

-
Issue 57: Make processing of embedded HTML normativespec:enhancementtest:needs tests

Require JSON-LD processors to be able to identify and extract JSON-LD from a script tag with type application/ld+json within an HTML document.

-
Issue 59: Define a recommended context to importbest practice

- Instead of normatively requiring an initial context, such as RDFa does, instead JSON-LD has the ability to import contexts. This approach means that the existing context rules are followed, and the best practice context can be updated over time as new norms emerge in the community. If the best practice context is not useful to a particular community, then they don't need to import it. -

-
- -
-

F. Changes since 1.0 Recommendation of 16 January 2014 §

This section is non-normative.

-
    -
  • A context may contain a @version member which is used to set the processing mode.
  • -
  • An expanded term definition can now have an - @context property, which defines a context used for values of - a property identified with such a term.
  • -
  • @container values within an expanded term definition may now - include @id, @graph and @type, corresponding to id maps and type maps.
  • -
  • An expanded term definition can now have an - @nest property, which identifies a term expanding to - @nest which is used for containing properties using the same - @nest mapping. When expanding, the values of a property - expanding to @nest are treated as if they were contained - within the enclosing node object directly.
  • -
  • The JSON syntax has been abstracted into an internal representation - to allow for other serializations that are functionally equivalent - to JSON.
  • -
  • Added section 4.6.3 Node Identifier Indexing and section 4.6.4 Node Type Indexing.
  • -
  • Both language maps and index maps may legitimately have an @none key, but - JSON-LD 1.0 only allowed string keys. This has been updated - to allow @none keys.
  • -
  • The value for @container in an expanded term definition - can also be an array containing any appropriate container - keyword along with @set (other than @list). - This allows a way to ensure that such property values will always - be expressed in array form.
  • -
  • In JSON-LD 1.1, terms will be chosen as compact IRI prefixes - when compacting only if - a simple term definition is used where the value ends with a URI gen-delim character, - or if their expanded term definition contains - a @prefix member with the value true. The 1.0 algorithm has - been updated to only consider terms that map to a value that ends with a URI - gen-delim character.
  • -
  • Values of properties where the associated term definition - has @container set to @graph are interpreted as - implicitly named graphs, where the associated graph name is - assigned from a new blank node identifier. Other combinations - include ["@container", "@id"], ["@container", "@index"] each also - may include "@set", which create maps from the - graph identifier or index value similar to index maps - and id maps.
  • -
  • The empty string ("") has been added as a possible value for @vocab in - a context. When this is set, vocabulary-relative IRIs, such as the - keys of node objects, are expanded or compacted relative - to the base IRI using string concatenation.
  • -
  • Lists may now have items which are themselves lists.
  • -
-
- -
-

G. Changes since JSON-LD Community Group Final Report §

This section is non-normative.

-
    -
  • Lists may now have items which are themselves lists.
  • -
-
- -
-

H. Acknowledgements §

This section is non-normative.

- -

This 1.1 version of the specification is a product of deliberations by the - members of the JSON-LD 1.1 Working Group chaired by Robert Sanderson and - Benjamin Young along with members of the Working Group: - Adam Soroka, - Alejandra Gonzalez Beltran, - Axel Polleres, - Christopher Allen, - Dan Brickley, - Dave Longley, - David Lehn, - David Newbury, - Harold Solbrig, - Ivan Herman, - Jeff Mixter, - Leonard Rosenthol, - Manu Sporny, - Matthias Kovatsch, - Sebastian Käbisch, - Simon Steyskal, - Steve Blackmon, - Timothy Cole, - Victor Charpenay, - and Gregg Kellogg.

- -

A large amount of thanks goes out to the JSON-LD Community Group - participants who worked through many of the technical issues on the mailing - list and the weekly telecons: - Chris Webber, - David Wood, - Drummond Reed, - Eleanor Joslin, - Farbian Gandon, - Herm Fisher, - Jamie Pitts, - Kim Hamilton Duffy, - Niklas Lindström, - Paolo Ciccarese, - Paul Frazze, - Paul Warren, - Rego Gmür, - Rob Trainer, - Ted Thibodeau Jr., - and Victor Charpenay.

- -

For the 1.0 version of the specification

- -

The authors would like to extend a deep appreciation and the most sincere - thanks to Mark Birbeck, who contributed foundational concepts - to JSON-LD via his work on RDFj. JSON-LD uses a number of core concepts - introduced in RDFj, such as the context as a mechanism to provide an - environment for interpreting JSON data. Mark had also been very involved in - the work on RDFa as well. RDFj built upon that work. JSON-LD exists - because of the work and ideas he started nearly a decade ago in 2004.

- -

A large amount of thanks goes out to the JSON-LD Community Group - participants who worked through many of the technical issues on the mailing - list and the weekly telecons - of special mention are François Daoust, - Stéphane Corlosquet, Lin Clark, and Zdenko 'Denny' Vrandečić.

- -

The work of David I. Lehn and Mike Johnson are appreciated for - reviewing, and performing several early implementations - of the specification. Thanks also to Ian Davis for this work on RDF/JSON.

- -

Thanks to the following individuals, in order of their first name, for - their input on the specification: Adrian Walker, Alexandre Passant, - Andy Seaborne, Ben Adida, Blaine Cook, Bradley Allen, Brian Peterson, - Bryan Thompson, Conal Tuohy, Dan Brickley, Danny Ayers, Daniel Leja, - Dave Reynolds, David Booth, David I. Lehn, David Wood, Dean Landolt, - Ed Summers, elf Pavlik, - Eric Prud'hommeaux, Erik Wilde, Fabian Christ, Jon A. Frost, Gavin Carothers, - Glenn McDonald, Guus Schreiber, Henri Bergius, Jose María Alvarez Rodríguez, - Ivan Herman, Jack Moffitt, Josh Mandel, KANZAKI Masahide, Kingsley Idehen, - Kuno Woudt, Larry Garfield, Mark Baker, Mark MacGillivray, Marko Rodriguez, - Marios Meimaris, Matt Wuerstl, - Melvin Carvalho, Nathan Rixham, Olivier Grisel, Paolo Ciccarese, Pat Hayes, - Patrick Logan, Paul Kuykendall, Pelle Braendgaard, - Peter Patel-Schneider, Peter Williams, Pierre-Antoine Champin, - Richard Cyganiak, Roy T. Fielding, Sandro Hawke, Simon Grant, Srecko Joksimovic, - Stephane Fellah, Steve Harris, Ted Thibodeau Jr., Thomas Steiner, Tim Bray, - Tom Morris, Tristan King, Sergio Fernández, Werner Wilms, and William Waites.

-
- - - -
-

I. References §

- -
-

I.1 Normative references §

-
-
[BCP47]
Tags for Identifying Languages. A. Phillips; M. Davis. IETF. September 2009. IETF Best Current Practice. URL: https://tools.ietf.org/html/bcp47
[IANA-URI-SCHEMES]
Uniform Resource Identifier (URI) Schemes. IANA. URL: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
[JSON-LD]
JSON-LD 1.0. Manu Sporny; Gregg Kellogg; Markus Lanthaler. W3C. 16 January 2014. W3C Recommendation. URL: https://www.w3.org/TR/json-ld/
[JSON-LD11-API]
JSON-LD 1.1 Processing Algorithms and API. Gregg Kellogg. W3C. 11 September 2018. W3C First Public Working Draft. URL: http://www.w3.org/TR/2018/WD-json-ld11-api-20180911/
[RDF-SCHEMA]
RDF Schema 1.1. Dan Brickley; Ramanathan Guha. W3C. 25 February 2014. W3C Recommendation. URL: https://www.w3.org/TR/rdf-schema/
[RDF11-CONCEPTS]
RDF 1.1 Concepts and Abstract Syntax. Richard Cyganiak; David Wood; Markus Lanthaler. W3C. 25 February 2014. W3C Recommendation. URL: https://www.w3.org/TR/rdf11-concepts/
[RDF11-MT]
RDF 1.1 Semantics. Patrick Hayes; Peter Patel-Schneider. W3C. 25 February 2014. W3C Recommendation. URL: https://www.w3.org/TR/rdf11-mt/
[RFC2119]
Key words for use in RFCs to Indicate Requirement Levels. S. Bradner. IETF. March 1997. Best Current Practice. URL: https://tools.ietf.org/html/rfc2119
[RFC3986]
Uniform Resource Identifier (URI): Generic Syntax. T. Berners-Lee; R. Fielding; L. Masinter. IETF. January 2005. Internet Standard. URL: https://tools.ietf.org/html/rfc3986
[RFC3987]
Internationalized Resource Identifiers (IRIs). M. Duerst; M. Suignard. IETF. January 2005. Proposed Standard. URL: https://tools.ietf.org/html/rfc3987
[RFC6839]
Additional Media Type Structured Syntax Suffixes. T. Hansen; A. Melnikov. IETF. January 2013. Informational. URL: https://tools.ietf.org/html/rfc6839
[RFC6906]
The 'profile' Link Relation Type. E. Wilde. IETF. March 2013. Informational. URL: https://tools.ietf.org/html/rfc6906
[RFC8259]
The JavaScript Object Notation (JSON) Data Interchange Format. T. Bray, Ed.. IETF. December 2017. Internet Standard. URL: https://tools.ietf.org/html/rfc8259
[RFC8288]
Web Linking. M. Nottingham. IETF. October 2017. Proposed Standard. URL: https://tools.ietf.org/html/rfc8288
[WEBIDL]
Web IDL. Cameron McCormack; Boris Zbarsky; Tobie Langel. W3C. 15 December 2016. W3C Editor's Draft. URL: https://heycam.github.io/webidl/
-
-

I.2 Informative references §

-
-
[HTML52]
HTML 5.2. Steve Faulkner; Arron Eicholz; Travis Leithead; Alex Danilo; Sangwhan Moon. W3C. 14 December 2017. W3C Recommendation. URL: https://www.w3.org/TR/html52/
[HTTP11]
Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing. R. Fielding, Ed.; J. Reschke, Ed.. IETF. June 2014. Proposed Standard. URL: https://tools.ietf.org/html/rfc7230
[JSON-LD11]
JSON-LD 1.1. Gregg Kellogg. W3C. 11 September 2018. W3C First Public Working Draft. URL: http://www.w3.org/TR/2018/WD-json-ld11-20180911/
[JSON-LD11-FRAMING]
JSON-LD 1.1 Framing. Gregg Kellogg. W3C. 11 September 2018. W3C First Public Working Draft. URL: http://www.w3.org/TR/2018/WD-json-ld11-framing-20180911/
[ld-glossary]
Linked Data Glossary. Bernadette Hyland; Ghislain Auguste Atemezing; Michael Pendleton; Biplav Srivastava. W3C. 27 June 2013. W3C Note. URL: https://www.w3.org/TR/ld-glossary/
[LINKED-DATA]
Linked Data Design Issues. Tim Berners-Lee. W3C. 27 July 2006. W3C-Internal Document. URL: https://www.w3.org/DesignIssues/LinkedData.html
[MICRODATA]
HTML Microdata. Charles McCathie Nevile; Dan Brickley; Ian Hickson. W3C. 26 April 2018. W3C Working Draft. URL: https://www.w3.org/TR/microdata/
[RDFA-CORE]
RDFa Core 1.1 - Third Edition. Ben Adida; Mark Birbeck; Shane McCarron; Ivan Herman et al. W3C. 17 March 2015. W3C Recommendation. URL: https://www.w3.org/TR/rdfa-core/
[RFC7049]
Concise Binary Object Representation (CBOR). C. Bormann; P. Hoffman. IETF. October 2013. Proposed Standard. URL: https://tools.ietf.org/html/rfc7049
[RFC7946]
The GeoJSON Format. H. Butler; M. Daly; A. Doyle; S. Gillies; S. Hagen; T. Schaub. IETF. August 2016. Proposed Standard. URL: https://tools.ietf.org/html/rfc7946
[TURTLE]
RDF 1.1 Turtle. Eric Prud'hommeaux; Gavin Carothers. W3C. 25 February 2014. W3C Recommendation. URL: https://www.w3.org/TR/turtle/
[YAML]
YAML Ain’t Markup Language (YAML™) Version 1.2. Oren Ben-Kiki; Clark Evans; Ingy döt Net.1 October 2009. URL: http://yaml.org/spec/1.2/spec.html
-
\ No newline at end of file diff --git a/publication-snapshots/FPWD/linked-data-graph.png b/publication-snapshots/FPWD/linked-data-graph.png deleted file mode 100644 index a22887f6..00000000 Binary files a/publication-snapshots/FPWD/linked-data-graph.png and /dev/null differ diff --git a/publication-snapshots/FPWD/linked-data-graph.svg b/publication-snapshots/FPWD/linked-data-graph.svg deleted file mode 100644 index f8643294..00000000 --- a/publication-snapshots/FPWD/linked-data-graph.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yaml/example-002-Sample-JSON-document.yml b/yaml/example-002-Sample-JSON-document.yml deleted file mode 100644 index 5bba6e0a..00000000 --- a/yaml/example-002-Sample-JSON-document.yml +++ /dev/null @@ -1,5 +0,0 @@ -Example 002: Sample JSON document ---- -name: Manu Sporny -homepage: http://manu.sporny.org/ -image: http://manu.sporny.org/images/manu.png diff --git a/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml b/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml deleted file mode 100644 index 1ffdb23b..00000000 --- a/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 003: Sample JSON-LD document using full IRIs instead of terms-expanded ---- -http://schema.org/name: Manu Sporny -http://schema.org/url: - "@id": http://manu.sporny.org/ -http://schema.org/image: - "@id": http://manu.sporny.org/images/manu.png diff --git a/yaml/example-004-Context-for-the-sample-document-in-the-previous-section.yml b/yaml/example-004-Context-for-the-sample-document-in-the-previous-section.yml deleted file mode 100644 index dbbd4b59..00000000 --- a/yaml/example-004-Context-for-the-sample-document-in-the-previous-section.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 004: Context for the sample document in the previous section ---- -"@context": - name: http://schema.org/name - image: - "@id": http://schema.org/image - "@type": "@id" - homepage: - "@id": http://schema.org/url - "@type": "@id" diff --git a/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml b/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml deleted file mode 100644 index 696f050d..00000000 --- a/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 005: Referencing a JSON-LD context-expanded ---- -- http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://manu.sporny.org/ - http://xmlns.com/foaf/0.1/img: - - "@id": http://manu.sporny.org/images/manu.png diff --git a/yaml/example-005-Referencing-a-JSON-LD-context-original.yml b/yaml/example-005-Referencing-a-JSON-LD-context-original.yml deleted file mode 100644 index df60bc08..00000000 --- a/yaml/example-005-Referencing-a-JSON-LD-context-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 005: Referencing a JSON-LD context-original ---- -"@context": https://json-ld.org/contexts/person.jsonld -name: Manu Sporny -homepage: http://manu.sporny.org/ -image: http://manu.sporny.org/images/manu.png diff --git a/yaml/example-006-In-line-context-definition-expanded.yml b/yaml/example-006-In-line-context-definition-expanded.yml deleted file mode 100644 index 9b88313b..00000000 --- a/yaml/example-006-In-line-context-definition-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 006: In-line context definition-expanded ---- -- http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/url: - - "@id": http://manu.sporny.org/ - http://schema.org/image: - - "@id": http://manu.sporny.org/images/manu.png diff --git a/yaml/example-006-In-line-context-definition-original.yml b/yaml/example-006-In-line-context-definition-original.yml deleted file mode 100644 index 728f774e..00000000 --- a/yaml/example-006-In-line-context-definition-original.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 006: In-line context definition-original ---- -"@context": - name: http://schema.org/name - image: - "@id": http://schema.org/image - "@type": "@id" - homepage: - "@id": http://schema.org/url - "@type": "@id" -name: Manu Sporny -homepage: http://manu.sporny.org/ -image: http://manu.sporny.org/images/manu.png diff --git a/yaml/example-007-Values-of-id-are-interpreted-as-IRI.yml b/yaml/example-007-Values-of-id-are-interpreted-as-IRI.yml deleted file mode 100644 index 6f04bd58..00000000 --- a/yaml/example-007-Values-of-id-are-interpreted-as-IRI.yml +++ /dev/null @@ -1,4 +0,0 @@ -Example 007: Values of @id are interpreted as IRI ---- -homepage: - "@id": http://example.com/ diff --git a/yaml/example-008-IRIs-can-be-relative.yml b/yaml/example-008-IRIs-can-be-relative.yml deleted file mode 100644 index 4eaa33d9..00000000 --- a/yaml/example-008-IRIs-can-be-relative.yml +++ /dev/null @@ -1,4 +0,0 @@ -Example 008: IRIs can be relative ---- -homepage: - "@id": "../" diff --git a/yaml/example-009-IRI-as-a-key.yml b/yaml/example-009-IRI-as-a-key.yml deleted file mode 100644 index d8995c1d..00000000 --- a/yaml/example-009-IRI-as-a-key.yml +++ /dev/null @@ -1,3 +0,0 @@ -Example 009: IRI as a key ---- -http://schema.org/name: Manu Sporny diff --git a/yaml/example-010-Term-expansion-from-context-definition-expanded.yml b/yaml/example-010-Term-expansion-from-context-definition-expanded.yml deleted file mode 100644 index f0bc742d..00000000 --- a/yaml/example-010-Term-expansion-from-context-definition-expanded.yml +++ /dev/null @@ -1,4 +0,0 @@ -Example 010: Term expansion from context definition-expanded ---- -- http://schema.org/name: - - "@value": Manu Sporny diff --git a/yaml/example-010-Term-expansion-from-context-definition-original.yml b/yaml/example-010-Term-expansion-from-context-definition-original.yml deleted file mode 100644 index 6ce32c7e..00000000 --- a/yaml/example-010-Term-expansion-from-context-definition-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 010: Term expansion from context definition-original ---- -"@context": - name: http://schema.org/name -name: Manu Sporny -status: trollin' diff --git a/yaml/example-011-Type-coercion-expanded.yml b/yaml/example-011-Type-coercion-expanded.yml deleted file mode 100644 index 349717cf..00000000 --- a/yaml/example-011-Type-coercion-expanded.yml +++ /dev/null @@ -1,4 +0,0 @@ -Example 011: Type coercion-expanded ---- -- http://schema.org/url: - - "@id": http://manu.sporny.org/ diff --git a/yaml/example-011-Type-coercion-original.yml b/yaml/example-011-Type-coercion-original.yml deleted file mode 100644 index bb3327ca..00000000 --- a/yaml/example-011-Type-coercion-original.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 011: Type coercion-original ---- -"@context": - homepage: - "@id": http://schema.org/url - "@type": "@id" -homepage: http://manu.sporny.org/ diff --git a/yaml/example-012-Identifying-a-node-expanded.yml b/yaml/example-012-Identifying-a-node-expanded.yml deleted file mode 100644 index 223be27f..00000000 --- a/yaml/example-012-Identifying-a-node-expanded.yml +++ /dev/null @@ -1,5 +0,0 @@ -Example 012: Identifying a node-expanded ---- -- "@id": http://me.markus-lanthaler.com/ - http://schema.org/name: - - "@value": Markus Lanthaler diff --git a/yaml/example-012-Identifying-a-node-original.yml b/yaml/example-012-Identifying-a-node-original.yml deleted file mode 100644 index a29338bb..00000000 --- a/yaml/example-012-Identifying-a-node-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 012: Identifying a node-original ---- -"@context": - name: http://schema.org/name -"@id": http://me.markus-lanthaler.com/ -name: Markus Lanthaler diff --git a/yaml/example-013-Specifying-the-type-for-a-node-expanded.yml b/yaml/example-013-Specifying-the-type-for-a-node-expanded.yml deleted file mode 100644 index 4099e3b2..00000000 --- a/yaml/example-013-Specifying-the-type-for-a-node-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 013: Specifying the type for a node-expanded ---- -- "@id": http://me.markus-lanthaler.com/ - "@type": - - http://schema.org/Person - http://schema.org/givenName: - - "@value": Markus - http://schema.org/familyName: - - "@value": Lanthaler diff --git a/yaml/example-013-Specifying-the-type-for-a-node-original.yml b/yaml/example-013-Specifying-the-type-for-a-node-original.yml deleted file mode 100644 index 9467d00a..00000000 --- a/yaml/example-013-Specifying-the-type-for-a-node-original.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 013: Specifying the type for a node-original ---- -"@context": - givenName: http://schema.org/givenName - familyName: http://schema.org/familyName -"@id": http://me.markus-lanthaler.com/ -"@type": http://schema.org/Person -givenName: Markus -familyName: Lanthaler diff --git a/yaml/example-014-Specifying-multiple-types-for-a-node-expanded.yml b/yaml/example-014-Specifying-multiple-types-for-a-node-expanded.yml deleted file mode 100644 index 6e940506..00000000 --- a/yaml/example-014-Specifying-multiple-types-for-a-node-expanded.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 014: Specifying multiple types for a node-expanded ---- -- "@id": http://me.markus-lanthaler.com/ - "@type": - - http://schema.org/Person - - http://xmlns.com/foaf/0.1/Person diff --git a/yaml/example-014-Specifying-multiple-types-for-a-node-original.yml b/yaml/example-014-Specifying-multiple-types-for-a-node-original.yml deleted file mode 100644 index 83efa979..00000000 --- a/yaml/example-014-Specifying-multiple-types-for-a-node-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 014: Specifying multiple types for a node-original ---- -"@id": http://me.markus-lanthaler.com/ -"@type": -- http://schema.org/Person -- http://xmlns.com/foaf/0.1/Person diff --git a/yaml/example-015-Using-a-term-to-specify-the-type-expanded.yml b/yaml/example-015-Using-a-term-to-specify-the-type-expanded.yml deleted file mode 100644 index 34b26c0e..00000000 --- a/yaml/example-015-Using-a-term-to-specify-the-type-expanded.yml +++ /dev/null @@ -1,5 +0,0 @@ -Example 015: Using a term to specify the type-expanded ---- -- "@id": http://example.org/places#BrewEats - "@type": - - http://schema.org/Person diff --git a/yaml/example-015-Using-a-term-to-specify-the-type-original.yml b/yaml/example-015-Using-a-term-to-specify-the-type-original.yml deleted file mode 100644 index 28b00fe4..00000000 --- a/yaml/example-015-Using-a-term-to-specify-the-type-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 015: Using a term to specify the type-original ---- -"@context": - Person: http://schema.org/Person -"@id": http://example.org/places#BrewEats -"@type": Person diff --git a/yaml/example-016-Referencing-Objects-on-the-Web-expanded.yml b/yaml/example-016-Referencing-Objects-on-the-Web-expanded.yml deleted file mode 100644 index a0c48d80..00000000 --- a/yaml/example-016-Referencing-Objects-on-the-Web-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 016: Referencing Objects on the Web-expanded ---- -- "@id": http://manu.sporny.org/about#manu - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me diff --git a/yaml/example-016-Referencing-Objects-on-the-Web-original.yml b/yaml/example-016-Referencing-Objects-on-the-Web-original.yml deleted file mode 100644 index dce68dcd..00000000 --- a/yaml/example-016-Referencing-Objects-on-the-Web-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 016: Referencing Objects on the Web-original ---- -"@context": - "@vocab": http://schema.org/ - knows: - "@type": "@id" -"@id": http://manu.sporny.org/about#manu -"@type": Person -name: Manu Sporny -knows: http://greggkellogg.net/foaf#me diff --git a/yaml/example-017-Embedding-Objects-expanded.yml b/yaml/example-017-Embedding-Objects-expanded.yml deleted file mode 100644 index 6c67aa9c..00000000 --- a/yaml/example-017-Embedding-Objects-expanded.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 017: Embedding Objects-expanded ---- -- "@id": http://manu.sporny.org/about#manu - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg diff --git a/yaml/example-017-Embedding-Objects-original.yml b/yaml/example-017-Embedding-Objects-original.yml deleted file mode 100644 index a0a042ad..00000000 --- a/yaml/example-017-Embedding-Objects-original.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 017: Embedding Objects-original ---- -"@context": - "@vocab": http://schema.org/ -"@id": http://manu.sporny.org/about#manu -"@type": Person -name: Manu Sporny -knows: - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg diff --git a/yaml/example-018-Using-multiple-contexts-expanded.yml b/yaml/example-018-Using-multiple-contexts-expanded.yml deleted file mode 100644 index 7fdea98e..00000000 --- a/yaml/example-018-Using-multiple-contexts-expanded.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 018: Using multiple contexts-expanded ---- -- http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://manu.sporny.org/ - http://xmlns.com/foaf/0.1/depiction: - - "@id": http://twitter.com/account/profile_image/manusporny -- http://purl.org/dc/terms/title: - - "@value": The Empire State Building - http://purl.org/dc/terms/description: - - "@value": The Empire State Building is a 102-story landmark in New York City. - http://schema.org/geo: - - http://www.w3.org/2003/01/geo/wgs84_pos#lat: - - "@type": http://www.w3.org/2001/XMLSchema#decimal - "@value": '40.75' - http://www.w3.org/2003/01/geo/wgs84_pos#long: - - "@type": http://www.w3.org/2001/XMLSchema#decimal - "@value": '73.98' diff --git a/yaml/example-018-Using-multiple-contexts-original.yml b/yaml/example-018-Using-multiple-contexts-original.yml deleted file mode 100644 index 2bd327d5..00000000 --- a/yaml/example-018-Using-multiple-contexts-original.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 018: Using multiple contexts-original ---- -- "@context": https://json-ld.org/contexts/person.jsonld - name: Manu Sporny - homepage: http://manu.sporny.org/ - depiction: http://twitter.com/account/profile_image/manusporny -- "@context": https://json-ld.org/contexts/place.jsonld - name: The Empire State Building - description: The Empire State Building is a 102-story landmark in New York City. - geo: - latitude: '40.75' - longitude: '73.98' diff --git a/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml b/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml deleted file mode 100644 index 38507b50..00000000 --- a/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 019: Scoped contexts within node objects-expanded ---- -- http://example.com/person#details: - - http://example.com/organization#name: - - "@value": Graz University of Technology - http://example.com/person#name: - - "@value": Markus Lanthaler diff --git a/yaml/example-019-Scoped-contexts-within-node-objects-original.yml b/yaml/example-019-Scoped-contexts-within-node-objects-original.yml deleted file mode 100644 index c580d158..00000000 --- a/yaml/example-019-Scoped-contexts-within-node-objects-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 019: Scoped contexts within node objects-original ---- -"@context": - name: http://example.com/person#name - details: http://example.com/person#details -name: Markus Lanthaler -details: - "@context": - name: http://example.com/organization#name - name: Graz University of Technology diff --git a/yaml/example-020-Combining-external-and-local-contexts-expanded.yml b/yaml/example-020-Combining-external-and-local-contexts-expanded.yml deleted file mode 100644 index 64e58ce6..00000000 --- a/yaml/example-020-Combining-external-and-local-contexts-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 020: Combining external and local contexts-expanded ---- -- http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://manu.sporny.org/ - http://xmlns.com/foaf/0.1/depiction: - - "@value": http://twitter.com/account/profile_image/manusporny diff --git a/yaml/example-020-Combining-external-and-local-contexts-original.yml b/yaml/example-020-Combining-external-and-local-contexts-original.yml deleted file mode 100644 index 7ffa9704..00000000 --- a/yaml/example-020-Combining-external-and-local-contexts-original.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 020: Combining external and local contexts-original ---- -"@context": -- https://json-ld.org/contexts/person.jsonld -- pic: http://xmlns.com/foaf/0.1/depiction -name: Manu Sporny -homepage: http://manu.sporny.org/ -pic: http://twitter.com/account/profile_image/manusporny diff --git a/yaml/example-021-Setting-version-in-context.yml b/yaml/example-021-Setting-version-in-context.yml deleted file mode 100644 index 244b8496..00000000 --- a/yaml/example-021-Setting-version-in-context.yml +++ /dev/null @@ -1,4 +0,0 @@ -Example 021: Setting @version in context ---- -"@context": - "@version": 1.1 diff --git a/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml b/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml deleted file mode 100644 index 40bad82c..00000000 --- a/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 022: Using a common vocabulary prefix-expanded ---- -- "@id": http://example.org/places#BrewEats - "@type": - - http://schema.org/Restaurant - http://schema.org/name: - - "@value": Brew Eats diff --git a/yaml/example-022-Using-a-common-vocabulary-prefix-original.yml b/yaml/example-022-Using-a-common-vocabulary-prefix-original.yml deleted file mode 100644 index fa0e5dea..00000000 --- a/yaml/example-022-Using-a-common-vocabulary-prefix-original.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 022: Using a common vocabulary prefix-original ---- -"@context": - "@vocab": http://schema.org/ -"@id": http://example.org/places#BrewEats -"@type": Restaurant -name: Brew Eats diff --git a/yaml/example-023-Using-the-null-keyword-to-ignore-data-expanded.yml b/yaml/example-023-Using-the-null-keyword-to-ignore-data-expanded.yml deleted file mode 100644 index e93bf0de..00000000 --- a/yaml/example-023-Using-the-null-keyword-to-ignore-data-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 023: Using the null keyword to ignore data-expanded ---- -- "@id": http://example.org/places#BrewEats - "@type": - - http://schema.org/Restaurant - http://schema.org/name: - - "@value": Brew Eats diff --git a/yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml b/yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml deleted file mode 100644 index 4ee9daa1..00000000 --- a/yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 023: Using the null keyword to ignore data-original ---- -"@context": - "@vocab": http://schema.org/ - databaseId: -"@id": http://example.org/places#BrewEats -"@type": Restaurant -name: Brew Eats -databaseId: '23987520' diff --git a/yaml/example-024-Using-as-the-vocabulary-mapping.yml b/yaml/example-024-Using-as-the-vocabulary-mapping.yml deleted file mode 100644 index 40e448c9..00000000 --- a/yaml/example-024-Using-as-the-vocabulary-mapping.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 024: Using "" as the vocabulary mapping ---- -"@context": - "@version": 1.1 - "@base": http://example/document - "@vocab": '' -"@id": http://example.org/places#BrewEats -"@type": "#Restaurant" -"#name": Brew Eats diff --git a/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml b/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml deleted file mode 100644 index bc5f4ee8..00000000 --- a/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 025: Using "" as the vocabulary mapping (expanded)-expanded ---- -- "@id": http://example.org/places#BrewEats - "@type": - - http://example/document#Restaurant - http://example/document#name: - - "@value": Brew Eats diff --git a/yaml/example-026-Use-a-relative-IRI-as-node-identifier.yml b/yaml/example-026-Use-a-relative-IRI-as-node-identifier.yml deleted file mode 100644 index 2fdcf759..00000000 --- a/yaml/example-026-Use-a-relative-IRI-as-node-identifier.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 026: Use a relative IRI as node identifier ---- -"@context": - label: http://www.w3.org/2000/01/rdf-schema#label -"@id": '' -label: Just a simple document diff --git a/yaml/example-027-Setting-the-document-base-in-a-document-expanded.yml b/yaml/example-027-Setting-the-document-base-in-a-document-expanded.yml deleted file mode 100644 index b3debd70..00000000 --- a/yaml/example-027-Setting-the-document-base-in-a-document-expanded.yml +++ /dev/null @@ -1,5 +0,0 @@ -Example 027: Setting the document base in a document-expanded ---- -- "@id": http://example.com/document.jsonld - http://www.w3.org/2000/01/rdf-schema#label: - - "@value": Just a simple document diff --git a/yaml/example-027-Setting-the-document-base-in-a-document-original.yml b/yaml/example-027-Setting-the-document-base-in-a-document-original.yml deleted file mode 100644 index d931bda8..00000000 --- a/yaml/example-027-Setting-the-document-base-in-a-document-original.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 027: Setting the document base in a document-original ---- -"@context": - "@base": http://example.com/document.jsonld - label: http://www.w3.org/2000/01/rdf-schema#label -"@id": '' -label: Just a simple document diff --git a/yaml/example-028-Prefix-expansion-expanded.yml b/yaml/example-028-Prefix-expansion-expanded.yml deleted file mode 100644 index cbfd4b3b..00000000 --- a/yaml/example-028-Prefix-expansion-expanded.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 028: Prefix expansion-expanded ---- -- "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Dave Longley diff --git a/yaml/example-028-Prefix-expansion-original.yml b/yaml/example-028-Prefix-expansion-original.yml deleted file mode 100644 index ab1be0ea..00000000 --- a/yaml/example-028-Prefix-expansion-original.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 028: Prefix expansion-original ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@type": foaf:Person -foaf:name: Dave Longley diff --git a/yaml/example-029-Using-vocabularies-expanded.yml b/yaml/example-029-Using-vocabularies-expanded.yml deleted file mode 100644 index aecb33af..00000000 --- a/yaml/example-029-Using-vocabularies-expanded.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 029: Using vocabularies-expanded ---- -- "@id": http://me.markus-lanthaler.com/ - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Markus Lanthaler - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://www.markus-lanthaler.com/ - http://xmlns.com/foaf/0.1/depiction: - - "@id": http://twitter.com/account/profile_image/markuslanthaler diff --git a/yaml/example-029-Using-vocabularies-original.yml b/yaml/example-029-Using-vocabularies-original.yml deleted file mode 100644 index dfd7ffda..00000000 --- a/yaml/example-029-Using-vocabularies-original.yml +++ /dev/null @@ -1,16 +0,0 @@ -Example 029: Using vocabularies-original ---- -"@context": - "@version": 1.1 - xsd: http://www.w3.org/2001/XMLSchema# - foaf: http://xmlns.com/foaf/0.1/ - foaf:homepage: - "@type": "@id" - picture: - "@id": foaf:depiction - "@type": "@id" -"@id": http://me.markus-lanthaler.com/ -"@type": foaf:Person -foaf:name: Markus Lanthaler -foaf:homepage: http://www.markus-lanthaler.com/ -picture: http://twitter.com/account/profile_image/markuslanthaler diff --git a/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.yml b/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.yml deleted file mode 100644 index e998db2b..00000000 --- a/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 030: Using explicit @prefix declaration to create compact IRIs-expanded ---- -- http://example.com/property: - - "@id": http://example.com/compact-iris-are-considered - http://example.com/property: - - "@value": "@prefix does not require a gen-delim" diff --git a/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml b/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml deleted file mode 100644 index 979117a6..00000000 --- a/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 030: Using explicit @prefix declaration to create compact IRIs-original ---- -"@context": - compact-iris: - "@id": http://example.com/compact-iris- - "@prefix": true - property: http://example.com/property -property: - "@id": compact-iris:are-considered - property: "@prefix does not require a gen-delim" diff --git a/yaml/example-031-Aliasing-keywords-expanded.yml b/yaml/example-031-Aliasing-keywords-expanded.yml deleted file mode 100644 index 700fd0eb..00000000 --- a/yaml/example-031-Aliasing-keywords-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 031: Aliasing keywords-expanded ---- -- "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Gregg Kellogg - "@id": http://example.com/about#gregg diff --git a/yaml/example-031-Aliasing-keywords-original.yml b/yaml/example-031-Aliasing-keywords-original.yml deleted file mode 100644 index ce698b43..00000000 --- a/yaml/example-031-Aliasing-keywords-original.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 031: Aliasing keywords-original ---- -"@context": - url: "@id" - a: "@type" - name: http://xmlns.com/foaf/0.1/name -url: http://example.com/about#gregg -a: http://xmlns.com/foaf/0.1/Person -name: Gregg Kellogg diff --git a/yaml/example-032-IRI-expansion-within-a-context.yml b/yaml/example-032-IRI-expansion-within-a-context.yml deleted file mode 100644 index b0c6692c..00000000 --- a/yaml/example-032-IRI-expansion-within-a-context.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 032: IRI expansion within a context ---- -"@context": - xsd: http://www.w3.org/2001/XMLSchema# - name: http://xmlns.com/foaf/0.1/name - age: - "@id": http://xmlns.com/foaf/0.1/age - "@type": xsd:integer - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" diff --git a/yaml/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.yml b/yaml/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.yml deleted file mode 100644 index b5e56e1a..00000000 --- a/yaml/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 033: Using a term to define the IRI of another term within a context ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ - xsd: http://www.w3.org/2001/XMLSchema# - name: foaf:name - age: - "@id": foaf:age - "@type": xsd:integer - homepage: - "@id": foaf:homepage - "@type": "@id" diff --git a/yaml/example-034-Using-a-compact-IRI-as-a-term.yml b/yaml/example-034-Using-a-compact-IRI-as-a-term.yml deleted file mode 100644 index 8582e4a2..00000000 --- a/yaml/example-034-Using-a-compact-IRI-as-a-term.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 034: Using a compact IRI as a term ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ - xsd: http://www.w3.org/2001/XMLSchema# - name: foaf:name - foaf:age: - "@type": xsd:integer - foaf:homepage: - "@type": "@id" diff --git a/yaml/example-035-Associating-context-definitions-with-absolute-IRIs.yml b/yaml/example-035-Associating-context-definitions-with-absolute-IRIs.yml deleted file mode 100644 index 1b4b66c5..00000000 --- a/yaml/example-035-Associating-context-definitions-with-absolute-IRIs.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 035: Associating context definitions with absolute IRIs ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ - xsd: http://www.w3.org/2001/XMLSchema# - name: foaf:name - foaf:age: - "@id": foaf:age - "@type": xsd:integer - http://xmlns.com/foaf/0.1/homepage: - "@type": "@id" diff --git a/yaml/example-037-Defining-an-context-within-a-term-definition-expanded.yml b/yaml/example-037-Defining-an-context-within-a-term-definition-expanded.yml deleted file mode 100644 index cfa1d605..00000000 --- a/yaml/example-037-Defining-an-context-within-a-term-definition-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 037: Defining an @context within a term definition-expanded ---- -- http://xmlns.com/foaf/0.1/interest: - - "@id": https://www.w3.org/TR/json-ld11/ - http://schema.org/name: - - "@value": JSON-LD - http://xmlns.com/foaf/0.1/topic: - - "@value": Linking Data - http://schema.org/name: - - "@value": Manu Sporny diff --git a/yaml/example-037-Defining-an-context-within-a-term-definition-original.yml b/yaml/example-037-Defining-an-context-within-a-term-definition-original.yml deleted file mode 100644 index 034c243d..00000000 --- a/yaml/example-037-Defining-an-context-within-a-term-definition-original.yml +++ /dev/null @@ -1,14 +0,0 @@ -Example 037: Defining an @context within a term definition-original ---- -"@context": - "@version": 1.1 - name: http://schema.org/name - interest: - "@id": http://xmlns.com/foaf/0.1/interest - "@context": - "@vocab": http://xmlns.com/foaf/0.1/ -name: Manu Sporny -interest: - "@id": https://www.w3.org/TR/json-ld11/ - name: JSON-LD - topic: Linking Data diff --git a/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.yml b/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.yml deleted file mode 100644 index a9270a89..00000000 --- a/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.yml +++ /dev/null @@ -1,14 +0,0 @@ -Example 038: Defining an @context within a term definition used on @type-expanded ---- -- "@type": - - http://schema.org/Person - http://xmlns.com/foaf/0.1/interest: - - "@id": https://www.w3.org/TR/json-ld11/ - "@type": - - http://xmlns.com/foaf/0.1/Document - http://schema.org/name: - - "@value": JSON-LD - http://xmlns.com/foaf/0.1/topic: - - "@value": Linking Data - http://schema.org/name: - - "@value": Manu Sporny diff --git a/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml b/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml deleted file mode 100644 index 4a4ebd39..00000000 --- a/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml +++ /dev/null @@ -1,18 +0,0 @@ -Example 038: Defining an @context within a term definition used on @type-original ---- -"@context": - "@version": 1.1 - name: http://schema.org/name - interest: http://xmlns.com/foaf/0.1/interest - Person: http://schema.org/Person - Document: - "@id": http://xmlns.com/foaf/0.1/Document - "@context": - "@vocab": http://xmlns.com/foaf/0.1/ -"@type": Person -name: Manu Sporny -interest: - "@id": https://www.w3.org/TR/json-ld11/ - "@type": Document - name: JSON-LD - topic: Linking Data diff --git a/yaml/example-039-Expanded-term-definition-with-type-coercion-expanded.yml b/yaml/example-039-Expanded-term-definition-with-type-coercion-expanded.yml deleted file mode 100644 index a940fed0..00000000 --- a/yaml/example-039-Expanded-term-definition-with-type-coercion-expanded.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 039: Expanded term definition with type coercion-expanded ---- -- "@id": http://example.com/docs/1 - http://purl.org/dc/terms/modified: - - "@type": http://www.w3.org/2001/XMLSchema#dateTime - "@value": '2010-05-29T14:17:39+02:00' diff --git a/yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml b/yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml deleted file mode 100644 index 02ff7c5a..00000000 --- a/yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 039: Expanded term definition with type coercion-original ---- -"@context": - modified: - "@id": http://purl.org/dc/terms/modified - "@type": http://www.w3.org/2001/XMLSchema#dateTime -"@id": http://example.com/docs/1 -modified: '2010-05-29T14:17:39+02:00' diff --git a/yaml/example-040-Expanded-value-with-type-expanded.yml b/yaml/example-040-Expanded-value-with-type-expanded.yml deleted file mode 100644 index 7ae1f1f3..00000000 --- a/yaml/example-040-Expanded-value-with-type-expanded.yml +++ /dev/null @@ -1,5 +0,0 @@ -Example 040: Expanded value with type-expanded ---- -- http://purl.org/dc/terms/modified: - - "@type": http://www.w3.org/2001/XMLSchema#dateTime - "@value": '2010-05-29T14:17:39+02:00' diff --git a/yaml/example-040-Expanded-value-with-type-original.yml b/yaml/example-040-Expanded-value-with-type-original.yml deleted file mode 100644 index d5ae3880..00000000 --- a/yaml/example-040-Expanded-value-with-type-original.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 040: Expanded value with type-original ---- -"@context": - modified: - "@id": http://purl.org/dc/terms/modified -modified: - "@value": '2010-05-29T14:17:39+02:00' - "@type": http://www.w3.org/2001/XMLSchema#dateTime diff --git a/yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml b/yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml deleted file mode 100644 index b486f316..00000000 --- a/yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 041: Example demonstrating the context-sensitivity for @type ---- -"@id": http://example.org/posts#TripToWestVirginia -"@type": http://schema.org/BlogPosting -http://purl.org/dc/terms/modified: - "@value": '2010-05-29T14:17:39+02:00' - "@type": http://www.w3.org/2001/XMLSchema#dateTime diff --git a/yaml/example-043-Expanded-term-definition-with-types-expanded.yml b/yaml/example-043-Expanded-term-definition-with-types-expanded.yml deleted file mode 100644 index bc697a23..00000000 --- a/yaml/example-043-Expanded-term-definition-with-types-expanded.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 043: Expanded term definition with types-expanded ---- -- "@id": http://example.com/people#john - http://xmlns.com/foaf/0.1/name: - - "@value": John Smith - http://xmlns.com/foaf/0.1/age: - - "@value": '41' - "@type": http://www.w3.org/2001/XMLSchema#integer - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://personal.example.org/ - - "@id": http://work.example.com/jsmith/ diff --git a/yaml/example-043-Expanded-term-definition-with-types-original.yml b/yaml/example-043-Expanded-term-definition-with-types-original.yml deleted file mode 100644 index 6b419d85..00000000 --- a/yaml/example-043-Expanded-term-definition-with-types-original.yml +++ /dev/null @@ -1,17 +0,0 @@ -Example 043: Expanded term definition with types-original ---- -"@context": - xsd: http://www.w3.org/2001/XMLSchema# - name: http://xmlns.com/foaf/0.1/name - age: - "@id": http://xmlns.com/foaf/0.1/age - "@type": xsd:integer - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -"@id": http://example.com/people#john -name: John Smith -age: '41' -homepage: -- http://personal.example.org/ -- http://work.example.com/jsmith/ diff --git a/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.yml b/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.yml deleted file mode 100644 index 9bbdbe48..00000000 --- a/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 044: Term definitions using compact and absolute IRIs-expanded ---- -- http://xmlns.com/foaf/0.1/age: - - "@type": http://www.w3.org/2001/XMLSchema#integer - "@value": '41' - http://xmlns.com/foaf/0.1/name: - - "@value": John Smith - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://personal.example.org/ - - "@id": http://work.example.com/jsmith/ diff --git a/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml b/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml deleted file mode 100644 index 33312c53..00000000 --- a/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 044: Term definitions using compact and absolute IRIs-original ---- -"@context": - xsd: http://www.w3.org/2001/XMLSchema# - foaf: http://xmlns.com/foaf/0.1/ - foaf:age: - "@id": http://xmlns.com/foaf/0.1/age - "@type": xsd:integer - http://xmlns.com/foaf/0.1/homepage: - "@type": "@id" -foaf:name: John Smith -foaf:age: '41' -http://xmlns.com/foaf/0.1/homepage: -- http://personal.example.org/ -- http://work.example.com/jsmith/ diff --git a/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.yml b/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.yml deleted file mode 100644 index 8dcc4e5d..00000000 --- a/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 045: Setting the default language of a JSON-LD document-expanded ---- -- http://example.org/name: - - "@value": 花澄 - "@language": ja - http://example.org/occupation: - - "@value": 科学者 - "@language": ja diff --git a/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.yml b/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.yml deleted file mode 100644 index 3299086c..00000000 --- a/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 045: Setting the default language of a JSON-LD document-original ---- -"@context": - name: http://example.org/name - occupation: http://example.org/occupation - "@language": ja -name: 花澄 -occupation: 科学者 diff --git a/yaml/example-046-Clearing-default-language.yml b/yaml/example-046-Clearing-default-language.yml deleted file mode 100644 index 16fa8042..00000000 --- a/yaml/example-046-Clearing-default-language.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 046: Clearing default language ---- -"@context": - "@language": ja -name: 花澄 -details: - "@context": - "@language": - occupation: Ninja diff --git a/yaml/example-047-Expanded-term-definition-with-language.yml b/yaml/example-047-Expanded-term-definition-with-language.yml deleted file mode 100644 index 1ba6579c..00000000 --- a/yaml/example-047-Expanded-term-definition-with-language.yml +++ /dev/null @@ -1,20 +0,0 @@ -Example 047: Expanded term definition with language ---- -"@context": - ex: http://example.com/vocab/ - "@language": ja - name: - "@id": ex:name - "@language": - occupation: - "@id": ex:occupation - occupation_en: - "@id": ex:occupation - "@language": en - occupation_cs: - "@id": ex:occupation - "@language": cs -name: Yagyū Muneyoshi -occupation: 忍者 -occupation_en: Ninja -occupation_cs: Nindža diff --git a/yaml/example-048-Language-map-expressing-a-property-in-three-languages.yml b/yaml/example-048-Language-map-expressing-a-property-in-three-languages.yml deleted file mode 100644 index b0dbb32f..00000000 --- a/yaml/example-048-Language-map-expressing-a-property-in-three-languages.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 048: Language map expressing a property in three languages ---- -"@context": - occupation: - "@id": ex:occupation - "@container": "@language" -name: Yagyū Muneyoshi -occupation: - ja: 忍者 - en: Ninja - cs: Nindža diff --git a/yaml/example-049-Overriding-default-language-using-an-expanded-value.yml b/yaml/example-049-Overriding-default-language-using-an-expanded-value.yml deleted file mode 100644 index 1ceab2a0..00000000 --- a/yaml/example-049-Overriding-default-language-using-an-expanded-value.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 049: Overriding default language using an expanded value ---- -"@context": - "@language": ja -name: 花澄 -occupation: - "@value": Scientist - "@language": en diff --git a/yaml/example-050-Removing-language-information-using-an-expanded-value.yml b/yaml/example-050-Removing-language-information-using-an-expanded-value.yml deleted file mode 100644 index 0969c32a..00000000 --- a/yaml/example-050-Removing-language-information-using-an-expanded-value.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 050: Removing language information using an expanded value ---- -"@context": - "@language": ja -name: - "@value": Frank -occupation: - "@value": Ninja - "@language": en -speciality: 手裏剣 diff --git a/yaml/example-051-Multiple-values-with-no-inherent-order-expanded.yml b/yaml/example-051-Multiple-values-with-no-inherent-order-expanded.yml deleted file mode 100644 index bd3e26b6..00000000 --- a/yaml/example-051-Multiple-values-with-no-inherent-order-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 051: Multiple values with no inherent order-expanded ---- -- "@id": http://example.org/people#joebob - http://xmlns.com/foaf/0.1/nick: - - "@value": joe - - "@value": bob - - "@value": JB diff --git a/yaml/example-051-Multiple-values-with-no-inherent-order-original.yml b/yaml/example-051-Multiple-values-with-no-inherent-order-original.yml deleted file mode 100644 index c8521ffc..00000000 --- a/yaml/example-051-Multiple-values-with-no-inherent-order-original.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 051: Multiple values with no inherent order-original ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://example.org/people#joebob -foaf:nick: -- joe -- bob -- JB diff --git a/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.yml b/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.yml deleted file mode 100644 index f2ccbb05..00000000 --- a/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 052: Using an expanded form to set multiple values-expanded ---- -- "@id": http://example.org/articles/8 - http://purl.org/dc/terms/title: - - "@value": Das Kapital - "@language": de - - "@value": Capital - "@language": en diff --git a/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml b/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml deleted file mode 100644 index af6a7402..00000000 --- a/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 052: Using an expanded form to set multiple values-original ---- -"@context": - dc: http://purl.org/dc/terms/ -"@id": http://example.org/articles/8 -dc:title: -- "@value": Das Kapital - "@language": de -- "@value": Capital - "@language": en diff --git a/yaml/example-053-Multiple-array-values-of-different-types-expanded.yml b/yaml/example-053-Multiple-array-values-of-different-types-expanded.yml deleted file mode 100644 index c1c03e29..00000000 --- a/yaml/example-053-Multiple-array-values-of-different-types-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 053: Multiple array values of different types-expanded ---- -- "@id": http://example.org/people#michael - http://schema.org/name: - - "@value": Michael - - "@value": Mike - - "@value": Miguel - "@language": es - - "@id": https://www.wikidata.org/wiki/Q4927524 - - "@value": 42 diff --git a/yaml/example-053-Multiple-array-values-of-different-types-original.yml b/yaml/example-053-Multiple-array-values-of-different-types-original.yml deleted file mode 100644 index 9b951dcc..00000000 --- a/yaml/example-053-Multiple-array-values-of-different-types-original.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 053: Multiple array values of different types-original ---- -"@context": - schema: http://schema.org/ -"@id": http://example.org/people#michael -schema:name: -- Michael -- "@value": Mike -- "@value": Miguel - "@language": es -- "@id": https://www.wikidata.org/wiki/Q4927524 -- 42 diff --git a/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.yml b/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.yml deleted file mode 100644 index 785649be..00000000 --- a/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 054: An ordered collection of values in JSON-LD-expanded ---- -- "@id": http://example.org/people#joebob - http://xmlns.com/foaf/0.1/nick: - - "@list": - - "@value": joe - - "@value": bob - - "@value": jaybee diff --git a/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-original.yml b/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-original.yml deleted file mode 100644 index f5abe028..00000000 --- a/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 054: An ordered collection of values in JSON-LD-original ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://example.org/people#joebob -foaf:nick: - "@list": - - joe - - bob - - jaybee diff --git a/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.yml b/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.yml deleted file mode 100644 index dc9f0be6..00000000 --- a/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 055: Specifying that a collection is ordered in the context-expanded ---- -- "@id": http://example.org/people#joebob - http://xmlns.com/foaf/0.1/nick: - - "@list": - - "@value": joe - - "@value": bob - - "@value": jaybee diff --git a/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml b/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml deleted file mode 100644 index 96864e22..00000000 --- a/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 055: Specifying that a collection is ordered in the context-original ---- -"@context": - nick: - "@id": http://xmlns.com/foaf/0.1/nick - "@container": "@list" -"@id": http://example.org/people#joebob -nick: -- joe -- bob -- jaybee diff --git a/yaml/example-056-Coordinates-expressed-in-GeoJSON.yml b/yaml/example-056-Coordinates-expressed-in-GeoJSON.yml deleted file mode 100644 index c3f32649..00000000 --- a/yaml/example-056-Coordinates-expressed-in-GeoJSON.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 056: Coordinates expressed in GeoJSON ---- -type: Feature -bbox: -- -10.0 -- -10.0 -- 10.0 -- 10.0 -geometry: - type: Polygon - coordinates: - - - - -10.0 - - -10.0 - - - 10.0 - - -10.0 - - - 10.0 - - 10.0 - - - -10.0 - - -10.0 diff --git a/yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml b/yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml deleted file mode 100644 index cce1ca74..00000000 --- a/yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,28 +0,0 @@ -Example 057: Coordinates expressed in JSON-LD-expanded ---- -- "@type": - - https://purl.org/geojson/vocab#Feature - https://purl.org/geojson/vocab#bbox: - - "@list": - - "@value": -10.0 - - "@value": -10.0 - - "@value": 10.0 - - "@value": 10.0 - https://purl.org/geojson/vocab#geometry: - - "@type": - - https://purl.org/geojson/vocab#Polygon - https://purl.org/geojson/vocab#coordinates: - - "@list": - - "@list": - - "@list": - - "@value": -10.0 - - "@value": -10.0 - - "@list": - - "@value": 10.0 - - "@value": -10.0 - - "@list": - - "@value": 10.0 - - "@value": 10.0 - - "@list": - - "@value": -10.0 - - "@value": -10.0 diff --git a/yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml b/yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml deleted file mode 100644 index 1a6620db..00000000 --- a/yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml +++ /dev/null @@ -1,26 +0,0 @@ -Example 057: Coordinates expressed in JSON-LD-original ---- -"@context": - "@vocab": https://purl.org/geojson/vocab# - type: "@type" - bbox: - "@container": "@list" - coordinates: - "@container": "@list" -type: Feature -bbox: -- -10.0 -- -10.0 -- 10.0 -- 10.0 -geometry: - type: Polygon - coordinates: - - - - -10.0 - - -10.0 - - - 10.0 - - -10.0 - - - 10.0 - - 10.0 - - - -10.0 - - -10.0 diff --git a/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.yml b/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.yml deleted file mode 100644 index 95bb3d25..00000000 --- a/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 058: An unordered collection of values in JSON-LD-expanded ---- -- "@id": http://example.org/people#joebob - http://xmlns.com/foaf/0.1/nick: - - "@value": joe - - "@value": bob - - "@value": jaybee diff --git a/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-original.yml b/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-original.yml deleted file mode 100644 index 6e8924b5..00000000 --- a/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 058: An unordered collection of values in JSON-LD-original ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://example.org/people#joebob -foaf:nick: - "@set": - - joe - - bob - - jaybee diff --git a/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.yml b/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.yml deleted file mode 100644 index 3572b2eb..00000000 --- a/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 059: Specifying that a collection is unordered in the context-expanded ---- -- "@id": http://example.org/people#joebob - http://xmlns.com/foaf/0.1/nick: - - "@value": joe - - "@value": bob - - "@value": jaybee diff --git a/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml b/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml deleted file mode 100644 index 38231f48..00000000 --- a/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 059: Specifying that a collection is unordered in the context-original ---- -"@context": - nick: - "@id": http://xmlns.com/foaf/0.1/nick - "@container": "@set" -"@id": http://example.org/people#joebob -nick: -- joe -- bob -- jaybee diff --git a/yaml/example-060-Nested-properties-expanded.yml b/yaml/example-060-Nested-properties-expanded.yml deleted file mode 100644 index 242c413e..00000000 --- a/yaml/example-060-Nested-properties-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 060: Nested properties-expanded ---- -- "@id": http://example.org/myresource - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://example.org - http://www.w3.org/2004/02/skos/core#prefLabel: - - "@value": This is the main label for my resource - http://www.w3.org/2004/02/skos/core#altLabel: - - "@value": This is the other label diff --git a/yaml/example-060-Nested-properties-original.yml b/yaml/example-060-Nested-properties-original.yml deleted file mode 100644 index 32db374a..00000000 --- a/yaml/example-060-Nested-properties-original.yml +++ /dev/null @@ -1,18 +0,0 @@ -Example 060: Nested properties-original ---- -"@context": - "@version": 1.1 - skos: http://www.w3.org/2004/02/skos/core# - labels: "@nest" - main_label: - "@id": skos:prefLabel - other_label: - "@id": skos:altLabel - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -"@id": http://example.org/myresource -homepage: http://example.org -labels: - main_label: This is the main label for my resource - other_label: This is the other label diff --git a/yaml/example-061-Nested-properties-folded-into-containing-object-expanded.yml b/yaml/example-061-Nested-properties-folded-into-containing-object-expanded.yml deleted file mode 100644 index a708c5bc..00000000 --- a/yaml/example-061-Nested-properties-folded-into-containing-object-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 061: Nested properties folded into containing object-expanded ---- -- "@id": http://example.org/myresource - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://example.org - http://www.w3.org/2004/02/skos/core#prefLabel: - - "@value": This is the main label for my resource - http://www.w3.org/2004/02/skos/core#altLabel: - - "@value": This is the other label diff --git a/yaml/example-061-Nested-properties-folded-into-containing-object-original.yml b/yaml/example-061-Nested-properties-folded-into-containing-object-original.yml deleted file mode 100644 index 76e6f6c5..00000000 --- a/yaml/example-061-Nested-properties-folded-into-containing-object-original.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 061: Nested properties folded into containing object-original ---- -"@context": - skos: http://www.w3.org/2004/02/skos/core# - main_label: - "@id": skos:prefLabel - other_label: - "@id": skos:altLabel - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -"@id": http://example.org/myresource -homepage: http://example.org -main_label: This is the main label for my resource -other_label: This is the other label diff --git a/yaml/example-062-Defining-property-nesting-expanded.yml b/yaml/example-062-Defining-property-nesting-expanded.yml deleted file mode 100644 index 025eaa16..00000000 --- a/yaml/example-062-Defining-property-nesting-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 062: Defining property nesting-expanded ---- -- "@id": http://example.org/myresource - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://example.org - http://www.w3.org/2004/02/skos/core#prefLabel: - - "@value": This is the main label for my resource - http://www.w3.org/2004/02/skos/core#altLabel: - - "@value": This is the other label diff --git a/yaml/example-062-Defining-property-nesting-original.yml b/yaml/example-062-Defining-property-nesting-original.yml deleted file mode 100644 index 5370f7af..00000000 --- a/yaml/example-062-Defining-property-nesting-original.yml +++ /dev/null @@ -1,20 +0,0 @@ -Example 062: Defining property nesting-original ---- -"@context": - "@version": 1.1 - skos: http://www.w3.org/2004/02/skos/core# - labels: "@nest" - main_label: - "@id": skos:prefLabel - "@nest": labels - other_label: - "@id": skos:altLabel - "@nest": labels - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -"@id": http://example.org/myresource -homepage: http://example.org -labels: - main_label: This is the main label for my resource - other_label: This is the other label diff --git a/yaml/example-063-Referencing-node-objects-expanded.yml b/yaml/example-063-Referencing-node-objects-expanded.yml deleted file mode 100644 index d1eabe8e..00000000 --- a/yaml/example-063-Referencing-node-objects-expanded.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 063: Referencing node objects-expanded ---- -- "@type": - - http://schema.org/Person - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me - http://schema.org/name: - - "@value": Manu Sporny -- "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg diff --git a/yaml/example-063-Referencing-node-objects-original.yml b/yaml/example-063-Referencing-node-objects-original.yml deleted file mode 100644 index dc84a649..00000000 --- a/yaml/example-063-Referencing-node-objects-original.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 063: Referencing node objects-original ---- -"@context": - "@vocab": http://schema.org/ - knows: - "@type": "@id" -"@graph": -- name: Manu Sporny - "@type": Person - knows: http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg diff --git a/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yml b/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yml deleted file mode 100644 index 1955d332..00000000 --- a/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 064: Embedding a node object as property value of another node object-expanded ---- -- "@type": - - http://schema.org/Person - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg - http://schema.org/name: - - "@value": Manu Sporny diff --git a/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml b/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml deleted file mode 100644 index b92d67e8..00000000 --- a/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 064: Embedding a node object as property value of another node object-original ---- -"@context": - "@vocab": http://schema.org/ -"@type": Person -name: Manu Sporny -knows: - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg diff --git a/yaml/example-065-Referencing-an-unidentified-node-expanded.yml b/yaml/example-065-Referencing-an-unidentified-node-expanded.yml deleted file mode 100644 index 2e3aa0ed..00000000 --- a/yaml/example-065-Referencing-an-unidentified-node-expanded.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 065: Referencing an unidentified node-expanded ---- -- "@id": _:b0 - "@type": - - http://schema.org/Person - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg - http://schema.org/knows: - - "@id": _:b0 - http://schema.org/name: - - "@value": Manu Sporny diff --git a/yaml/example-065-Referencing-an-unidentified-node-original.yml b/yaml/example-065-Referencing-an-unidentified-node-original.yml deleted file mode 100644 index 601bd500..00000000 --- a/yaml/example-065-Referencing-an-unidentified-node-original.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 065: Referencing an unidentified node-original ---- -"@context": - "@vocab": http://schema.org/ -"@id": _:b0 -"@type": Person -name: Manu Sporny -knows: - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: - "@id": _:b0 diff --git a/yaml/example-066-Specifying-a-local-blank-node-identifier-expanded.yml b/yaml/example-066-Specifying-a-local-blank-node-identifier-expanded.yml deleted file mode 100644 index dd8a0b8e..00000000 --- a/yaml/example-066-Specifying-a-local-blank-node-identifier-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 066: Specifying a local blank node identifier-expanded ---- -- "@id": _:n1 - http://schema.org/name: - - "@value": Secret Agent 1 - http://schema.org/knows: - - http://schema.org/name: - - "@value": Secret Agent 2 - http://schema.org/knows: - - "@id": _:n1 diff --git a/yaml/example-066-Specifying-a-local-blank-node-identifier-original.yml b/yaml/example-066-Specifying-a-local-blank-node-identifier-original.yml deleted file mode 100644 index 4b9b970d..00000000 --- a/yaml/example-066-Specifying-a-local-blank-node-identifier-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 066: Specifying a local blank node identifier-original ---- -"@context": - "@vocab": http://schema.org/ -"@id": _:n1 -name: Secret Agent 1 -knows: - name: Secret Agent 2 - knows: - "@id": _:n1 diff --git a/yaml/example-067-Indexing-data-in-JSON-LD-expanded.yml b/yaml/example-067-Indexing-data-in-JSON-LD-expanded.yml deleted file mode 100644 index 1fd3286d..00000000 --- a/yaml/example-067-Indexing-data-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,21 +0,0 @@ -Example 067: Indexing data in JSON-LD-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - "@index": de diff --git a/yaml/example-067-Indexing-data-in-JSON-LD-original.yml b/yaml/example-067-Indexing-data-in-JSON-LD-original.yml deleted file mode 100644 index c5c0c433..00000000 --- a/yaml/example-067-Indexing-data-in-JSON-LD-original.yml +++ /dev/null @@ -1,22 +0,0 @@ -Example 067: Indexing data in JSON-LD-original ---- -"@context": - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/example-068-Indexing-data-using-none-expanded.yml b/yaml/example-068-Indexing-data-using-none-expanded.yml deleted file mode 100644 index fb78c88f..00000000 --- a/yaml/example-068-Indexing-data-using-none-expanded.yml +++ /dev/null @@ -1,26 +0,0 @@ -Example 068: Indexing data using @none-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - "@index": de - - "@id": http://example.com/posts/1/no-language - http://schema.org/articleBody: - - "@value": Unindexed description - http://schema.org/wordCount: - - "@value": 20 diff --git a/yaml/example-068-Indexing-data-using-none-original.yml b/yaml/example-068-Indexing-data-using-none-original.yml deleted file mode 100644 index b18edd65..00000000 --- a/yaml/example-068-Indexing-data-using-none-original.yml +++ /dev/null @@ -1,27 +0,0 @@ -Example 068: Indexing data using @none-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 - "@none": - "@id": http://example.com/posts/1/no-language - body: Unindexed description - words: 20 diff --git a/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yml b/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yml deleted file mode 100644 index 35c7abb8..00000000 --- a/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 069: Indexing languaged-tagged strings in JSON-LD-expanded ---- -- "@id": http://example.com/queen - http://example.com/vocab/label: - - "@value": The Queen - "@language": en - - "@value": Die Königin - "@language": de - - "@value": Ihre Majestät - "@language": de diff --git a/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml b/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml deleted file mode 100644 index 53b849fb..00000000 --- a/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 069: Indexing languaged-tagged strings in JSON-LD-original ---- -"@context": - vocab: http://example.com/vocab/ - label: - "@id": vocab:label - "@container": "@language" -"@id": http://example.com/queen -label: - en: The Queen - de: - - Die Königin - - Ihre Majestät diff --git a/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yml b/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yml deleted file mode 100644 index 77b2d50c..00000000 --- a/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 070: Indexing languaged-tagged strings in JSON-LD with @set representation-expanded ---- -- "@id": http://example.com/queen - http://example.com/vocab/label: - - "@value": The Queen - "@language": en - - "@value": Die Königin - "@language": de - - "@value": Ihre Majestät - "@language": de diff --git a/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml b/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml deleted file mode 100644 index e00e46cc..00000000 --- a/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml +++ /dev/null @@ -1,17 +0,0 @@ -Example 070: Indexing languaged-tagged strings in JSON-LD with @set representation-original ---- -"@context": - "@version": 1.1 - vocab: http://example.com/vocab/ - label: - "@id": vocab:label - "@container": - - "@language" - - "@set" -"@id": http://example.com/queen -label: - en: - - The Queen - de: - - Die Königin - - Ihre Majestät diff --git a/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yml b/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yml deleted file mode 100644 index 220c63a9..00000000 --- a/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 071: Indexing languaged-tagged strings using @none for no language-expanded ---- -- "@id": http://example.com/queen - http://example.com/vocab/label: - - "@value": The Queen - "@language": en - - "@value": Die Königin - "@language": de - - "@value": Ihre Majestät - "@language": de - - "@value": The Queen diff --git a/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml b/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml deleted file mode 100644 index bed8d051..00000000 --- a/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml +++ /dev/null @@ -1,14 +0,0 @@ -Example 071: Indexing languaged-tagged strings using @none for no language-original ---- -"@context": - vocab: http://example.com/vocab/ - label: - "@id": vocab:label - "@container": "@language" -"@id": http://example.com/queen -label: - en: The Queen - de: - - Die Königin - - Ihre Majestät - "@none": The Queen diff --git a/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yml b/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yml deleted file mode 100644 index f0683631..00000000 --- a/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 072: Indexing data in JSON-LD by node identifiers-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 diff --git a/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml b/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml deleted file mode 100644 index 34012e49..00000000 --- a/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml +++ /dev/null @@ -1,21 +0,0 @@ -Example 072: Indexing data in JSON-LD by node identifiers-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@id" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - http://example.com/posts/1/en: - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - http://example.com/posts/1/de: - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yml b/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yml deleted file mode 100644 index 2937e1c7..00000000 --- a/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 073: Indexing data in JSON-LD by node identifiers with @set representation-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 diff --git a/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml b/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml deleted file mode 100644 index 0b6818a7..00000000 --- a/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml +++ /dev/null @@ -1,23 +0,0 @@ -Example 073: Indexing data in JSON-LD by node identifiers with @set representation-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": - - "@id" - - "@set" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - http://example.com/posts/1/en: - - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - http://example.com/posts/1/de: - - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yml b/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yml deleted file mode 100644 index 281c612b..00000000 --- a/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yml +++ /dev/null @@ -1,23 +0,0 @@ -Example 074: Indexing data in JSON-LD by node identifiers using @none-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - - http://schema.org/articleBody: - - "@value": Description for object without an @id - http://schema.org/wordCount: - - "@value": 20 diff --git a/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml b/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml deleted file mode 100644 index 333f2388..00000000 --- a/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml +++ /dev/null @@ -1,25 +0,0 @@ -Example 074: Indexing data in JSON-LD by node identifiers using @none-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": "@id" - none: "@none" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - http://example.com/posts/1/en: - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - http://example.com/posts/1/de: - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 - none: - body: Description for object without an @id - words: 20 diff --git a/yaml/example-075-Indexing-data-in-JSON-LD-by-type-expanded.yml b/yaml/example-075-Indexing-data-in-JSON-LD-by-type-expanded.yml deleted file mode 100644 index ea94ad87..00000000 --- a/yaml/example-075-Indexing-data-in-JSON-LD-by-type-expanded.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 075: Indexing data in JSON-LD by type-expanded ---- -- http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/affiliation: - - "@id": https://digitalbazaar.com/ - "@type": - - http://schema.org/Corporation - http://schema.org/name: - - "@value": Digital Bazaar - - "@id": https://spec-ops.io - "@type": - - http://schema.org/ProfessionalService - http://schema.org/name: - - "@value": Spec-Ops diff --git a/yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml b/yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml deleted file mode 100644 index ee84728b..00000000 --- a/yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml +++ /dev/null @@ -1,17 +0,0 @@ -Example 075: Indexing data in JSON-LD by type-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - affiliation: - "@id": schema:affiliation - "@container": "@type" -name: Manu Sporny -affiliation: - schema:Corporation: - "@id": https://digitalbazaar.com/ - name: Digital Bazaar - schema:ProfessionalService: - "@id": https://spec-ops.io - name: Spec-Ops diff --git a/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yml b/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yml deleted file mode 100644 index ae993069..00000000 --- a/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 076: Indexing data in JSON-LD by type with @set representation-expanded ---- -- http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/affiliation: - - "@id": https://digitalbazaar.com/ - "@type": - - http://schema.org/Corporation - http://schema.org/name: - - "@value": Digital Bazaar - - "@id": https://spec-ops.io - "@type": - - http://schema.org/ProfessionalService - http://schema.org/name: - - "@value": Spec-Ops diff --git a/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml b/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml deleted file mode 100644 index f7778743..00000000 --- a/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 076: Indexing data in JSON-LD by type with @set representation-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - affiliation: - "@id": schema:affiliation - "@container": - - "@type" - - "@set" -name: Manu Sporny -affiliation: - schema:Corporation: - - "@id": https://digitalbazaar.com/ - name: Digital Bazaar - schema:ProfessionalService: - - "@id": https://spec-ops.io - name: Spec-Ops diff --git a/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.yml b/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.yml deleted file mode 100644 index cb43f0cc..00000000 --- a/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.yml +++ /dev/null @@ -1,18 +0,0 @@ -Example 077: Indexing data in JSON-LD by type using @none-expanded ---- -- http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/affiliation: - - "@id": https://digitalbazaar.com/ - "@type": - - http://schema.org/Corporation - http://schema.org/name: - - "@value": Digital Bazaar - - "@id": https://spec-ops.io - "@type": - - http://schema.org/ProfessionalService - http://schema.org/name: - - "@value": Spec-Ops - - "@id": http://greggkellogg.net/ - http://schema.org/name: - - "@value": Gregg Kellogg diff --git a/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml b/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml deleted file mode 100644 index d34f5f43..00000000 --- a/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml +++ /dev/null @@ -1,21 +0,0 @@ -Example 077: Indexing data in JSON-LD by type using @none-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - affiliation: - "@id": schema:affiliation - "@container": "@type" - none: "@none" -name: Manu Sporny -affiliation: - schema:Corporation: - "@id": https://digitalbazaar.com/ - name: Digital Bazaar - schema:ProfessionalService: - "@id": https://spec-ops.io - name: Spec-Ops - none: - "@id": http://greggkellogg.net/ - name: Gregg Kellogg diff --git a/yaml/example-078-A-document-with-children-linking-to-their-parent-expanded.yml b/yaml/example-078-A-document-with-children-linking-to-their-parent-expanded.yml deleted file mode 100644 index 1b794de2..00000000 --- a/yaml/example-078-A-document-with-children-linking-to-their-parent-expanded.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 078: A document with children linking to their parent-expanded ---- -- "@id": http://example.org/#homer - http://example.com/vocab#name: - - "@value": Homer -- "@id": http://example.org/#bart - http://example.com/vocab#name: - - "@value": Bart - http://example.com/vocab#parent: - - "@id": http://example.org/#homer -- "@id": http://example.org/#lisa - http://example.com/vocab#name: - - "@value": Lisa - http://example.com/vocab#parent: - - "@id": http://example.org/#homer diff --git a/yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml b/yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml deleted file mode 100644 index 61a14cb1..00000000 --- a/yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 078: A document with children linking to their parent-original ---- -- "@id": "#homer" - http://example.com/vocab#name: Homer -- "@id": "#bart" - http://example.com/vocab#name: Bart - http://example.com/vocab#parent: - "@id": "#homer" -- "@id": "#lisa" - http://example.com/vocab#name: Lisa - http://example.com/vocab#parent: - "@id": "#homer" diff --git a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-expanded.yml b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-expanded.yml deleted file mode 100644 index 49a33cf5..00000000 --- a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-expanded.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 079: A person and its children using a reverse property-expanded ---- -- "@id": http://example.org/#homer - http://example.com/vocab#name: - - "@value": Homer - "@reverse": - http://example.com/vocab#parent: - - "@id": http://example.org/#bart - http://example.com/vocab#name: - - "@value": Bart - - "@id": http://example.org/#lisa - http://example.com/vocab#name: - - "@value": Lisa diff --git a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-flattened.yml b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-flattened.yml deleted file mode 100644 index 46940430..00000000 --- a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-flattened.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 079: A person and its children using a reverse property-flattened ---- -- "@id": http://example.org/#homer - http://example.com/vocab#name: - - "@value": Homer -- "@id": http://example.org/#bart - http://example.com/vocab#name: - - "@value": Bart - http://example.com/vocab#parent: - - "@id": http://example.org/#homer -- "@id": http://example.org/#lisa - http://example.com/vocab#name: - - "@value": Lisa - http://example.com/vocab#parent: - - "@id": http://example.org/#homer diff --git a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml deleted file mode 100644 index a1e53868..00000000 --- a/yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 079: A person and its children using a reverse property-original ---- -"@id": "#homer" -http://example.com/vocab#name: Homer -"@reverse": - http://example.com/vocab#parent: - - "@id": "#bart" - http://example.com/vocab#name: Bart - - "@id": "#lisa" - http://example.com/vocab#name: Lisa diff --git a/yaml/example-080-Using-reverse-to-define-reverse-properties-expanded.yml b/yaml/example-080-Using-reverse-to-define-reverse-properties-expanded.yml deleted file mode 100644 index b448cdfa..00000000 --- a/yaml/example-080-Using-reverse-to-define-reverse-properties-expanded.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 080: Using @reverse to define reverse properties-expanded ---- -- "@id": http://example.org/#homer - http://example.com/vocab#name: - - "@value": Homer - "@reverse": - http://example.com/vocab#parent: - - "@id": http://example.org/#bart - http://example.com/vocab#name: - - "@value": Bart - - "@id": http://example.org/#lisa - http://example.com/vocab#name: - - "@value": Lisa diff --git a/yaml/example-080-Using-reverse-to-define-reverse-properties-flattened.yml b/yaml/example-080-Using-reverse-to-define-reverse-properties-flattened.yml deleted file mode 100644 index 8d66ec85..00000000 --- a/yaml/example-080-Using-reverse-to-define-reverse-properties-flattened.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 080: Using @reverse to define reverse properties-flattened ---- -- "@id": http://example.org/#homer - http://example.com/vocab#name: - - "@value": Homer -- "@id": http://example.org/#bart - http://example.com/vocab#name: - - "@value": Bart - http://example.com/vocab#parent: - - "@id": http://example.org/#homer -- "@id": http://example.org/#lisa - http://example.com/vocab#name: - - "@value": Lisa - http://example.com/vocab#parent: - - "@id": http://example.org/#homer diff --git a/yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml b/yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml deleted file mode 100644 index 68e0a26a..00000000 --- a/yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml +++ /dev/null @@ -1,13 +0,0 @@ -Example 080: Using @reverse to define reverse properties-original ---- -"@context": - name: http://example.com/vocab#name - children: - "@reverse": http://example.com/vocab#parent -"@id": "#homer" -name: Homer -children: -- "@id": "#bart" - name: Bart -- "@id": "#lisa" - name: Lisa diff --git a/yaml/example-081-Identifying-and-making-statements-about-a-graph-expanded.yml b/yaml/example-081-Identifying-and-making-statements-about-a-graph-expanded.yml deleted file mode 100644 index bb2aee8b..00000000 --- a/yaml/example-081-Identifying-and-making-statements-about-a-graph-expanded.yml +++ /dev/null @@ -1,21 +0,0 @@ -Example 081: Identifying and making statements about a graph-expanded ---- -- "@id": http://example.org/foaf-graph - http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date - "@graph": - - "@id": http://manu.sporny.org/about#manu - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/knows: - - "@id": http://greggkellogg.net/foaf#me - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Gregg Kellogg - http://xmlns.com/foaf/0.1/knows: - - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml b/yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml deleted file mode 100644 index f5048d69..00000000 --- a/yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml +++ /dev/null @@ -1,22 +0,0 @@ -Example 081: Identifying and making statements about a graph-original ---- -"@context": - generatedAt: - "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date - Person: http://xmlns.com/foaf/0.1/Person - name: http://xmlns.com/foaf/0.1/name - knows: - "@id": http://xmlns.com/foaf/0.1/knows - "@type": "@id" -"@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' -"@graph": -- "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.yml b/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.yml deleted file mode 100644 index e2eb6040..00000000 --- a/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.yml +++ /dev/null @@ -1,16 +0,0 @@ -Example 082: Using @graph to explicitly express the default graph-expanded ---- -- "@id": http://manu.sporny.org/about#manu - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg - http://schema.org/knows: - - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml b/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml deleted file mode 100644 index 35bc22fe..00000000 --- a/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 082: Using @graph to explicitly express the default graph-original ---- -"@context": - "@vocab": http://schema.org/ - knows: - "@type": "@id" -"@graph": -- "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yml b/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yml deleted file mode 100644 index da47cadf..00000000 --- a/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yml +++ /dev/null @@ -1,16 +0,0 @@ -Example 083: Context needs to be duplicated if @graph is not used-expanded ---- -- "@id": http://manu.sporny.org/about#manu - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Manu Sporny - http://schema.org/knows: - - "@id": http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": - - http://schema.org/Person - http://schema.org/name: - - "@value": Gregg Kellogg - http://schema.org/knows: - - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.yml b/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.yml deleted file mode 100644 index 14a265da..00000000 --- a/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.yml +++ /dev/null @@ -1,18 +0,0 @@ -Example 083: Context needs to be duplicated if @graph is not used-original ---- -- "@context": - "@vocab": http://schema.org/ - knows: - "@type": "@id" - "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me -- "@context": - "@vocab": http://schema.org/ - knows: - "@type": "@id" - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-084-Implicitly-named-graph-expanded.yml b/yaml/example-084-Implicitly-named-graph-expanded.yml deleted file mode 100644 index 138f8752..00000000 --- a/yaml/example-084-Implicitly-named-graph-expanded.yml +++ /dev/null @@ -1,23 +0,0 @@ -Example 084: Implicitly named graph-expanded ---- -- "@id": http://example.org/foaf-graph - http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date - https://w3id.org/credentials#claim: - - "@graph": - - "@id": http://manu.sporny.org/about#manu - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/knows: - - "@id": http://greggkellogg.net/foaf#me - - "@graph": - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Gregg Kellogg - http://xmlns.com/foaf/0.1/knows: - - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-084-Implicitly-named-graph-original.yml b/yaml/example-084-Implicitly-named-graph-original.yml deleted file mode 100644 index 97b0b114..00000000 --- a/yaml/example-084-Implicitly-named-graph-original.yml +++ /dev/null @@ -1,26 +0,0 @@ -Example 084: Implicitly named graph-original ---- -"@context": - "@version": 1.1 - generatedAt: - "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date - Person: http://xmlns.com/foaf/0.1/Person - name: http://xmlns.com/foaf/0.1/name - knows: - "@id": http://xmlns.com/foaf/0.1/knows - "@type": "@id" - claim: - "@id": https://w3id.org/credentials#claim - "@container": "@graph" -"@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' -claim: -- "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me -- "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml b/yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml deleted file mode 100644 index 8e36ec20..00000000 --- a/yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml +++ /dev/null @@ -1,23 +0,0 @@ -Example 085: Indexing graph data in JSON-LD-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@graph": - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@graph": - - "@id": http://example.com/posts/1/de - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 - "@index": de diff --git a/yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml b/yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml deleted file mode 100644 index ad1e6072..00000000 --- a/yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml +++ /dev/null @@ -1,25 +0,0 @@ -Example 085: Indexing graph data in JSON-LD-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": - - "@graph" - - "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - de: - "@id": http://example.com/posts/1/de - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml b/yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml deleted file mode 100644 index 61bb2b95..00000000 --- a/yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml +++ /dev/null @@ -1,22 +0,0 @@ -Example 086: Indexing graphs using @none for no index-expanded ---- -- "@id": http://example.com/ - "@type": - - http://schema.org/Blog - http://schema.org/name: - - "@value": World Financial News - http://schema.org/blogPost: - - "@graph": - - "@id": http://example.com/posts/1/en - http://schema.org/articleBody: - - "@value": World commodities were up today with heavy trading of crude oil... - http://schema.org/wordCount: - - "@value": 1539 - "@index": en - - "@graph": - - "@id": http://example.com/posts/1/no-language - http://schema.org/articleBody: - - "@value": Die Werte an Warenbörsen stiegen im Sog eines starken Handels von - Rohöl... - http://schema.org/wordCount: - - "@value": 1204 diff --git a/yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml b/yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml deleted file mode 100644 index 43394bbd..00000000 --- a/yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml +++ /dev/null @@ -1,25 +0,0 @@ -Example 086: Indexing graphs using @none for no index-original ---- -"@context": - "@version": 1.1 - schema: http://schema.org/ - name: schema:name - body: schema:articleBody - words: schema:wordCount - post: - "@id": schema:blogPost - "@container": - - "@graph" - - "@index" -"@id": http://example.com/ -"@type": schema:Blog -name: World Financial News -post: - en: - "@id": http://example.com/posts/1/en - body: World commodities were up today with heavy trading of crude oil... - words: 1539 - "@none": - "@id": http://example.com/posts/1/no-language - body: Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl... - words: 1204 diff --git a/yaml/example-087-Referencing-named-graphs-using-an-id-map-expanded.yml b/yaml/example-087-Referencing-named-graphs-using-an-id-map-expanded.yml deleted file mode 100644 index 89b5db33..00000000 --- a/yaml/example-087-Referencing-named-graphs-using-an-id-map-expanded.yml +++ /dev/null @@ -1,25 +0,0 @@ -Example 087: Referencing named graphs using an id map-expanded ---- -- "@id": http://example.org/foaf-graph - http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date - http://example.org/graphMap: - - "@graph": - - "@id": http://manu.sporny.org/about#manu - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/knows: - - "@id": http://greggkellogg.net/foaf#me - http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - "@id": http://manu.sporny.org/about#manu - - "@graph": - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/knows: - - "@id": http://manu.sporny.org/about#manu - http://xmlns.com/foaf/0.1/name: - - "@value": Gregg Kellogg - "@id": http://greggkellogg.net/foaf#me diff --git a/yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml b/yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml deleted file mode 100644 index ffafefad..00000000 --- a/yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml +++ /dev/null @@ -1,30 +0,0 @@ -Example 087: Referencing named graphs using an id map-original ---- -"@context": - "@version": 1.1 - generatedAt: - "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date - Person: http://xmlns.com/foaf/0.1/Person - name: http://xmlns.com/foaf/0.1/name - knows: - "@id": http://xmlns.com/foaf/0.1/knows - "@type": "@id" - graphMap: - "@id": http://example.org/graphMap - "@container": - - "@graph" - - "@id" -"@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' -graphMap: - http://manu.sporny.org/about#manu: - "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me - http://greggkellogg.net/foaf#me: - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml deleted file mode 100644 index 0c9bf3bb..00000000 --- a/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml +++ /dev/null @@ -1,23 +0,0 @@ -Example 088: Referencing named graphs using an id map with @none-expanded ---- -- "@id": http://example.org/foaf-graph - http://www.w3.org/ns/prov#generatedAtTime: - - "@value": '2012-04-09' - "@type": http://www.w3.org/2001/XMLSchema#date - http://example.org/graphMap: - - "@graph": - - "@id": http://manu.sporny.org/about#manu - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/knows: - - "@id": http://greggkellogg.net/foaf#me - - "@graph": - - "@id": http://greggkellogg.net/foaf#me - "@type": - - http://xmlns.com/foaf/0.1/Person - http://xmlns.com/foaf/0.1/name: - - "@value": Gregg Kellogg - http://xmlns.com/foaf/0.1/knows: - - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml deleted file mode 100644 index 8a1c8a21..00000000 --- a/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml +++ /dev/null @@ -1,29 +0,0 @@ -Example 088: Referencing named graphs using an id map with @none-original ---- -"@context": - "@version": 1.1 - generatedAt: - "@id": http://www.w3.org/ns/prov#generatedAtTime - "@type": http://www.w3.org/2001/XMLSchema#date - Person: http://xmlns.com/foaf/0.1/Person - name: http://xmlns.com/foaf/0.1/name - knows: - "@id": http://xmlns.com/foaf/0.1/knows - "@type": "@id" - graphMap: - "@id": http://example.org/graphMap - "@container": - - "@graph" - - "@id" -"@id": http://example.org/foaf-graph -generatedAt: '2012-04-09' -graphMap: - "@none": - - "@id": http://manu.sporny.org/about#manu - "@type": Person - name: Manu Sporny - knows: http://greggkellogg.net/foaf#me - - "@id": http://greggkellogg.net/foaf#me - "@type": Person - name: Gregg Kellogg - knows: http://manu.sporny.org/about#manu diff --git a/yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml b/yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml deleted file mode 100644 index cb8ed937..00000000 --- a/yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 089: Sample JSON-LD document to be expanded ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -name: Manu Sporny -homepage: http://manu.sporny.org/ diff --git a/yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml b/yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml deleted file mode 100644 index f1678c74..00000000 --- a/yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 090: Expanded form for the previous example-expanded ---- -- http://xmlns.com/foaf/0.1/name: - - "@value": Manu Sporny - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://manu.sporny.org/ diff --git a/yaml/example-091-Sample-expanded-JSON-LD-document.yml b/yaml/example-091-Sample-expanded-JSON-LD-document.yml deleted file mode 100644 index 27002c43..00000000 --- a/yaml/example-091-Sample-expanded-JSON-LD-document.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 091: Sample expanded JSON-LD document ---- -- http://xmlns.com/foaf/0.1/name: - - Manu Sporny - http://xmlns.com/foaf/0.1/homepage: - - "@id": http://manu.sporny.org/ diff --git a/yaml/example-092-Sample-context.yml b/yaml/example-092-Sample-context.yml deleted file mode 100644 index 1bbab58b..00000000 --- a/yaml/example-092-Sample-context.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 092: Sample context ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" diff --git a/yaml/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.yml b/yaml/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.yml deleted file mode 100644 index ea277441..00000000 --- a/yaml/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 093: Compact form of the sample document once sample context has been applied ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - homepage: - "@id": http://xmlns.com/foaf/0.1/homepage - "@type": "@id" -name: Manu Sporny -homepage: http://manu.sporny.org/ diff --git a/yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml b/yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml deleted file mode 100644 index 07d71286..00000000 --- a/yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 094: Sample JSON-LD document to be flattened ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - knows: http://xmlns.com/foaf/0.1/knows -"@id": http://me.markus-lanthaler.com/ -name: Markus Lanthaler -knows: -- "@id": http://manu.sporny.org/about#manu - name: Manu Sporny -- name: Dave Longley diff --git a/yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml b/yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml deleted file mode 100644 index 9d58709c..00000000 --- a/yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml +++ /dev/null @@ -1,15 +0,0 @@ -Example 095: Flattened and compacted form for the previous example ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - knows: http://xmlns.com/foaf/0.1/knows -"@graph": -- "@id": http://me.markus-lanthaler.com/ - name: Markus Lanthaler - knows: - - "@id": http://manu.sporny.org/about#manu - - "@id": _:b0 -- "@id": http://manu.sporny.org/about#manu - name: Manu Sporny -- "@id": _:b0 - name: Dave Longley diff --git a/yaml/example-096-Sample-library-frame.yml b/yaml/example-096-Sample-library-frame.yml deleted file mode 100644 index cd898d1f..00000000 --- a/yaml/example-096-Sample-library-frame.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 096: Sample library frame ---- -"@context": - "@version": 1.1 - "@vocab": http://example.org/ -"@type": Library -contains: - "@type": Book - contains: - "@type": Chapter diff --git a/yaml/example-097-Flattened-library-objects.yml b/yaml/example-097-Flattened-library-objects.yml deleted file mode 100644 index 9be32efe..00000000 --- a/yaml/example-097-Flattened-library-objects.yml +++ /dev/null @@ -1,19 +0,0 @@ -Example 097: Flattened library objects ---- -"@context": - "@vocab": http://example.org/ - contains: - "@type": "@id" -"@graph": -- "@id": http://example.org/library - "@type": Library - contains: http://example.org/library/the-republic -- "@id": http://example.org/library/the-republic - "@type": Book - creator: Plato - title: The Republic - contains: http://example.org/library/the-republic#introduction -- "@id": http://example.org/library/the-republic#introduction - "@type": Chapter - description: An introductory chapter on The Republic. - title: The Introduction diff --git a/yaml/example-098-Framed-library-objects.yml b/yaml/example-098-Framed-library-objects.yml deleted file mode 100644 index 73bffa9d..00000000 --- a/yaml/example-098-Framed-library-objects.yml +++ /dev/null @@ -1,17 +0,0 @@ -Example 098: Framed library objects ---- -"@context": - "@version": 1.1 - "@vocab": http://example.org/ -"@id": http://example.org/library -"@type": Library -contains: - "@id": http://example.org/library/the-republic - "@type": Book - contains: - "@id": http://example.org/library/the-republic#introduction - "@type": Chapter - description: An introductory chapter on The Republic. - title: The Introduction - creator: Plato - title: The Republic diff --git a/yaml/example-102-Sample-JSON-LD-document.yml b/yaml/example-102-Sample-JSON-LD-document.yml deleted file mode 100644 index 65a47e97..00000000 --- a/yaml/example-102-Sample-JSON-LD-document.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 102: Sample JSON-LD document ---- -"@context": - name: http://xmlns.com/foaf/0.1/name - knows: http://xmlns.com/foaf/0.1/knows -"@id": http://me.markus-lanthaler.com/ -name: Markus Lanthaler -knows: -- "@id": http://manu.sporny.org/about#manu - name: Manu Sporny -- name: Dave Longley diff --git a/yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml b/yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml deleted file mode 100644 index 0ebaa967..00000000 --- a/yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 103: Flattened and expanded form for the previous example ---- -- "@id": _:b0 - http://xmlns.com/foaf/0.1/name: Dave Longley -- "@id": http://manu.sporny.org/about#manu - http://xmlns.com/foaf/0.1/name: Manu Sporny -- "@id": http://me.markus-lanthaler.com/ - http://xmlns.com/foaf/0.1/name: Markus Lanthaler - http://xmlns.com/foaf/0.1/knows: - - "@id": http://manu.sporny.org/about#manu - - "@id": _:b0 diff --git a/yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml b/yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml deleted file mode 100644 index f9ada0e8..00000000 --- a/yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml +++ /dev/null @@ -1,9 +0,0 @@ -Example 106: The same set of statements serialized in JSON-LD ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://manu.sporny.org/about#manu -"@type": foaf:Person -foaf:name: Manu Sporny -foaf:homepage: - "@id": http://manu.sporny.org/ diff --git a/yaml/example-108-Same-embedding-example-in-JSON-LD.yml b/yaml/example-108-Same-embedding-example-in-JSON-LD.yml deleted file mode 100644 index aa0b4159..00000000 --- a/yaml/example-108-Same-embedding-example-in-JSON-LD.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 108: Same embedding example in JSON-LD ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://manu.sporny.org/about#manu -"@type": foaf:Person -foaf:name: Manu Sporny -foaf:knows: - "@type": foaf:Person - foaf:name: Gregg Kellogg diff --git a/yaml/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yml b/yaml/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yml deleted file mode 100644 index 2f492a6a..00000000 --- a/yaml/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 109: JSON-LD using native data types for numbers and boolean values ---- -"@context": - ex: http://example.com/vocab# -"@id": http://example.com/ -ex:numbers: -- 14 -- 2.78 -ex:booleans: -- true -- false diff --git a/yaml/example-112-Same-example-with-a-list-of-values-in-JSON-LD.yml b/yaml/example-112-Same-example-with-a-list-of-values-in-JSON-LD.yml deleted file mode 100644 index cd78c3ef..00000000 --- a/yaml/example-112-Same-example-with-a-list-of-values-in-JSON-LD.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 112: Same example with a list of values in JSON-LD ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ -"@id": http://example.org/people#joebob -"@type": foaf:Person -foaf:name: Joe Bob -foaf:nick: - "@list": - - joe - - bob - - jaybee diff --git a/yaml/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.yml b/yaml/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.yml deleted file mode 100644 index 68aa3eef..00000000 --- a/yaml/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.yml +++ /dev/null @@ -1,16 +0,0 @@ -Example 114: Same description in JSON-LD (context shared among node objects) ---- -"@context": - foaf: http://xmlns.com/foaf/0.1/ - foaf:homepage: - "@type": "@id" -"@graph": -- "@type": foaf:Person - foaf:homepage: http://example.com/bob/ - foaf:name: Bob -- "@type": foaf:Person - foaf:homepage: http://example.com/eve/ - foaf:name: Eve -- "@type": foaf:Person - foaf:homepage: http://example.com/manu/ - foaf:name: Manu diff --git a/yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml b/yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml deleted file mode 100644 index ad536e5d..00000000 --- a/yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml +++ /dev/null @@ -1,17 +0,0 @@ -Example 116: Same book description in JSON-LD (avoiding contexts) ---- -- "@id": http://purl.oreilly.com/works/45U8QJGZSQKDH8N - "@type": http://purl.org/vocab/frbr/core#Work - http://purl.org/dc/terms/title: Just a Geek - http://purl.org/dc/terms/creator: Wil Wheaton - http://purl.org/vocab/frbr/core#realization: - - "@id": http://purl.oreilly.com/products/9780596007683.BOOK - - "@id": http://purl.oreilly.com/products/9780596802189.EBOOK -- "@id": http://purl.oreilly.com/products/9780596007683.BOOK - "@type": http://purl.org/vocab/frbr/core#Expression - http://purl.org/dc/terms/type: - "@id": http://purl.oreilly.com/product-types/BOOK -- "@id": http://purl.oreilly.com/products/9780596802189.EBOOK - "@type": http://purl.org/vocab/frbr/core#Expression - http://purl.org/dc/terms/type: - "@id": http://purl.oreilly.com/product-types/EBOOK