diff --git a/Gemfile.lock b/Gemfile.lock index 068827f5..eb1d33cb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,8 +9,8 @@ GEM colorize (0.8.1) concurrent-ruby (1.0.5) connection_pool (2.2.2) - ebnf (1.1.2) - rdf (>= 2.2, < 4.0) + ebnf (1.1.3) + rdf (~> 3.0) sxp (~> 1.0) equivalent-xml (0.6.0) nokogiri (>= 1.4.3) @@ -22,11 +22,11 @@ GEM htmlentities (4.3.4) i18n (1.1.0) concurrent-ruby (~> 1.0) - json-ld (3.0.0) + json-ld (3.0.1) multi_json (~> 1.12) rdf (>= 2.2.8, < 4.0) - json-ld-preloaded (3.0.0) - json-ld (>= 2.2, < 4.0) + json-ld-preloaded (3.0.1) + json-ld (~> 3.0) multi_json (~> 1.12) rdf (~> 3.0) ld-patch (0.3.3) @@ -71,7 +71,7 @@ GEM nokogiri public_suffix (3.0.3) rake (12.3.1) - rdf (3.0.2) + rdf (3.0.3) hamster (~> 3.0) link_header (~> 0.0, >= 0.0.8) rdf-aggregate-repo (2.2.1) @@ -85,7 +85,7 @@ GEM nokogiri (~> 1.8) rdf (>= 2.2.8, < 4.0) rdf-xsd (>= 2.2, < 4.0) - rdf-n3 (3.0.0) + rdf-n3 (3.0.1) rdf (~> 3.0) rdf-normalize (0.3.3) rdf (>= 2.2, < 4.0) @@ -111,18 +111,18 @@ GEM rdf (>= 2.2, < 4.0) rdf-vocab (>= 2.2, < 4.0) rdf-xsd (>= 2.2, < 4.0) - rdf-trig (2.2.0) - ebnf (~> 1.0, >= 1.0.1) - rdf (>= 2.2, < 4.0) - rdf-turtle (>= 2.2, < 4.0) + rdf-trig (3.0.0) + ebnf (~> 1.1) + rdf (~> 3.0) + rdf-turtle (~> 3.0, >= 3.0.2) rdf-trix (2.2.1) rdf (>= 2.2, < 4.0) - rdf-turtle (3.0.1) + rdf-turtle (3.0.2) ebnf (~> 1.1) rdf (~> 3.0) rdf-vocab (3.0.3) rdf (~> 3.0) - rdf-xsd (3.0.0) + rdf-xsd (3.0.1) rdf (~> 3.0) shex (0.5.2) ebnf (~> 1.1) @@ -132,7 +132,7 @@ GEM rdf-xsd (>= 2.2, < 4.0) sparql (>= 2.2, < 4.0) sxp (~> 1.0) - sparql (3.0.1) + sparql (3.0.2) builder (~> 3.2) ebnf (~> 1.1) rdf (~> 3.0) @@ -158,4 +158,4 @@ DEPENDENCIES rake BUNDLED WITH - 1.16.1 + 1.16.4 diff --git a/Rakefile b/Rakefile index 053ed420..acf44fd8 100644 --- a/Rakefile +++ b/Rakefile @@ -7,6 +7,6 @@ end desc "Extract Examples" task :examples do - sh %(rm -rf examples yaml trig) - sh %(bundle exec common/extract-examples.rb --example-dir examples --yaml-dir yaml --trig-dir trig index.html) + sh %(rm -rf examples yaml) + sh %(bundle exec common/extract-examples.rb --example-dir examples --yaml-dir yaml index.html) end diff --git a/common/common.js b/common/common.js index f9931af9..20e67a7c 100644 --- a/common/common.js +++ b/common/common.js @@ -43,9 +43,9 @@ function restrictReferences(utils, content) { // 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"], function(respecEvents) { +require(["core/pubsubhub"], (respecEvents) => { "use strict"; - respecEvents.sub('end', function(message) { + 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"); @@ -69,7 +69,7 @@ require(["core/pubsubhub"], function(respecEvents) { // clearRefs is recursive. Walk down the tree of // references to ensure that all references are resolved. - const clearRefs = function(theTerm) { + const clearRefs = (theTerm) => { if (termsReferencedByTerms[theTerm] ) { for (const item of termsReferencedByTerms[theTerm]) { if (termNames[item]) { @@ -142,10 +142,10 @@ require(["core/pubsubhub"], function(respecEvents) { * use include the github.io address (as it should...) * */ -require(["core/pubsubhub"], function(respecEvents) { +require(["core/pubsubhub"], (respecEvents) => { "use strict"; - respecEvents.sub('beforesave', function(documentElement) { - $("a[href]", documentElement).each( function(index) { + respecEvents.sub('beforesave', (documentElement) => { + $("a[href]", documentElement).each((index) => { // Don't rewrite these. if ($(this, documentElement).closest('dd').prev().text().match(/Latest editor|Test suite|Implementation report/)) return; if ($(this, documentElement).closest('section.preserve').length > 0) return; @@ -165,6 +165,24 @@ require(["core/pubsubhub"], function(respecEvents) { }); }); +/* +* Implement tabbed examples. +*/ +require(["core/pubsubhub"], (respecEvents) => { + "use strict"; + respecEvents.sub('end-all', (documentElement) => { + 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"); + } + } + }); +}); + function _esc(s) { return s.replace(/&/g,'&') .replace(/>/g,'>') @@ -172,9 +190,20 @@ function _esc(s) { .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(unComment(doc, content)) + return _esc(reindent(unComment(doc, content))) .replace(/\*\*\*\*([^*]*)\*\*\*\*/g, '$1') .replace(/####([^#]*)####/g, '$1'); } @@ -182,6 +211,9 @@ function updateExample(doc, content) { function unComment(doc, content) { // perform transformations to make it render and prettier - return content.replace(//, ''); + return content + .replace(//, '') + .replace(/< !--/g, ''); } diff --git a/common/extract-examples.rb b/common/extract-examples.rb index 495c9b9f..e6fe272f 100755 --- a/common/extract-examples.rb +++ b/common/extract-examples.rb @@ -26,12 +26,11 @@ schema: "http://schema.org/", xsd: "http://www.w3.org/2001/XMLSchema#" } -example_dir = yaml_dir = trig_dir = verbose = number = nil +example_dir = yaml_dir = verbose = number = nil opts = GetoptLong.new( ["--example-dir", GetoptLong::REQUIRED_ARGUMENT], ["--yaml-dir", GetoptLong::REQUIRED_ARGUMENT], - ["--trig-dir", GetoptLong::REQUIRED_ARGUMENT], ["--verbose", '-v', GetoptLong::NO_ARGUMENT], ["--number", '-n', GetoptLong::REQUIRED_ARGUMENT], ) @@ -39,7 +38,6 @@ 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 '--trig-dir' then trig_dir = arg && FileUtils::mkdir_p(arg) when '--verbose' then verbose = true when '--number' then number = arg.to_i end @@ -66,6 +64,119 @@ def justify(str) 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 @@ -82,51 +193,80 @@ def justify(str) if (title = element.attr('title').to_s).empty? error = "Example #{example_number} at line #{element.line} has no title" - next end if examples[title] warn = "Example #{example_number} at line #{element.line} uses duplicate title: #{title}" end - 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' + 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 - 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'), - 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'), - element: element.name, - line: element.line, - warn: warn, - error: error, - } - #puts "example #{example_number}: #{content}" + 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 @@ -134,13 +274,15 @@ def justify(str) 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] || ex[:element] == 'table' + if ex[:ignore] $stdout.write "i".colorize(:yellow) next end @@ -151,7 +293,7 @@ def justify(str) next end - if !%w(pre script aside).include?(ex[:element]) + 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 @@ -177,11 +319,23 @@ def justify(str) $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 = [] @@ -218,17 +372,19 @@ def justify(str) # 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] == 'json' then nil - else :expand + 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 ex[:ext] == 'json' then 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" + errors << "Example Frame #{ex[:number]} at line #{ex[:line]} references unknown example #{ex[:frame_for].inspect}" $stdout.write "F".colorize(:red) next end @@ -237,7 +393,7 @@ def justify(str) 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" + errors << "Example Context #{ex[:number]} at line #{ex[:line]} references unknown example #{ex[:context_for].inspect}" $stdout.write "F".colorize(:red) next end @@ -246,27 +402,71 @@ def justify(str) 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 ex[:ext] == 'jsonld' + 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 end if ex[:result_for] # Source is referenced - args[0] = StringIO.new(examples[ex[:result_for]][:content]) + # 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" + errors << "Example #{ex[:number]} at line #{ex[:line]} references unknown frame #{ex[:frame].inspect}" $stdout.write "F".colorize(:red) next elsif ex[:frame] @@ -274,8 +474,9 @@ def justify(str) 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" + errors << "Example #{ex[:number]} at line #{ex[:line]} references unknown context #{ex[:context].inspect}" $stdout.write "F".colorize(:red) next else @@ -304,15 +505,23 @@ def justify(str) 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 - ext = ex[:result_for] ? examples[ex[:result_for]][:ext] : ex[:ext] args[0] = RDF::Reader.for(file_extension: ext).new(args[0]) JSON::LD::API.fromRdf(*args) when :toRdf - RDF::Dataset.new statements: JSON::LD::API.toRdf(*args) + 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 @@ -324,30 +533,56 @@ def justify(str) if verbose if result.is_a?(RDF::Dataset) - $stderr.puts "result: " + result.to_trig + $stderr.puts "result:\n" + result.to_trig else - $stderr.puts "result: " + result.to_json(JSON::LD::JSON_STATE) + $stderr.puts "result:\n" + result.to_json(JSON::LD::JSON_STATE) end end begin if ex[:result_for] - # Compare to expected result + # 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: " + expected.to_trig if verbose + $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 "expected table:\n" + begin + dataset_to_table(expected) + 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 == expected_norm + 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 - expected = ::JSON.parse(content) - $stderr.puts "expected: " + expected.to_json(JSON::LD::JSON_STATE) if verbose unless result == expected errors << "Example #{ex[:number]} at line #{ex[:line]} not equivalent to #{examples[ex[:result_for]][:number]}" $stdout.write "F".colorize(:red) @@ -361,20 +596,6 @@ def justify(str) next end - # Save example as TriG - if trig_dir && (ex[:filename].match?(/\.json.*$/) || result.is_a?(RDF::Enumerable)) - # Make examples directory - FileUtils::mkdir_p(trig_dir) - fn = ex[:filename].sub(/\.json.*$/, '.trig') - unless result.is_a?(RDF::Enumerable) - result = RDF::Dataset.new(statements: JSON::LD::API.toRdf(result)) - end - - File.open(File.join(trig_dir, fn), 'w') do |f| - RDF::TriG::Writer.dump(result, f, prefixes: PREFIXES) - end - end - if ex[:warn] warnings << ex[:warn] $stdout.write "w".colorize(:yellow) diff --git a/common/terms.html b/common/terms.html index de63293d..0b2ca17a 100644 --- a/common/terms.html +++ b/common/terms.html @@ -249,7 +249,7 @@
quad
A piece of information that contains four items; a subject, a property, an object, and a graph name.
-
RDF dataset
+
RDF dataset
A dataset as specified by [[RDF11-CONCEPTS]] representing a collection of RDF graphs.
RDF resource
diff --git a/common/typographical-conventions.html b/common/typographical-conventions.html index d2bba4f5..d946ad1a 100644 --- a/common/typographical-conventions.html +++ b/common/typographical-conventions.html @@ -28,4 +28,8 @@
   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.
+ 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-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.jsonld b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.jsonld similarity index 100% rename from examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.jsonld rename to examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.jsonld 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 new file mode 100644 index 00000000..5eb3a381 --- /dev/null +++ b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.trig b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl similarity index 97% rename from trig/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.trig rename to examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl index befe8647..903388a2 100644 --- a/trig/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.trig +++ b/examples/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-turtle.ttl @@ -1,8 +1,7 @@ @prefix schema: . @prefix xsd: . - [ schema:image ; schema:name "Manu Sporny"; schema:url - ] . + ] . \ 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 new file mode 100644 index 00000000..9b795691 --- /dev/null +++ b/examples/example-005-Referencing-a-JSON-LD-context-expanded.jsonld @@ -0,0 +1,5 @@ +[{ + "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.jsonld b/examples/example-005-Referencing-a-JSON-LD-context-original.jsonld similarity index 100% rename from examples/example-005-Referencing-a-JSON-LD-context.jsonld rename to examples/example-005-Referencing-a-JSON-LD-context-original.jsonld diff --git a/examples/example-005-Referencing-a-JSON-LD-context-statements.table b/examples/example-005-Referencing-a-JSON-LD-context-statements.table new file mode 100644 index 00000000..f35caea6 --- /dev/null +++ b/examples/example-005-Referencing-a-JSON-LD-context-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-098-Expanded-form-for-the-previous-example.trig b/examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl similarity index 62% rename from trig/example-098-Expanded-form-for-the-previous-example.trig rename to examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl index aded705d..317dfa1d 100644 --- a/trig/example-098-Expanded-form-for-the-previous-example.trig +++ b/examples/example-005-Referencing-a-JSON-LD-context-turtle.ttl @@ -1,7 +1,7 @@ @prefix foaf: . @prefix xsd: . - [ + foaf:name "Manu Sporny"; foaf:homepage ; - foaf:name "Manu Sporny" - ] . + 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 new file mode 100644 index 00000000..62d4cce8 --- /dev/null +++ b/examples/example-006-In-line-context-definition-expanded.jsonld @@ -0,0 +1,5 @@ +[{ + "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.jsonld b/examples/example-006-In-line-context-definition-original.jsonld similarity index 100% rename from examples/example-006-In-line-context-definition.jsonld rename to examples/example-006-In-line-context-definition-original.jsonld diff --git a/examples/example-006-In-line-context-definition-statements.table b/examples/example-006-In-line-context-definition-statements.table new file mode 100644 index 00000000..b5fcb93a --- /dev/null +++ b/examples/example-006-In-line-context-definition-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-006-In-line-context-definition.trig b/examples/example-006-In-line-context-definition-turtle.ttl similarity index 97% rename from trig/example-006-In-line-context-definition.trig rename to examples/example-006-In-line-context-definition-turtle.ttl index befe8647..903388a2 100644 --- a/trig/example-006-In-line-context-definition.trig +++ b/examples/example-006-In-line-context-definition-turtle.ttl @@ -1,8 +1,7 @@ @prefix schema: . @prefix xsd: . - [ schema:image ; schema:name "Manu Sporny"; schema:url - ] . + ] . \ 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 new file mode 100644 index 00000000..72164ec6 --- /dev/null +++ b/examples/example-010-Term-expansion-from-context-definition-expanded.jsonld @@ -0,0 +1,3 @@ +[{ + "http://schema.org/name": [{"@value": "Manu Sporny"}] +}] \ No newline at end of file diff --git a/examples/example-010-Term-expansion-from-context-definition.jsonld b/examples/example-010-Term-expansion-from-context-definition-original.jsonld similarity index 100% rename from examples/example-010-Term-expansion-from-context-definition.jsonld rename to examples/example-010-Term-expansion-from-context-definition-original.jsonld diff --git a/examples/example-010-Term-expansion-from-context-definition-statements.table b/examples/example-010-Term-expansion-from-context-definition-statements.table new file mode 100644 index 00000000..830704bb --- /dev/null +++ b/examples/example-010-Term-expansion-from-context-definition-statements.table @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +
SubjectPropertyValue
_:b0schema:nameManu Sporny
\ No newline at end of file diff --git a/trig/example-010-Term-expansion-from-context-definition.trig b/examples/example-010-Term-expansion-from-context-definition-turtle.ttl similarity index 71% rename from trig/example-010-Term-expansion-from-context-definition.trig rename to examples/example-010-Term-expansion-from-context-definition-turtle.ttl index 62d1cf66..1be95722 100644 --- a/trig/example-010-Term-expansion-from-context-definition.trig +++ b/examples/example-010-Term-expansion-from-context-definition-turtle.ttl @@ -1,4 +1,5 @@ @prefix schema: . @prefix xsd: . - - [ schema:name "Manu Sporny"] . + [ + 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 new file mode 100644 index 00000000..95f17a6e --- /dev/null +++ b/examples/example-011-Type-coercion-expanded.jsonld @@ -0,0 +1,3 @@ +[{ + "http://schema.org/url": [{"@id": "http://manu.sporny.org/"}] +}] \ No newline at end of file diff --git a/examples/example-011-Type-coercion.jsonld b/examples/example-011-Type-coercion-original.jsonld similarity index 100% rename from examples/example-011-Type-coercion.jsonld rename to examples/example-011-Type-coercion-original.jsonld diff --git a/examples/example-011-Type-coercion-statements.table b/examples/example-011-Type-coercion-statements.table new file mode 100644 index 00000000..0fee4b82 --- /dev/null +++ b/examples/example-011-Type-coercion-statements.table @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +
SubjectPropertyValue
_:b0schema:urlhttp://manu.sporny.org/
\ No newline at end of file diff --git a/trig/example-009-IRI-as-a-key.trig b/examples/example-011-Type-coercion-turtle.ttl similarity index 65% rename from trig/example-009-IRI-as-a-key.trig rename to examples/example-011-Type-coercion-turtle.ttl index 62d1cf66..abb337b5 100644 --- a/trig/example-009-IRI-as-a-key.trig +++ b/examples/example-011-Type-coercion-turtle.ttl @@ -1,4 +1,5 @@ @prefix schema: . @prefix xsd: . - - [ schema:name "Manu Sporny"] . + [ + 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 new file mode 100644 index 00000000..f7f2d537 --- /dev/null +++ b/examples/example-012-Identifying-a-node-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "@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.jsonld b/examples/example-012-Identifying-a-node-original.jsonld similarity index 100% rename from examples/example-012-Identifying-a-node.jsonld rename to examples/example-012-Identifying-a-node-original.jsonld diff --git a/examples/example-012-Identifying-a-node-statements.table b/examples/example-012-Identifying-a-node-statements.table new file mode 100644 index 00000000..6fd3506c --- /dev/null +++ b/examples/example-012-Identifying-a-node-statements.table @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +
SubjectPropertyValue
http://me.markus-lanthaler.com/schema:nameMarkus Lanthaler
\ No newline at end of file diff --git a/trig/example-012-Identifying-a-node.trig b/examples/example-012-Identifying-a-node-turtle.ttl similarity index 97% rename from trig/example-012-Identifying-a-node.trig rename to examples/example-012-Identifying-a-node-turtle.ttl index d4bf8782..3d28306c 100644 --- a/trig/example-012-Identifying-a-node.trig +++ b/examples/example-012-Identifying-a-node-turtle.ttl @@ -1,4 +1,3 @@ @prefix schema: . @prefix xsd: . - - schema:name "Markus Lanthaler" . + 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 new file mode 100644 index 00000000..70945bbe --- /dev/null +++ b/examples/example-013-Specifying-the-type-for-a-node-expanded.jsonld @@ -0,0 +1,6 @@ +[{ + "@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.jsonld b/examples/example-013-Specifying-the-type-for-a-node-original.jsonld similarity index 100% rename from examples/example-013-Specifying-the-type-for-a-node.jsonld rename to examples/example-013-Specifying-the-type-for-a-node-original.jsonld 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 new file mode 100644 index 00000000..8ba64584 --- /dev/null +++ b/examples/example-013-Specifying-the-type-for-a-node-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-013-Specifying-the-type-for-a-node.trig b/examples/example-013-Specifying-the-type-for-a-node-turtle.ttl similarity index 52% rename from trig/example-013-Specifying-the-type-for-a-node.trig rename to examples/example-013-Specifying-the-type-for-a-node-turtle.ttl index 554a32cc..5b8eef82 100644 --- a/trig/example-013-Specifying-the-type-for-a-node.trig +++ b/examples/example-013-Specifying-the-type-for-a-node-turtle.ttl @@ -1,7 +1,5 @@ -@prefix rdf: . @prefix schema: . @prefix xsd: . - a schema:Person; - schema:familyName "Lanthaler"; - schema:givenName "Markus" . + 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 new file mode 100644 index 00000000..9ec0c7b3 --- /dev/null +++ b/examples/example-014-Specifying-multiple-types-for-a-node-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "@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.jsonld b/examples/example-014-Specifying-multiple-types-for-a-node-original.jsonld similarity index 100% rename from examples/example-014-Specifying-multiple-types-for-a-node.jsonld rename to examples/example-014-Specifying-multiple-types-for-a-node-original.jsonld 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 new file mode 100644 index 00000000..fb72a8e8 --- /dev/null +++ b/examples/example-014-Specifying-multiple-types-for-a-node-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..14168457 --- /dev/null +++ b/examples/example-014-Specifying-multiple-types-for-a-node-turtle.ttl @@ -0,0 +1,4 @@ +@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 new file mode 100644 index 00000000..d1bda8df --- /dev/null +++ b/examples/example-015-Using-a-term-to-specify-the-type-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "@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.jsonld b/examples/example-015-Using-a-term-to-specify-the-type-original.jsonld similarity index 100% rename from examples/example-015-Using-a-term-to-specify-the-type.jsonld rename to examples/example-015-Using-a-term-to-specify-the-type-original.jsonld 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 new file mode 100644 index 00000000..101473d0 --- /dev/null +++ b/examples/example-015-Using-a-term-to-specify-the-type-statements.table @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..d8e2f9f0 --- /dev/null +++ b/examples/example-015-Using-a-term-to-specify-the-type-turtle.ttl @@ -0,0 +1,3 @@ +@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 new file mode 100644 index 00000000..3c768c8c --- /dev/null +++ b/examples/example-016-Referencing-Objects-on-the-Web-expanded.jsonld @@ -0,0 +1,6 @@ +[{ + "@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.jsonld b/examples/example-016-Referencing-Objects-on-the-Web-original.jsonld similarity index 100% rename from examples/example-016-Referencing-Objects-on-the-Web.jsonld rename to examples/example-016-Referencing-Objects-on-the-Web-original.jsonld diff --git a/examples/example-016-Referencing-Objects-on-the-Web-statements.table b/examples/example-016-Referencing-Objects-on-the-Web-statements.table new file mode 100644 index 00000000..ecc5c3e2 --- /dev/null +++ b/examples/example-016-Referencing-Objects-on-the-Web-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..1ac8634a --- /dev/null +++ b/examples/example-016-Referencing-Objects-on-the-Web-turtle.ttl @@ -0,0 +1,5 @@ +@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 new file mode 100644 index 00000000..50b8c5d9 --- /dev/null +++ b/examples/example-017-Embedding-Objects-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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.jsonld b/examples/example-017-Embedding-Objects-original.jsonld similarity index 100% rename from examples/example-017-Embedding-Objects.jsonld rename to examples/example-017-Embedding-Objects-original.jsonld diff --git a/examples/example-017-Embedding-Objects-statements.table b/examples/example-017-Embedding-Objects-statements.table new file mode 100644 index 00000000..496d6a61 --- /dev/null +++ b/examples/example-017-Embedding-Objects-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..4aa4a9b9 --- /dev/null +++ b/examples/example-017-Embedding-Objects-turtle.ttl @@ -0,0 +1,7 @@ +@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 new file mode 100644 index 00000000..392b75d5 --- /dev/null +++ b/examples/example-018-Using-multiple-contexts-expanded.jsonld @@ -0,0 +1,20 @@ +[{ + "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.jsonld b/examples/example-018-Using-multiple-contexts-original.jsonld similarity index 100% rename from examples/example-018-Using-multiple-contexts.jsonld rename to examples/example-018-Using-multiple-contexts-original.jsonld diff --git a/examples/example-018-Using-multiple-contexts-statements.table b/examples/example-018-Using-multiple-contexts-statements.table new file mode 100644 index 00000000..394a8a86 --- /dev/null +++ b/examples/example-018-Using-multiple-contexts-statements.table @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..69d4e915 --- /dev/null +++ b/examples/example-018-Using-multiple-contexts-turtle.ttl @@ -0,0 +1,18 @@ +@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 new file mode 100644 index 00000000..d84971c0 --- /dev/null +++ b/examples/example-019-Scoped-contexts-within-node-objects-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "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.jsonld b/examples/example-019-Scoped-contexts-within-node-objects-original.jsonld similarity index 100% rename from examples/example-019-Scoped-contexts-within-node-objects.jsonld rename to examples/example-019-Scoped-contexts-within-node-objects-original.jsonld diff --git a/examples/example-019-Scoped-contexts-within-node-objects-statements.table b/examples/example-019-Scoped-contexts-within-node-objects-statements.table new file mode 100644 index 00000000..226ad3ff --- /dev/null +++ b/examples/example-019-Scoped-contexts-within-node-objects-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..61412eb8 --- /dev/null +++ b/examples/example-019-Scoped-contexts-within-node-objects-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..a2ed8f07 --- /dev/null +++ b/examples/example-020-Combining-external-and-local-contexts-expanded.jsonld @@ -0,0 +1,7 @@ +[{ + "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.jsonld b/examples/example-020-Combining-external-and-local-contexts-original.jsonld similarity index 100% rename from examples/example-020-Combining-external-and-local-contexts.jsonld rename to examples/example-020-Combining-external-and-local-contexts-original.jsonld diff --git a/examples/example-020-Combining-external-and-local-contexts-statements.table b/examples/example-020-Combining-external-and-local-contexts-statements.table new file mode 100644 index 00000000..1a713ee4 --- /dev/null +++ b/examples/example-020-Combining-external-and-local-contexts-statements.table @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..d7410ebd --- /dev/null +++ b/examples/example-020-Combining-external-and-local-contexts-turtle.ttl @@ -0,0 +1,6 @@ +@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-022-Using-a-common-vocabulary-prefix-expanded.jsonld b/examples/example-022-Using-a-common-vocabulary-prefix-expanded.jsonld new file mode 100644 index 00000000..48c63120 --- /dev/null +++ b/examples/example-022-Using-a-common-vocabulary-prefix-expanded.jsonld @@ -0,0 +1,5 @@ +[{ + "@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.jsonld b/examples/example-022-Using-a-common-vocabulary-prefix-original.jsonld similarity index 100% rename from examples/example-022-Using-a-common-vocabulary-prefix.jsonld rename to examples/example-022-Using-a-common-vocabulary-prefix-original.jsonld diff --git a/examples/example-022-Using-a-common-vocabulary-prefix-statements.table b/examples/example-022-Using-a-common-vocabulary-prefix-statements.table new file mode 100644 index 00000000..5bdb46cb --- /dev/null +++ b/examples/example-022-Using-a-common-vocabulary-prefix-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..61642179 --- /dev/null +++ b/examples/example-022-Using-a-common-vocabulary-prefix-turtle.ttl @@ -0,0 +1,3 @@ +@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 new file mode 100644 index 00000000..48c63120 --- /dev/null +++ b/examples/example-023-Using-the-null-keyword-to-ignore-data-expanded.jsonld @@ -0,0 +1,5 @@ +[{ + "@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.jsonld b/examples/example-023-Using-the-null-keyword-to-ignore-data-original.jsonld similarity index 100% rename from examples/example-023-Using-the-null-keyword-to-ignore-data.jsonld rename to examples/example-023-Using-the-null-keyword-to-ignore-data-original.jsonld 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 new file mode 100644 index 00000000..65360c9d --- /dev/null +++ b/examples/example-023-Using-the-null-keyword-to-ignore-data-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..61642179 --- /dev/null +++ b/examples/example-023-Using-the-null-keyword-to-ignore-data-turtle.ttl @@ -0,0 +1,3 @@ +@prefix schema: . + a schema:Restaurant; + schema:name "Brew Eats" . \ No newline at end of file diff --git a/examples/example-025-Using-as-the-vocabulary-mapping-expanded-.jsonld b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.jsonld similarity index 100% rename from examples/example-025-Using-as-the-vocabulary-mapping-expanded-.jsonld rename to examples/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.jsonld 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 new file mode 100644 index 00000000..8b3c8417 --- /dev/null +++ b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..8a64c1e9 --- /dev/null +++ b/examples/example-025-Using-as-the-vocabulary-mapping-expanded-turtle.ttl @@ -0,0 +1,2 @@ + a ; + "Brew Eats" . \ 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 new file mode 100644 index 00000000..8cd35f11 --- /dev/null +++ b/examples/example-027-Setting-the-document-base-in-a-document-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "@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.jsonld b/examples/example-027-Setting-the-document-base-in-a-document-original.jsonld similarity index 100% rename from examples/example-027-Setting-the-document-base-in-a-document.jsonld rename to examples/example-027-Setting-the-document-base-in-a-document-original.jsonld 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 new file mode 100644 index 00000000..54ec57b8 --- /dev/null +++ b/examples/example-027-Setting-the-document-base-in-a-document-statements.table @@ -0,0 +1,14 @@ + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..3da37cbf --- /dev/null +++ b/examples/example-027-Setting-the-document-base-in-a-document-turtle.ttl @@ -0,0 +1,3 @@ +@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 new file mode 100644 index 00000000..31a2b925 --- /dev/null +++ b/examples/example-028-Prefix-expansion-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "@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.jsonld b/examples/example-028-Prefix-expansion-original.jsonld similarity index 100% rename from examples/example-028-Prefix-expansion.jsonld rename to examples/example-028-Prefix-expansion-original.jsonld diff --git a/examples/example-028-Prefix-expansion-statements.table b/examples/example-028-Prefix-expansion-statements.table new file mode 100644 index 00000000..f8b614dc --- /dev/null +++ b/examples/example-028-Prefix-expansion-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
_:b0rdf:typefoaf:Person
_:b0foaf:nameDave Longley
\ No newline at end of file diff --git a/trig/example-028-Prefix-expansion.trig b/examples/example-028-Prefix-expansion-turtle.ttl similarity index 68% rename from trig/example-028-Prefix-expansion.trig rename to examples/example-028-Prefix-expansion-turtle.ttl index 2aade2aa..7b4af95d 100644 --- a/trig/example-028-Prefix-expansion.trig +++ b/examples/example-028-Prefix-expansion-turtle.ttl @@ -1,8 +1,6 @@ @prefix foaf: . -@prefix rdf: . @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 new file mode 100644 index 00000000..24ed00eb --- /dev/null +++ b/examples/example-029-Using-vocabularies-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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.jsonld b/examples/example-029-Using-vocabularies-original.jsonld similarity index 100% rename from examples/example-029-Using-vocabularies.jsonld rename to examples/example-029-Using-vocabularies-original.jsonld diff --git a/examples/example-029-Using-vocabularies-statements.table b/examples/example-029-Using-vocabularies-statements.table new file mode 100644 index 00000000..869329d3 --- /dev/null +++ b/examples/example-029-Using-vocabularies-statements.table @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..7bf236b3 --- /dev/null +++ b/examples/example-029-Using-vocabularies-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..3263d375 --- /dev/null +++ b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "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.jsonld b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.jsonld similarity index 100% rename from examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.jsonld rename to examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.jsonld 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 new file mode 100644 index 00000000..31d660bc --- /dev/null +++ b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..1c30bad2 --- /dev/null +++ b/examples/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-turtle.ttl @@ -0,0 +1,5 @@ +@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 new file mode 100644 index 00000000..f34994b6 --- /dev/null +++ b/examples/example-031-Aliasing-keywords-expanded.jsonld @@ -0,0 +1,5 @@ +[{ + "@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.jsonld b/examples/example-031-Aliasing-keywords-original.jsonld similarity index 100% rename from examples/example-031-Aliasing-keywords.jsonld rename to examples/example-031-Aliasing-keywords-original.jsonld diff --git a/examples/example-031-Aliasing-keywords-statements.table b/examples/example-031-Aliasing-keywords-statements.table new file mode 100644 index 00000000..e982c318 --- /dev/null +++ b/examples/example-031-Aliasing-keywords-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..82d3bf74 --- /dev/null +++ b/examples/example-031-Aliasing-keywords-turtle.ttl @@ -0,0 +1,3 @@ +@prefix foaf: . + a foaf:Person; + foaf:name "Gregg Kellogg" . \ 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 new file mode 100644 index 00000000..f1d22bad --- /dev/null +++ b/examples/example-037-Defining-an-context-within-a-term-definition-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "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.jsonld b/examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld similarity index 86% rename from examples/example-037-Defining-an-context-within-a-term-definition.jsonld rename to examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld index 8cebaede..750b9ed9 100644 --- a/examples/example-037-Defining-an-context-within-a-term-definition.jsonld +++ b/examples/example-037-Defining-an-context-within-a-term-definition-original.jsonld @@ -9,7 +9,7 @@ }, "name": "Manu Sporny", "interest": { - "@id": "https://www.w3.org/TR/json-ld/", + "@id": "https://www.w3.org/TR/json-ld11/", "name": "JSON-LD", "topic": "Linking Data" } 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 new file mode 100644 index 00000000..605b4564 --- /dev/null +++ b/examples/example-037-Defining-an-context-within-a-term-definition-statements.table @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..da14b2b5 --- /dev/null +++ b/examples/example-037-Defining-an-context-within-a-term-definition-turtle.ttl @@ -0,0 +1,8 @@ +@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 new file mode 100644 index 00000000..0e59dae8 --- /dev/null +++ b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.jsonld @@ -0,0 +1,12 @@ +[{ + "@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-039-Defining-an-context-within-a-term-definition-used-on-type.jsonld b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld similarity index 82% rename from examples/example-039-Defining-an-context-within-a-term-definition-used-on-type.jsonld rename to examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld index 211dfea5..dfac38c0 100644 --- a/examples/example-039-Defining-an-context-within-a-term-definition-used-on-type.jsonld +++ b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.jsonld @@ -3,6 +3,7 @@ "@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/"} @@ -11,7 +12,7 @@ "@type": "Person", "name": "Manu Sporny", "interest": { - "@id": "https://www.w3.org/TR/json-ld/", + "@id": "https://www.w3.org/TR/json-ld11/", "@type": "Document", "name": "JSON-LD", "topic": "Linking Data" 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 new file mode 100644 index 00000000..8cdd2863 --- /dev/null +++ b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-statements.table @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6061f3d1 --- /dev/null +++ b/examples/example-038-Defining-an-context-within-a-term-definition-used-on-type-turtle.ttl @@ -0,0 +1,10 @@ +@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-038-Expanded-document-using-a-scoped-context.jsonld b/examples/example-038-Expanded-document-using-a-scoped-context.jsonld deleted file mode 100644 index f82420ca..00000000 --- a/examples/example-038-Expanded-document-using-a-scoped-context.jsonld +++ /dev/null @@ -1,8 +0,0 @@ -[{ - "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"}] - }] -}] \ 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 new file mode 100644 index 00000000..2c526466 --- /dev/null +++ b/examples/example-039-Expanded-term-definition-with-type-coercion-expanded.jsonld @@ -0,0 +1,9 @@ +[{ + "@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-040-Expanded-term-definition-with-type-coercion.jsonld b/examples/example-039-Expanded-term-definition-with-type-coercion-original.jsonld similarity index 100% rename from examples/example-040-Expanded-term-definition-with-type-coercion.jsonld rename to examples/example-039-Expanded-term-definition-with-type-coercion-original.jsonld 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 new file mode 100644 index 00000000..534fc4bd --- /dev/null +++ b/examples/example-039-Expanded-term-definition-with-type-coercion-statements.table @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +
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-040-term-definition-with-type-coercion-Turtle.ttl b/examples/example-039-Expanded-term-definition-with-type-coercion-turtle.ttl similarity index 100% rename from examples/example-040-term-definition-with-type-coercion-Turtle.ttl rename to examples/example-039-Expanded-term-definition-with-type-coercion-turtle.ttl diff --git a/examples/example-040-Expanded-value-with-type-expanded.jsonld b/examples/example-040-Expanded-value-with-type-expanded.jsonld new file mode 100644 index 00000000..20f26c02 --- /dev/null +++ b/examples/example-040-Expanded-value-with-type-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "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-041-Expanded-value-with-type.jsonld b/examples/example-040-Expanded-value-with-type-original.jsonld similarity index 100% rename from examples/example-041-Expanded-value-with-type.jsonld rename to examples/example-040-Expanded-value-with-type-original.jsonld diff --git a/examples/example-040-Expanded-value-with-type-statements.table b/examples/example-040-Expanded-value-with-type-statements.table new file mode 100644 index 00000000..58d3187e --- /dev/null +++ b/examples/example-040-Expanded-value-with-type-statements.table @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + +
SubjectPropertyValueValue Type
_:b0dc:modified2010-05-29T14:17:39+02:00xsd:dateTime
\ No newline at end of file diff --git a/trig/example-041-Expanded-value-with-type.trig b/examples/example-040-Expanded-value-with-type-turtle.ttl similarity index 60% rename from trig/example-041-Expanded-value-with-type.trig rename to examples/example-040-Expanded-value-with-type-turtle.ttl index e129507e..66f64e02 100644 --- a/trig/example-041-Expanded-value-with-type.trig +++ b/examples/example-040-Expanded-value-with-type-turtle.ttl @@ -1,4 +1,3 @@ @prefix dc: . @prefix xsd: . - - [ dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime] . +[ dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime ] . \ No newline at end of file diff --git a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type.jsonld b/examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld similarity index 83% rename from examples/example-042-Example-demonstrating-the-context-sensitivity-for-type.jsonld rename to examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld index af13afd4..4272b88f 100644 --- a/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type.jsonld +++ b/examples/example-041-Example-demonstrating-the-context-sensitivity-for-type.jsonld @@ -1,7 +1,7 @@ { "@id": "http://example.org/posts#TripToWestVirginia", "@type": "http://schema.org/BlogPosting", - "modified": { + "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/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 new file mode 100644 index 00000000..4fa2aee2 --- /dev/null +++ b/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-original.table @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +
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-Turtle.ttl b/examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-turtle.ttl similarity index 100% rename from examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-Turtle.ttl rename to examples/example-042-Example-demonstrating-the-context-sensitivity-for-type-statements-turtle.ttl diff --git a/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld b/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld new file mode 100644 index 00000000..af64345f --- /dev/null +++ b/examples/example-043-Expanded-term-definition-with-types-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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.jsonld b/examples/example-043-Expanded-term-definition-with-types-original.jsonld similarity index 100% rename from examples/example-043-Expanded-term-definition-with-types.jsonld rename to examples/example-043-Expanded-term-definition-with-types-original.jsonld diff --git a/examples/example-043-Expanded-term-definition-with-types-statements.table b/examples/example-043-Expanded-term-definition-with-types-statements.table new file mode 100644 index 00000000..72571d25 --- /dev/null +++ b/examples/example-043-Expanded-term-definition-with-types-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..e6e79e90 --- /dev/null +++ b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.jsonld @@ -0,0 +1,9 @@ +[{ + "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.jsonld b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld similarity index 89% rename from examples/example-044-Term-definitions-using-compact-and-absolute-IRIs.jsonld rename to examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld index 38ac94c5..f958106d 100644 --- a/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs.jsonld +++ b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.jsonld @@ -1,5 +1,6 @@ { "@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", 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 new file mode 100644 index 00000000..50857f6a --- /dev/null +++ b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..cbaa6875 --- /dev/null +++ b/examples/example-044-Term-definitions-using-compact-and-absolute-IRIs-turtle.ttl @@ -0,0 +1,8 @@ +@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 new file mode 100644 index 00000000..2a6a562c --- /dev/null +++ b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.jsonld @@ -0,0 +1,4 @@ +[{ + "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.jsonld b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld similarity index 51% rename from examples/example-045-Setting-the-default-language-of-a-JSON-LD-document.jsonld rename to examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld index aba04c90..f451b7e5 100644 --- a/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document.jsonld +++ b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.jsonld @@ -1,5 +1,7 @@ { "@context": { + "name": "http://example.org/name", + "occupation": "http://example.org/occupation", "@language": "ja" }, "name": "花澄", 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 new file mode 100644 index 00000000..b9b960c7 --- /dev/null +++ b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-statements.table @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..44c94912 --- /dev/null +++ b/examples/example-045-Setting-the-default-language-of-a-JSON-LD-document-turtle.ttl @@ -0,0 +1,5 @@ +@prefix ex: . +[ + ex:name "花澄"@ja; + ex:occupation "科学者"@ja +] . \ 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 new file mode 100644 index 00000000..b0852d15 --- /dev/null +++ b/examples/example-051-Multiple-values-with-no-inherent-order-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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.jsonld b/examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld similarity index 61% rename from examples/example-051-Multiple-values-with-no-inherent-order.jsonld rename to examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld index a9893103..45df6280 100644 --- a/examples/example-051-Multiple-values-with-no-inherent-order.jsonld +++ b/examples/example-051-Multiple-values-with-no-inherent-order-original.jsonld @@ -1,4 +1,5 @@ { + "@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 new file mode 100644 index 00000000..092575df --- /dev/null +++ b/examples/example-051-Multiple-values-with-no-inherent-order-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..be0d7036 --- /dev/null +++ b/examples/example-051-Multiple-values-with-no-inherent-order-turtle.ttl @@ -0,0 +1,3 @@ +@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 new file mode 100644 index 00000000..9654b6bc --- /dev/null +++ b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.jsonld @@ -0,0 +1,7 @@ +[{ + "@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.jsonld b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld similarity index 72% rename from examples/example-052-Using-an-expanded-form-to-set-multiple-values.jsonld rename to examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld index c74387cf..0cbb85c5 100644 --- a/examples/example-052-Using-an-expanded-form-to-set-multiple-values.jsonld +++ b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-original.jsonld @@ -1,6 +1,7 @@ { + "@context": {"dc": "http://purl.org/dc/terms/"}, "@id": "http://example.org/articles/8", - "dc:title": [ + "dc:title": [ { "@value": "Das Kapital", "@language": "de" 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 new file mode 100644 index 00000000..50ba8e97 --- /dev/null +++ b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-statements.table @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..2156c4b7 --- /dev/null +++ b/examples/example-052-Using-an-expanded-form-to-set-multiple-values-turtle.ttl @@ -0,0 +1,3 @@ +@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 new file mode 100644 index 00000000..764c8ce1 --- /dev/null +++ b/examples/example-053-Multiple-array-values-of-different-types-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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.jsonld b/examples/example-053-Multiple-array-values-of-different-types-original.jsonld similarity index 75% rename from examples/example-053-Multiple-array-values-of-different-types.jsonld rename to examples/example-053-Multiple-array-values-of-different-types-original.jsonld index de5efd1a..cca5ae0b 100644 --- a/examples/example-053-Multiple-array-values-of-different-types.jsonld +++ b/examples/example-053-Multiple-array-values-of-different-types-original.jsonld @@ -1,6 +1,7 @@ { + "@context": {"schema": "http://schema.org/"}, "@id": "http://example.org/people#michael", - "dc:name": [ + "schema:name": [ "Michael", {"@value": "Mike"}, {"@value": "Miguel", "@language": "es"}, 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 new file mode 100644 index 00000000..1acbd15a --- /dev/null +++ b/examples/example-053-Multiple-array-values-of-different-types-statements.table @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..33949c1f --- /dev/null +++ b/examples/example-053-Multiple-array-values-of-different-types-turtle.ttl @@ -0,0 +1,7 @@ +@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 new file mode 100644 index 00000000..b97b3819 --- /dev/null +++ b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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.jsonld b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld similarity index 66% rename from examples/example-054-An-ordered-collection-of-values-in-JSON-LD.jsonld rename to examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld index 5c912e64..264e09fe 100644 --- a/examples/example-054-An-ordered-collection-of-values-in-JSON-LD.jsonld +++ b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-original.jsonld @@ -1,4 +1,5 @@ { + "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, "@id": "http://example.org/people#joebob", "foaf:nick": { "@list": [ "joe", "bob", "jaybee" ] 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 new file mode 100644 index 00000000..f5b5bf64 --- /dev/null +++ b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-statements.table @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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-056-An-ordered-collection-of-values-in-Turtle.ttl b/examples/example-054-An-ordered-collection-of-values-in-JSON-LD-turtle.ttl similarity index 100% rename from examples/example-056-An-ordered-collection-of-values-in-Turtle.ttl rename to examples/example-054-An-ordered-collection-of-values-in-JSON-LD-turtle.ttl 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 new file mode 100644 index 00000000..b97b3819 --- /dev/null +++ b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.jsonld @@ -0,0 +1,10 @@ +[{ + "@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.jsonld b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld similarity index 100% rename from examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context.jsonld rename to examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.jsonld 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 new file mode 100644 index 00000000..0ef9f7d5 --- /dev/null +++ b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-statements.table @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..00fad5ba --- /dev/null +++ b/examples/example-055-Specifying-that-a-collection-is-ordered-in-the-context-turtle.ttl @@ -0,0 +1,2 @@ +@prefix foaf: . + foaf:nick ("joe" "bob" "jaybee") . \ No newline at end of file diff --git a/examples/example-057-Coordinates-expressed-in-GeoJSON.json b/examples/example-056-Coordinates-expressed-in-GeoJSON.json similarity index 100% rename from examples/example-057-Coordinates-expressed-in-GeoJSON.json rename to examples/example-056-Coordinates-expressed-in-GeoJSON.json diff --git a/examples/example-059-Coordinates-expressed-in-JSON-LD-expanded-.json b/examples/example-057-Coordinates-expressed-in-JSON-LD-expanded.jsonld similarity index 100% rename from examples/example-059-Coordinates-expressed-in-JSON-LD-expanded-.json rename to examples/example-057-Coordinates-expressed-in-JSON-LD-expanded.jsonld diff --git a/examples/example-058-Coordinates-expressed-in-JSON-LD.json b/examples/example-057-Coordinates-expressed-in-JSON-LD-original.json similarity index 100% rename from examples/example-058-Coordinates-expressed-in-JSON-LD.json rename to examples/example-057-Coordinates-expressed-in-JSON-LD-original.json diff --git a/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table b/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table new file mode 100644 index 00000000..934edcb0 --- /dev/null +++ b/examples/example-057-Coordinates-expressed-in-JSON-LD-statements.table @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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-060-Coordinates-expressed-in-Turtle.ttl b/examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl similarity index 56% rename from examples/example-060-Coordinates-expressed-in-Turtle.ttl rename to examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl index 84981d8b..0ef592ab 100644 --- a/examples/example-060-Coordinates-expressed-in-Turtle.ttl +++ b/examples/example-057-Coordinates-expressed-in-JSON-LD-turtle.ttl @@ -1,15 +1,15 @@ @prefix geojson: . [ a geojson:Feature ; - geojson:bbox (-1.0e1 -1.0e1 1.0e1 1.0e1) ; + 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) + (-1.0E1 -1.0E1) + (1.0E1 -1.0E1) + (1.0E1 1.0E1) + (-1.0E1 -1.0E1) ) ) ] 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 new file mode 100644 index 00000000..3f3ba250 --- /dev/null +++ b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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-061-An-unordered-collection-of-values-in-JSON-LD.jsonld b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld similarity index 66% rename from examples/example-061-An-unordered-collection-of-values-in-JSON-LD.jsonld rename to examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld index d7c46664..8693e9ce 100644 --- a/examples/example-061-An-unordered-collection-of-values-in-JSON-LD.jsonld +++ b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-original.jsonld @@ -1,4 +1,5 @@ { + "@context": {"foaf": "http://xmlns.com/foaf/0.1/"}, "@id": "http://example.org/people#joebob", "foaf:nick": { "@set": [ "joe", "bob", "jaybee" ] 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 new file mode 100644 index 00000000..7b654bf4 --- /dev/null +++ b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..9c8840e8 --- /dev/null +++ b/examples/example-058-An-unordered-collection-of-values-in-JSON-LD-turtle.ttl @@ -0,0 +1,2 @@ +@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 new file mode 100644 index 00000000..3f3ba250 --- /dev/null +++ b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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-062-Specifying-that-a-collection-is-unordered-in-the-context.jsonld b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld similarity index 100% rename from examples/example-062-Specifying-that-a-collection-is-unordered-in-the-context.jsonld rename to examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.jsonld 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 new file mode 100644 index 00000000..74f013d9 --- /dev/null +++ b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..9c8840e8 --- /dev/null +++ b/examples/example-059-Specifying-that-a-collection-is-unordered-in-the-context-turtle.ttl @@ -0,0 +1,2 @@ +@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 new file mode 100644 index 00000000..9bd4e512 --- /dev/null +++ b/examples/example-060-Nested-properties-expanded.jsonld @@ -0,0 +1,12 @@ +[{ + "@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-063-Nested-properties.jsonld b/examples/example-060-Nested-properties-original.jsonld similarity index 84% rename from examples/example-063-Nested-properties.jsonld rename to examples/example-060-Nested-properties-original.jsonld index 8863e750..6281f4aa 100644 --- a/examples/example-063-Nested-properties.jsonld +++ b/examples/example-060-Nested-properties-original.jsonld @@ -5,7 +5,7 @@ "labels": "@nest", "main_label": {"@id": "skos:prefLabel"}, "other_label": {"@id": "skos:altLabel"}, - "homepage": {"@id": "http://schema.org/description", "@type": "@id"} + "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} }, "@id": "http://example.org/myresource", "homepage": "http://example.org", diff --git a/examples/example-060-Nested-properties-statements.table b/examples/example-060-Nested-properties-statements.table new file mode 100644 index 00000000..43f6d3f0 --- /dev/null +++ b/examples/example-060-Nested-properties-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..660bfd9c --- /dev/null +++ b/examples/example-060-Nested-properties-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..9bd4e512 --- /dev/null +++ b/examples/example-061-Nested-properties-folded-into-containing-object-expanded.jsonld @@ -0,0 +1,12 @@ +[{ + "@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-064-Nested-properties-folded-into-containing-object.jsonld b/examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld similarity index 81% rename from examples/example-064-Nested-properties-folded-into-containing-object.jsonld rename to examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld index ef3f643c..61cf507d 100644 --- a/examples/example-064-Nested-properties-folded-into-containing-object.jsonld +++ b/examples/example-061-Nested-properties-folded-into-containing-object-original.jsonld @@ -3,7 +3,7 @@ "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"} + "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} }, "@id": "http://example.org/myresource", "homepage": "http://example.org", 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 new file mode 100644 index 00000000..6bd887b5 --- /dev/null +++ b/examples/example-061-Nested-properties-folded-into-containing-object-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..660bfd9c --- /dev/null +++ b/examples/example-061-Nested-properties-folded-into-containing-object-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..9bd4e512 --- /dev/null +++ b/examples/example-062-Defining-property-nesting-expanded.jsonld @@ -0,0 +1,12 @@ +[{ + "@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-065-Defining-property-nesting.jsonld b/examples/example-062-Defining-property-nesting-original.jsonld similarity index 85% rename from examples/example-065-Defining-property-nesting.jsonld rename to examples/example-062-Defining-property-nesting-original.jsonld index 793ec400..af7155dd 100644 --- a/examples/example-065-Defining-property-nesting.jsonld +++ b/examples/example-062-Defining-property-nesting-original.jsonld @@ -5,7 +5,7 @@ "labels": "@nest", "main_label": {"@id": "skos:prefLabel", "@nest": "labels"}, "other_label": {"@id": "skos:altLabel", "@nest": "labels"}, - "homepage": {"@id": "http://schema.org/description", "@type": "@id"} + "homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"} }, "@id": "http://example.org/myresource", "homepage": "http://example.org", diff --git a/examples/example-062-Defining-property-nesting-statements.table b/examples/example-062-Defining-property-nesting-statements.table new file mode 100644 index 00000000..4dec2a07 --- /dev/null +++ b/examples/example-062-Defining-property-nesting-statements.table @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..660bfd9c --- /dev/null +++ b/examples/example-062-Defining-property-nesting-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..107905ff --- /dev/null +++ b/examples/example-063-Referencing-node-objects-expanded.jsonld @@ -0,0 +1,15 @@ +[{ + "@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-066-Referencing-node-objects.jsonld b/examples/example-063-Referencing-node-objects-original.jsonld similarity index 100% rename from examples/example-066-Referencing-node-objects.jsonld rename to examples/example-063-Referencing-node-objects-original.jsonld diff --git a/examples/example-063-Referencing-node-objects-statements.table b/examples/example-063-Referencing-node-objects-statements.table new file mode 100644 index 00000000..8f3a508c --- /dev/null +++ b/examples/example-063-Referencing-node-objects-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..696a4d2a --- /dev/null +++ b/examples/example-063-Referencing-node-objects-turtle.ttl @@ -0,0 +1,8 @@ +@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 new file mode 100644 index 00000000..edf9fc09 --- /dev/null +++ b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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-067-Embedding-a-node-object-as-property-value-of-another-node-object.jsonld b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld similarity index 90% rename from examples/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.jsonld rename to examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld index 08451e72..823ef1dd 100644 --- a/examples/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.jsonld +++ b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.jsonld @@ -2,6 +2,7 @@ "@context": { "@vocab": "http://schema.org/" }, + "@type": "Person", "name": "Manu Sporny", "knows": { "@id": "http://greggkellogg.net/foaf#me", 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 new file mode 100644 index 00000000..6346092f --- /dev/null +++ b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..696a4d2a --- /dev/null +++ b/examples/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-turtle.ttl @@ -0,0 +1,8 @@ +@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 new file mode 100644 index 00000000..c81b5716 --- /dev/null +++ b/examples/example-065-Referencing-an-unidentified-node-expanded.jsonld @@ -0,0 +1,17 @@ +[{ + "@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-068-Referencing-an-unidentified-node.jsonld b/examples/example-065-Referencing-an-unidentified-node-original.jsonld similarity index 92% rename from examples/example-068-Referencing-an-unidentified-node.jsonld rename to examples/example-065-Referencing-an-unidentified-node-original.jsonld index 148f2e8f..8376f66e 100644 --- a/examples/example-068-Referencing-an-unidentified-node.jsonld +++ b/examples/example-065-Referencing-an-unidentified-node-original.jsonld @@ -3,6 +3,7 @@ "@vocab": "http://schema.org/" }, "@id": "_:b0", + "@type": "Person", "name": "Manu Sporny", "knows": { "@id": "http://greggkellogg.net/foaf#me", diff --git a/examples/example-065-Referencing-an-unidentified-node-statements.table b/examples/example-065-Referencing-an-unidentified-node-statements.table new file mode 100644 index 00000000..d576e52b --- /dev/null +++ b/examples/example-065-Referencing-an-unidentified-node-statements.table @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..91e8e0e1 --- /dev/null +++ b/examples/example-065-Referencing-an-unidentified-node-turtle.ttl @@ -0,0 +1,7 @@ +@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 new file mode 100644 index 00000000..b087b488 --- /dev/null +++ b/examples/example-066-Specifying-a-local-blank-node-identifier-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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-069-Specifying-a-local-blank-node-identifier.jsonld b/examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld similarity index 73% rename from examples/example-069-Specifying-a-local-blank-node-identifier.jsonld rename to examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld index e4076848..ce28e6ed 100644 --- a/examples/example-069-Specifying-a-local-blank-node-identifier.jsonld +++ b/examples/example-066-Specifying-a-local-blank-node-identifier-original.jsonld @@ -1,4 +1,5 @@ { + "@context": {"@vocab": "http://schema.org/"}, "@id": "_:n1", "name": "Secret Agent 1", "knows": { 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 new file mode 100644 index 00000000..84e1bb17 --- /dev/null +++ b/examples/example-066-Specifying-a-local-blank-node-identifier-statements.table @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6a5b3a81 --- /dev/null +++ b/examples/example-066-Specifying-a-local-blank-node-identifier-turtle.ttl @@ -0,0 +1,5 @@ +@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 new file mode 100644 index 00000000..f57e959e --- /dev/null +++ b/examples/example-067-Indexing-data-in-JSON-LD-expanded.jsonld @@ -0,0 +1,22 @@ +[{ + "@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-070-Indexing-data-in-JSON-LD.jsonld b/examples/example-067-Indexing-data-in-JSON-LD-original.jsonld similarity index 100% rename from examples/example-070-Indexing-data-in-JSON-LD.jsonld rename to examples/example-067-Indexing-data-in-JSON-LD-original.jsonld diff --git a/examples/example-067-Indexing-data-in-JSON-LD-statements.table b/examples/example-067-Indexing-data-in-JSON-LD-statements.table new file mode 100644 index 00000000..518cb579 --- /dev/null +++ b/examples/example-067-Indexing-data-in-JSON-LD-statements.table @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..3a38ec31 --- /dev/null +++ b/examples/example-067-Indexing-data-in-JSON-LD-turtle.ttl @@ -0,0 +1,14 @@ +@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 new file mode 100644 index 00000000..66c6c46b --- /dev/null +++ b/examples/example-068-Indexing-data-using-none-expanded.jsonld @@ -0,0 +1,32 @@ +[{ + "@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-072-Indexing-data-using-none.jsonld b/examples/example-068-Indexing-data-using-none-original.jsonld similarity index 97% rename from examples/example-072-Indexing-data-using-none.jsonld rename to examples/example-068-Indexing-data-using-none-original.jsonld index d84f018c..628a1843 100644 --- a/examples/example-072-Indexing-data-using-none.jsonld +++ b/examples/example-068-Indexing-data-using-none-original.jsonld @@ -1,5 +1,6 @@ { "@context": { + "@version": 1.1, "schema": "http://schema.org/", "name": "schema:name", "body": "schema:articleBody", diff --git a/examples/example-068-Indexing-data-using-none-statements.table b/examples/example-068-Indexing-data-using-none-statements.table new file mode 100644 index 00000000..0adc9492 --- /dev/null +++ b/examples/example-068-Indexing-data-using-none-statements.table @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..24f25323 --- /dev/null +++ b/examples/example-068-Indexing-data-using-none-turtle.ttl @@ -0,0 +1,19 @@ +@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 new file mode 100644 index 00000000..847ae706 --- /dev/null +++ b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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-073-Indexing-languaged-tagged-strings-in-JSON-LD.jsonld b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld similarity index 100% rename from examples/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.jsonld rename to examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.jsonld 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 new file mode 100644 index 00000000..acbfa8f8 --- /dev/null +++ b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-statements.table @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6822f032 --- /dev/null +++ b/examples/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-turtle.ttl @@ -0,0 +1,5 @@ +@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 new file mode 100644 index 00000000..847ae706 --- /dev/null +++ b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.jsonld @@ -0,0 +1,8 @@ +[{ + "@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-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.jsonld b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld similarity index 100% rename from examples/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.jsonld rename to examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.jsonld 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 new file mode 100644 index 00000000..500ea373 --- /dev/null +++ b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-statements.table @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6822f032 --- /dev/null +++ b/examples/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-turtle.ttl @@ -0,0 +1,5 @@ +@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-data-in-JSON-LD-with-set-representation.jsonld b/examples/example-071-Indexing-data-in-JSON-LD-with-set-representation.jsonld deleted file mode 100644 index cba7ac7f..00000000 --- a/examples/example-071-Indexing-data-in-JSON-LD-with-set-representation.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": ["@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 - }] - } -} \ 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 new file mode 100644 index 00000000..abf86597 --- /dev/null +++ b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.jsonld @@ -0,0 +1,9 @@ +[{ + "@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-075-Indexing-languaged-tagged-strings-using-none-for-no-language.jsonld b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld similarity index 100% rename from examples/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.jsonld rename to examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.jsonld 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 new file mode 100644 index 00000000..93f011dc --- /dev/null +++ b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..a8d9c957 --- /dev/null +++ b/examples/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..0dd2140c --- /dev/null +++ b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.jsonld @@ -0,0 +1,18 @@ +[{ + "@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-076-Indexing-data-in-JSON-LD-by-node-identifiers.jsonld b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld similarity index 100% rename from examples/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.jsonld rename to examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.jsonld 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 new file mode 100644 index 00000000..2a4be07c --- /dev/null +++ b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-statements.table @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-070-Indexing-data-in-JSON-LD.trig b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl similarity index 54% rename from trig/example-070-Indexing-data-in-JSON-LD.trig rename to examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl index 938fca95..23358400 100644 --- a/trig/example-070-Indexing-data-in-JSON-LD.trig +++ b/examples/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-turtle.ttl @@ -1,14 +1,13 @@ @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: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 + "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 new file mode 100644 index 00000000..0dd2140c --- /dev/null +++ b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.jsonld @@ -0,0 +1,18 @@ +[{ + "@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-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.jsonld b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld similarity index 100% rename from examples/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.jsonld rename to examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.jsonld 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 new file mode 100644 index 00000000..c8004078 --- /dev/null +++ b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-statements.table @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-071-Indexing-data-in-JSON-LD-with-set-representation.trig b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl similarity index 54% rename from trig/example-071-Indexing-data-in-JSON-LD-with-set-representation.trig rename to examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl index 938fca95..23358400 100644 --- a/trig/example-071-Indexing-data-in-JSON-LD-with-set-representation.trig +++ b/examples/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-turtle.ttl @@ -1,14 +1,13 @@ @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: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 + "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 new file mode 100644 index 00000000..5ef6c29b --- /dev/null +++ b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.jsonld @@ -0,0 +1,23 @@ +[{ + "@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-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.jsonld b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld similarity index 92% rename from examples/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.jsonld rename to examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld index 480c7c00..de1fc220 100644 --- a/examples/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.jsonld +++ b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.jsonld @@ -24,7 +24,7 @@ "words": 1204 }, "none": { - "body": "Description for object within an @id", + "body": "Description for object without an @id", "words": 20 } } 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 new file mode 100644 index 00000000..7ff4bf66 --- /dev/null +++ b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-statements.table @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..7c776dff --- /dev/null +++ b/examples/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-turtle.ttl @@ -0,0 +1,16 @@ +@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 new file mode 100644 index 00000000..0482119e --- /dev/null +++ b/examples/example-075-Indexing-data-in-JSON-LD-by-type-expanded.jsonld @@ -0,0 +1,14 @@ +[{ + "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-079-Indexing-data-in-JSON-LD-by-type.jsonld b/examples/example-075-Indexing-data-in-JSON-LD-by-type-original.jsonld similarity index 100% rename from examples/example-079-Indexing-data-in-JSON-LD-by-type.jsonld rename to examples/example-075-Indexing-data-in-JSON-LD-by-type-original.jsonld 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 new file mode 100644 index 00000000..34cf363b --- /dev/null +++ b/examples/example-075-Indexing-data-in-JSON-LD-by-type-statements.table @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.trig b/examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl similarity index 79% rename from trig/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.trig rename to examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl index 0644b83b..7d4209fc 100644 --- a/trig/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.trig +++ b/examples/example-075-Indexing-data-in-JSON-LD-by-type-turtle.ttl @@ -1,15 +1,11 @@ @prefix rdf: . @prefix schema: . @prefix xsd: . - a schema:Corporation; schema:name "Digital Bazaar" . - a schema:ProfessionalService; schema:name "Spec-Ops" . - - [ - schema:affiliation , - ; +[ + 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 new file mode 100644 index 00000000..0482119e --- /dev/null +++ b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.jsonld @@ -0,0 +1,14 @@ +[{ + "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-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.jsonld b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld similarity index 100% rename from examples/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.jsonld rename to examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.jsonld 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 new file mode 100644 index 00000000..0b333c63 --- /dev/null +++ b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-statements.table @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-079-Indexing-data-in-JSON-LD-by-type.trig b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl similarity index 79% rename from trig/example-079-Indexing-data-in-JSON-LD-by-type.trig rename to examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl index 0644b83b..7d4209fc 100644 --- a/trig/example-079-Indexing-data-in-JSON-LD-by-type.trig +++ b/examples/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-turtle.ttl @@ -1,15 +1,11 @@ @prefix rdf: . @prefix schema: . @prefix xsd: . - a schema:Corporation; schema:name "Digital Bazaar" . - a schema:ProfessionalService; schema:name "Spec-Ops" . - - [ - schema:affiliation , - ; +[ + 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 new file mode 100644 index 00000000..f4e9f0c3 --- /dev/null +++ b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.jsonld @@ -0,0 +1,19 @@ +[{ + "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-081-Indexing-data-in-JSON-LD-by-type-using-none.jsonld b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld similarity index 100% rename from examples/example-081-Indexing-data-in-JSON-LD-by-type-using-none.jsonld rename to examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.jsonld 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 new file mode 100644 index 00000000..47244aff --- /dev/null +++ b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-statements.table @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-081-Indexing-data-in-JSON-LD-by-type-using-none.trig b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl similarity index 76% rename from trig/example-081-Indexing-data-in-JSON-LD-by-type-using-none.trig rename to examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl index c2b8f734..7da91685 100644 --- a/trig/example-081-Indexing-data-in-JSON-LD-by-type-using-none.trig +++ b/examples/example-077-Indexing-data-in-JSON-LD-by-type-using-none-turtle.ttl @@ -1,18 +1,15 @@ @prefix rdf: . @prefix schema: . @prefix xsd: . - - schema:name "Gregg Kellogg" . - a schema:Corporation; schema:name "Digital Bazaar" . - a schema:ProfessionalService; schema:name "Spec-Ops" . - - [ - schema:affiliation , - , - ; + 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 new file mode 100644 index 00000000..c3fa3453 --- /dev/null +++ b/examples/example-078-A-document-with-children-linking-to-their-parent-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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-082-A-document-with-children-linking-to-their-parent.jsonld b/examples/example-078-A-document-with-children-linking-to-their-parent-original.jsonld similarity index 100% rename from examples/example-082-A-document-with-children-linking-to-their-parent.jsonld rename to examples/example-078-A-document-with-children-linking-to-their-parent-original.jsonld 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 new file mode 100644 index 00000000..b8ea3bd2 --- /dev/null +++ b/examples/example-078-A-document-with-children-linking-to-their-parent-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..4888c0c8 --- /dev/null +++ b/examples/example-078-A-document-with-children-linking-to-their-parent-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..484b7726 --- /dev/null +++ b/examples/example-079-A-person-and-its-children-using-a-reverse-property-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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 new file mode 100644 index 00000000..c3fa3453 --- /dev/null +++ b/examples/example-079-A-person-and-its-children-using-a-reverse-property-flattened.jsonld @@ -0,0 +1,13 @@ +[{ + "@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-083-A-person-and-its-children-using-a-reverse-property.jsonld b/examples/example-079-A-person-and-its-children-using-a-reverse-property-original.jsonld similarity index 100% rename from examples/example-083-A-person-and-its-children-using-a-reverse-property.jsonld rename to examples/example-079-A-person-and-its-children-using-a-reverse-property-original.jsonld 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 new file mode 100644 index 00000000..5d5cf351 --- /dev/null +++ b/examples/example-079-A-person-and-its-children-using-a-reverse-property-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..4888c0c8 --- /dev/null +++ b/examples/example-079-A-person-and-its-children-using-a-reverse-property-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..484b7726 --- /dev/null +++ b/examples/example-080-Using-reverse-to-define-reverse-properties-expanded.jsonld @@ -0,0 +1,13 @@ +[{ + "@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 new file mode 100644 index 00000000..c3fa3453 --- /dev/null +++ b/examples/example-080-Using-reverse-to-define-reverse-properties-flattened.jsonld @@ -0,0 +1,13 @@ +[{ + "@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-084-Using-reverse-to-define-reverse-properties.jsonld b/examples/example-080-Using-reverse-to-define-reverse-properties-original.jsonld similarity index 100% rename from examples/example-084-Using-reverse-to-define-reverse-properties.jsonld rename to examples/example-080-Using-reverse-to-define-reverse-properties-original.jsonld 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 new file mode 100644 index 00000000..22b2134a --- /dev/null +++ b/examples/example-080-Using-reverse-to-define-reverse-properties-statements.table @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..4888c0c8 --- /dev/null +++ b/examples/example-080-Using-reverse-to-define-reverse-properties-turtle.ttl @@ -0,0 +1,6 @@ +@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 new file mode 100644 index 00000000..bfa57cc0 --- /dev/null +++ b/examples/example-081-Identifying-and-making-statements-about-a-graph-expanded.jsonld @@ -0,0 +1,22 @@ +[{ + "@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-085-Identifying-and-making-statements-about-a-graph.jsonld b/examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld similarity index 90% rename from examples/example-085-Identifying-and-making-statements-about-a-graph.jsonld rename to examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld index 8b3b54a7..c917eba6 100644 --- a/examples/example-085-Identifying-and-making-statements-about-a-graph.jsonld +++ b/examples/example-081-Identifying-and-making-statements-about-a-graph-original.jsonld @@ -6,7 +6,7 @@ }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows" + "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"} }, "@id": "http://example.org/foaf-graph", "generatedAt": "2012-04-09", 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 new file mode 100644 index 00000000..2927ac30 --- /dev/null +++ b/examples/example-081-Identifying-and-making-statements-about-a-graph-statements.table @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-085-Identifying-and-making-statements-about-a-graph.trig b/examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig similarity index 51% rename from trig/example-085-Identifying-and-making-statements-about-a-graph.trig rename to examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig index 32e316e8..8a409533 100644 --- a/trig/example-085-Identifying-and-making-statements-about-a-graph.trig +++ b/examples/example-081-Identifying-and-making-statements-about-a-graph-trig.trig @@ -1,17 +1,13 @@ -@prefix ex: . @prefix foaf: . @prefix prov: . @prefix rdf: . @prefix xsd: . - -ex:foaf-graph prov:generatedAtTime "2012-04-09"^^xsd:date . - -ex:foaf-graph { - a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; - foaf:name "Gregg Kellogg" . - + prov:generatedAtTime "2012-04-09"^^xsd:date . + { a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; - foaf:name "Manu Sporny" . -} + 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 new file mode 100644 index 00000000..da4caa44 --- /dev/null +++ b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.jsonld @@ -0,0 +1,16 @@ +[{ + "@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-086-Using-graph-to-explicitly-express-the-default-graph.jsonld b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld similarity index 68% rename from examples/example-086-Using-graph-to-explicitly-express-the-default-graph.jsonld rename to examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld index 44023a09..3e8a8914 100644 --- a/examples/example-086-Using-graph-to-explicitly-express-the-default-graph.jsonld +++ b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-original.jsonld @@ -1,14 +1,17 @@ { - "@context": {}, + "@context": { + "@vocab": "http://schema.org/", + "knows": {"@type": "@id"} + }, "@graph": [ { "@id": "http://manu.sporny.org/about#manu", - "@type": "foaf:Person", + "@type": "Person", "name": "Manu Sporny", "knows": "http://greggkellogg.net/foaf#me" }, { "@id": "http://greggkellogg.net/foaf#me", - "@type": "foaf:Person", + "@type": "Person", "name": "Gregg Kellogg", "knows": "http://manu.sporny.org/about#manu" } 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 new file mode 100644 index 00000000..1fc620be --- /dev/null +++ b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-statements.table @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-017-Embedding-Objects.trig b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig similarity index 61% rename from trig/example-017-Embedding-Objects.trig rename to examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig index a705bbb0..67e08aa1 100644 --- a/trig/example-017-Embedding-Objects.trig +++ b/examples/example-082-Using-graph-to-explicitly-express-the-default-graph-trig.trig @@ -1,10 +1,7 @@ -@prefix rdf: . @prefix schema: . -@prefix xsd: . - - a schema:Person; - schema:knows ; - schema:name "Manu Sporny" . - 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 new file mode 100644 index 00000000..da4caa44 --- /dev/null +++ b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.jsonld @@ -0,0 +1,16 @@ +[{ + "@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-087-Context-needs-to-be-duplicated-if-graph-is-not-used.jsonld b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld similarity index 52% rename from examples/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.jsonld rename to examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld index f98f105e..3459a4ca 100644 --- a/examples/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.jsonld +++ b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.jsonld @@ -1,15 +1,21 @@ [ { - "@context": {}, + "@context": { + "@vocab": "http://schema.org/", + "knows": {"@type": "@id"} + }, "@id": "http://manu.sporny.org/about#manu", - "@type": "foaf:Person", + "@type": "Person", "name": "Manu Sporny", "knows": "http://greggkellogg.net/foaf#me" }, { - "@context": {}, + "@context": { + "@vocab": "http://schema.org/", + "knows": {"@type": "@id"} + }, "@id": "http://greggkellogg.net/foaf#me", - "@type": "foaf:Person", + "@type": "Person", "name": "Gregg Kellogg", "knows": "http://manu.sporny.org/about#manu" } 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 new file mode 100644 index 00000000..d37c81e0 --- /dev/null +++ b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-statements.table @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.trig b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig similarity index 53% rename from trig/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.trig rename to examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig index c0cecfab..67e08aa1 100644 --- a/trig/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.trig +++ b/examples/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-trig.trig @@ -1,11 +1,7 @@ -@prefix rdf: . @prefix schema: . -@prefix xsd: . - a schema:Person; + schema:knows ; schema:name "Gregg Kellogg" . - - [ + a schema:Person; schema:knows ; - schema:name "Manu Sporny" - ] . + schema:name "Manu Sporny" . \ No newline at end of file diff --git a/examples/example-089-Implicitly-named-graph-after-expansion.jsonld b/examples/example-084-Implicitly-named-graph-expanded.jsonld similarity index 53% rename from examples/example-089-Implicitly-named-graph-after-expansion.jsonld rename to examples/example-084-Implicitly-named-graph-expanded.jsonld index eb06c40f..a1d0ebb1 100644 --- a/examples/example-089-Implicitly-named-graph-after-expansion.jsonld +++ b/examples/example-084-Implicitly-named-graph-expanded.jsonld @@ -1,28 +1,26 @@ [{ + "@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" }], - "@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" - }] - }, { + "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/knows": [{ - "@value": "http://manu.sporny.org/about#manu" - }], - "http://xmlns.com/foaf/0.1/name": [{ - "@value": "Gregg Kellogg" - }] + "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-Implicitly-named-graph.jsonld b/examples/example-084-Implicitly-named-graph-original.jsonld similarity index 91% rename from examples/example-088-Implicitly-named-graph.jsonld rename to examples/example-084-Implicitly-named-graph-original.jsonld index 37f3b807..7941a99e 100644 --- a/examples/example-088-Implicitly-named-graph.jsonld +++ b/examples/example-084-Implicitly-named-graph-original.jsonld @@ -7,7 +7,7 @@ }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows", + "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"}, "claim": { "@id": "https://w3id.org/credentials#claim", "@container": "@graph" diff --git a/examples/example-084-Implicitly-named-graph-statements.table b/examples/example-084-Implicitly-named-graph-statements.table new file mode 100644 index 00000000..dbb26c78 --- /dev/null +++ b/examples/example-084-Implicitly-named-graph-statements.table @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-096-Referencing-named-graphs-using-an-id-map-with-none.trig b/examples/example-084-Implicitly-named-graph-trig.trig similarity index 62% rename from trig/example-096-Referencing-named-graphs-using-an-id-map-with-none.trig rename to examples/example-084-Implicitly-named-graph-trig.trig index 2f31c5ba..1a978ea0 100644 --- a/trig/example-096-Referencing-named-graphs-using-an-id-map-with-none.trig +++ b/examples/example-084-Implicitly-named-graph-trig.trig @@ -1,20 +1,16 @@ -@prefix ex: . @prefix foaf: . @prefix prov: . @prefix rdf: . @prefix xsd: . - -ex:foaf-graph ex:graphMap [], []; - prov:generatedAtTime "2012-04-09"^^xsd:date . - + prov:generatedAtTime "2012-04-09"^^xsd:date; + _:b0, _:b1 . _:b0 { a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; + foaf:knows ; foaf:name "Manu Sporny" . } - _:b1 { a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; + foaf:knows ; foaf:name "Gregg Kellogg" . -} +} \ No newline at end of file diff --git a/examples/example-091-Indexed-graph-data-after-expansion.jsonld b/examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld similarity index 99% rename from examples/example-091-Indexed-graph-data-after-expansion.jsonld rename to examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld index ec9e5c3b..550acc10 100644 --- a/examples/example-091-Indexed-graph-data-after-expansion.jsonld +++ b/examples/example-085-Indexing-graph-data-in-JSON-LD-expanded.jsonld @@ -1,24 +1,24 @@ [{ "@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/de", + "@id": "http://example.com/posts/1/en", "http://schema.org/articleBody": [{ - "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..." + "@value": "World commodities were up today with heavy trading of crude oil..." }], - "http://schema.org/wordCount": [{"@value": 1204}] + "http://schema.org/wordCount": [{"@value": 1539}] }], - "@index": "de" + "@index": "en" }, { "@graph": [{ - "@id": "http://example.com/posts/1/en", + "@id": "http://example.com/posts/1/de", "http://schema.org/articleBody": [{ - "@value": "World commodities were up today with heavy trading of crude oil..." + "@value": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..." }], - "http://schema.org/wordCount": [{"@value": 1539}] + "http://schema.org/wordCount": [{"@value": 1204}] }], - "@index": "en" - }], - "http://schema.org/name": [{"@value": "World Financial News"}] + "@index": "de" + }] }] \ No newline at end of file diff --git a/examples/example-090-Indexing-graph-data-in-JSON-LD.jsonld b/examples/example-085-Indexing-graph-data-in-JSON-LD-original.jsonld similarity index 100% rename from examples/example-090-Indexing-graph-data-in-JSON-LD.jsonld rename to examples/example-085-Indexing-graph-data-in-JSON-LD-original.jsonld 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 new file mode 100644 index 00000000..a78b3988 --- /dev/null +++ b/examples/example-085-Indexing-graph-data-in-JSON-LD-statements.table @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6a6b56d7 --- /dev/null +++ b/examples/example-085-Indexing-graph-data-in-JSON-LD-trig.trig @@ -0,0 +1,18 @@ +@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-093-Indexed-languaged-tagged-strings-with-none-after-expansion.jsonld b/examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld similarity index 99% rename from examples/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.jsonld rename to examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld index 14b4d5d4..f48ac2de 100644 --- a/examples/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.jsonld +++ b/examples/example-086-Indexing-graphs-using-none-for-no-index-expanded.jsonld @@ -1,15 +1,8 @@ [{ "@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/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": [{ @@ -18,6 +11,13 @@ "http://schema.org/wordCount": [{"@value": 1539}] }], "@index": "en" - }], - "http://schema.org/name": [{"@value": "World Financial News"}] + }, { + "@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-092-Indexing-graphs-using-none-for-no-index.jsonld b/examples/example-086-Indexing-graphs-using-none-for-no-index-original.jsonld similarity index 100% rename from examples/example-092-Indexing-graphs-using-none-for-no-index.jsonld rename to examples/example-086-Indexing-graphs-using-none-for-no-index-original.jsonld 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 new file mode 100644 index 00000000..59674f76 --- /dev/null +++ b/examples/example-086-Indexing-graphs-using-none-for-no-index-statements.table @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..e43e7644 --- /dev/null +++ b/examples/example-086-Indexing-graphs-using-none-for-no-index-trig.trig @@ -0,0 +1,18 @@ +@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 new file mode 100644 index 00000000..e7e0c29d --- /dev/null +++ b/examples/example-087-Referencing-named-graphs-using-an-id-map-expanded.jsonld @@ -0,0 +1,32 @@ +[{ + "@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-094-Referencing-named-graphs-using-an-id-map.jsonld b/examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld similarity index 90% rename from examples/example-094-Referencing-named-graphs-using-an-id-map.jsonld rename to examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld index c8a87baa..c7e2e333 100644 --- a/examples/example-094-Referencing-named-graphs-using-an-id-map.jsonld +++ b/examples/example-087-Referencing-named-graphs-using-an-id-map-original.jsonld @@ -7,7 +7,10 @@ }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows", + "knows": { + "@id": "http://xmlns.com/foaf/0.1/knows", + "@type": "@id" + }, "graphMap": { "@id": "http://example.org/graphMap", "@container": ["@graph", "@id"] 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 new file mode 100644 index 00000000..00296003 --- /dev/null +++ b/examples/example-087-Referencing-named-graphs-using-an-id-map-statements.table @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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/trig/example-095-Referencing-named-graphs-after-expansion.trig b/examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig similarity index 60% rename from trig/example-095-Referencing-named-graphs-after-expansion.trig rename to examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig index bf686aaf..b5e5d885 100644 --- a/trig/example-095-Referencing-named-graphs-after-expansion.trig +++ b/examples/example-087-Referencing-named-graphs-using-an-id-map-trig.trig @@ -1,21 +1,19 @@ -@prefix ex: . @prefix foaf: . @prefix prov: . @prefix rdf: . @prefix xsd: . - -ex:foaf-graph ex:graphMap , - ; - prov:generatedAtTime "2012-04-09"^^xsd:date . - + + + , + ; + prov:generatedAtTime "2012-04-09"^^xsd:date . { a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; + foaf:knows ; foaf:name "Gregg Kellogg" . } - { a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; + foaf:knows ; foaf:name "Manu Sporny" . -} +} \ No newline at end of file diff --git a/examples/example-095-Referencing-named-graphs-after-expansion.jsonld b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld similarity index 54% rename from examples/example-095-Referencing-named-graphs-after-expansion.jsonld rename to examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld index e8fa1cae..5a4d7dc7 100644 --- a/examples/example-095-Referencing-named-graphs-after-expansion.jsonld +++ b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.jsonld @@ -1,34 +1,27 @@ [{ "@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": [{ - "@id": "http://greggkellogg.net/foaf#me", "@graph": [{ - "@id": "http://greggkellogg.net/foaf#me", + "@id": "http://manu.sporny.org/about#manu", "@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"}] + "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://manu.sporny.org/about#manu", + }, + { "@graph": [{ - "@id": "http://manu.sporny.org/about#manu", - "@type": [ - "http://xmlns.com/foaf/0.1/Person" - ], + "@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": [ - { - "@value": "http://greggkellogg.net/foaf#me" - } - ], - "http://xmlns.com/foaf/0.1/name": [ - { - "@value": "Manu Sporny" - } + {"@id": "http://manu.sporny.org/about#manu"} ] }] - }], - "http://www.w3.org/ns/prov#generatedAtTime": [{ - "@value": "2012-04-09", - "@type": "http://www.w3.org/2001/XMLSchema#date" }] }] \ No newline at end of file diff --git a/examples/example-096-Referencing-named-graphs-using-an-id-map-with-none.jsonld b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld similarity index 91% rename from examples/example-096-Referencing-named-graphs-using-an-id-map-with-none.jsonld rename to examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld index efb29387..d0c21cd0 100644 --- a/examples/example-096-Referencing-named-graphs-using-an-id-map-with-none.jsonld +++ b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.jsonld @@ -7,7 +7,7 @@ }, "Person": "http://xmlns.com/foaf/0.1/Person", "name": "http://xmlns.com/foaf/0.1/name", - "knows": "http://xmlns.com/foaf/0.1/knows", + "knows": {"@id": "http://xmlns.com/foaf/0.1/knows", "@type": "@id"}, "graphMap": { "@id": "http://example.org/graphMap", "@container": ["@graph", "@id"] 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 new file mode 100644 index 00000000..a2933df9 --- /dev/null +++ b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-statements.table @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..0500b888 --- /dev/null +++ b/examples/example-088-Referencing-named-graphs-using-an-id-map-with-none-trig.trig @@ -0,0 +1,16 @@ +@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-097-Sample-JSON-LD-document-to-be-expanded.jsonld b/examples/example-089-Sample-JSON-LD-document-to-be-expanded.jsonld similarity index 100% rename from examples/example-097-Sample-JSON-LD-document-to-be-expanded.jsonld rename to examples/example-089-Sample-JSON-LD-document-to-be-expanded.jsonld diff --git a/examples/example-098-Expanded-form-for-the-previous-example.jsonld b/examples/example-090-Expanded-form-for-the-previous-example-expanded.jsonld similarity index 100% rename from examples/example-098-Expanded-form-for-the-previous-example.jsonld rename to examples/example-090-Expanded-form-for-the-previous-example-expanded.jsonld 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 new file mode 100644 index 00000000..7d44e377 --- /dev/null +++ b/examples/example-090-Expanded-form-for-the-previous-example-statements.table @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + +
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 new file mode 100644 index 00000000..6e159f94 --- /dev/null +++ b/examples/example-090-Expanded-form-for-the-previous-example-turtle.ttl @@ -0,0 +1,5 @@ +@prefix foaf: . +[ + foaf:name "Manu Sporny"; + foaf:homepage +] . \ No newline at end of file diff --git a/examples/example-099-Sample-expanded-JSON-LD-document.jsonld b/examples/example-091-Sample-expanded-JSON-LD-document.jsonld similarity index 100% rename from examples/example-099-Sample-expanded-JSON-LD-document.jsonld rename to examples/example-091-Sample-expanded-JSON-LD-document.jsonld diff --git a/examples/example-100-Sample-context.jsonld b/examples/example-092-Sample-context.jsonld similarity index 100% rename from examples/example-100-Sample-context.jsonld rename to examples/example-092-Sample-context.jsonld diff --git a/examples/example-101-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 similarity index 100% rename from examples/example-101-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.jsonld rename to examples/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.jsonld diff --git a/examples/example-102-Sample-JSON-LD-document-to-be-flattened.jsonld b/examples/example-094-Sample-JSON-LD-document-to-be-flattened.jsonld similarity index 100% rename from examples/example-102-Sample-JSON-LD-document-to-be-flattened.jsonld rename to examples/example-094-Sample-JSON-LD-document-to-be-flattened.jsonld 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 new file mode 100644 index 00000000..3896be40 --- /dev/null +++ b/examples/example-095-Flattened-and-compacted-form-for-the-previous-example.jsonld @@ -0,0 +1,20 @@ +{ + "@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-104-Sample-library-frame.jsonld b/examples/example-096-Sample-library-frame.jsonld similarity index 59% rename from examples/example-104-Sample-library-frame.jsonld rename to examples/example-096-Sample-library-frame.jsonld index 2df1c8ff..dd2b4789 100644 --- a/examples/example-104-Sample-library-frame.jsonld +++ b/examples/example-096-Sample-library-frame.jsonld @@ -1,5 +1,8 @@ { - "@context": {"@vocab": "http://example.org/"}, + "@context": { + "@version": 1.1, + "@vocab": "http://example.org/" + }, "@type": "Library", "contains": { "@type": "Book", diff --git a/examples/example-105-Flattened-library-objects.jsonld b/examples/example-097-Flattened-library-objects.jsonld similarity index 100% rename from examples/example-105-Flattened-library-objects.jsonld rename to examples/example-097-Flattened-library-objects.jsonld diff --git a/examples/example-106-Framed-library-objects.jsonld b/examples/example-098-Framed-library-objects.jsonld similarity index 84% rename from examples/example-106-Framed-library-objects.jsonld rename to examples/example-098-Framed-library-objects.jsonld index 3e681084..b7bbf7fa 100644 --- a/examples/example-106-Framed-library-objects.jsonld +++ b/examples/example-098-Framed-library-objects.jsonld @@ -1,5 +1,8 @@ { - "@context": {"@vocab": "http://example.org/"}, + "@context": { + "@version": 1.1, + "@vocab": "http://example.org/" + }, "@id": "http://example.org/library", "@type": "Library", "contains": { diff --git a/examples/example-110-Sample-JSON-LD-document.jsonld b/examples/example-102-Sample-JSON-LD-document.jsonld similarity index 100% rename from examples/example-110-Sample-JSON-LD-document.jsonld rename to examples/example-102-Sample-JSON-LD-document.jsonld diff --git a/examples/example-103-Flattened-and-compacted-form-for-the-previous-example.jsonld b/examples/example-103-Flattened-and-compacted-form-for-the-previous-example.jsonld deleted file mode 100644 index 48bea0c6..00000000 --- a/examples/example-103-Flattened-and-compacted-form-for-the-previous-example.jsonld +++ /dev/null @@ -1,22 +0,0 @@ -{ - "@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" } - ] - } - ] -} \ No newline at end of file diff --git a/examples/example-111-Flattened-and-expanded-form-for-the-previous-example.jsonld b/examples/example-103-Flattened-and-expanded-form-for-the-previous-example.jsonld similarity index 100% rename from examples/example-111-Flattened-and-expanded-form-for-the-previous-example.jsonld rename to examples/example-103-Flattened-and-expanded-form-for-the-previous-example.jsonld diff --git a/examples/example-112-Turtle-representation-of-expanded-flattened-document.ttl b/examples/example-104-Turtle-representation-of-expanded-flattened-document.ttl similarity index 100% rename from examples/example-112-Turtle-representation-of-expanded-flattened-document.ttl rename to examples/example-104-Turtle-representation-of-expanded-flattened-document.ttl diff --git a/examples/example-113-A-set-of-statements-serialized-in-Turtle.ttl b/examples/example-105-A-set-of-statements-serialized-in-Turtle.ttl similarity index 100% rename from examples/example-113-A-set-of-statements-serialized-in-Turtle.ttl rename to examples/example-105-A-set-of-statements-serialized-in-Turtle.ttl diff --git a/examples/example-114-The-same-set-of-statements-serialized-in-JSON-LD.jsonld b/examples/example-106-The-same-set-of-statements-serialized-in-JSON-LD.jsonld similarity index 100% rename from examples/example-114-The-same-set-of-statements-serialized-in-JSON-LD.jsonld rename to examples/example-106-The-same-set-of-statements-serialized-in-JSON-LD.jsonld diff --git a/examples/example-115-Embedding-in-Turtle.ttl b/examples/example-107-Embedding-in-Turtle.ttl similarity index 100% rename from examples/example-115-Embedding-in-Turtle.ttl rename to examples/example-107-Embedding-in-Turtle.ttl diff --git a/examples/example-116-Same-embedding-example-in-JSON-LD.jsonld b/examples/example-108-Same-embedding-example-in-JSON-LD.jsonld similarity index 100% rename from examples/example-116-Same-embedding-example-in-JSON-LD.jsonld rename to examples/example-108-Same-embedding-example-in-JSON-LD.jsonld diff --git a/examples/example-117-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 similarity index 100% rename from examples/example-117-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.jsonld rename to examples/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.jsonld diff --git a/examples/example-118-Same-example-in-Turtle-using-typed-literals.ttl b/examples/example-110-Same-example-in-Turtle-using-typed-literals.ttl similarity index 100% rename from examples/example-118-Same-example-in-Turtle-using-typed-literals.ttl rename to examples/example-110-Same-example-in-Turtle-using-typed-literals.ttl diff --git a/examples/example-119-A-list-of-values-in-Turtle.ttl b/examples/example-111-A-list-of-values-in-Turtle.ttl similarity index 100% rename from examples/example-119-A-list-of-values-in-Turtle.ttl rename to examples/example-111-A-list-of-values-in-Turtle.ttl diff --git a/examples/example-120-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 similarity index 100% rename from examples/example-120-Same-example-with-a-list-of-values-in-JSON-LD.jsonld rename to examples/example-112-Same-example-with-a-list-of-values-in-JSON-LD.jsonld diff --git a/examples/example-121-RDFa-fragment-that-describes-three-people.html b/examples/example-113-RDFa-fragment-that-describes-three-people.html similarity index 100% rename from examples/example-121-RDFa-fragment-that-describes-three-people.html rename to examples/example-113-RDFa-fragment-that-describes-three-people.html diff --git a/examples/example-122-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 similarity index 82% rename from examples/example-122-Same-description-in-JSON-LD-context-shared-among-node-objects-.jsonld rename to examples/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.jsonld index 0bedbe59..8d986702 100644 --- a/examples/example-122-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 @@ -1,6 +1,7 @@ { "@context": { - "foaf": "http://xmlns.com/foaf/0.1/" + "foaf": "http://xmlns.com/foaf/0.1/", + "foaf:homepage": {"@type": "@id"} }, "@graph": [ { diff --git a/examples/example-125-HTML-that-describes-a-book-using-microdata.html b/examples/example-115-HTML-that-describes-a-book-using-microdata.html similarity index 100% rename from examples/example-125-HTML-that-describes-a-book-using-microdata.html rename to examples/example-115-HTML-that-describes-a-book-using-microdata.html diff --git a/examples/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld b/examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld similarity index 57% rename from examples/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld rename to examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld index c350c08f..bf62038f 100644 --- a/examples/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld +++ b/examples/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.jsonld @@ -3,19 +3,19 @@ "@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/dc/terms/creator": "Wil 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"}, + {"@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": "http://purl.oreilly.com/product-types/BOOK" + "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": "http://purl.oreilly.com/product-types/EBOOK" + "http://purl.org/dc/terms/type": {"@id": "http://purl.oreilly.com/product-types/EBOOK"} } ] \ No newline at end of file diff --git a/examples/example-124-Same-hCard-representation-in-JSON-LD.jsonld b/examples/example-124-Same-hCard-representation-in-JSON-LD.jsonld deleted file mode 100644 index 67bcb0ba..00000000 --- a/examples/example-124-Same-hCard-representation-in-JSON-LD.jsonld +++ /dev/null @@ -1,13 +0,0 @@ -{ - "@context": { - "vcard": "http://microformats.org/profile/hcard#vcard", - "url": { - "@id": "http://microformats.org/profile/hcard#url", - "@type": "@id" - }, - "fn": "http://microformats.org/profile/hcard#fn" - }, - "@type": "vcard", - "url": "http://tantek.com/", - "fn": "Tantek Çelik" -} \ No newline at end of file diff --git a/index.html b/index.html index 60f09f37..c19e2ca9 100644 --- a/index.html +++ b/index.html @@ -135,6 +135,52 @@ color: green; background-color: inherit; } + aside.example { + overflow-y: hidden; + } + /* example tab selection */ + .ds-selector-tabs { + padding-bottom: 2em; + } + .ds-selector-tabs .selectors { + padding: 0; + border-bottom: 1px solid #ccc; + height: 28px; + } + .ds-selector-tabs .selectors button { + display: inline-block; + min-width: 54px; + text-align: center; + font-size: 11px; + font-weight: bold; + height: 27px; + padding: 0 8px; + line-height: 27px; + transition: all,0.218s; + border-top-right-radius: 2px; + border-top-left-radius: 2px; + color: #666; + border: 1px solid transparent; + } + .ds-selector-tabs .selectors button:first-child { + margin-left: 2px; + } + .ds-selector-tabs .selectors button.selected { + color: #202020 !important; + border: 1px solid #ccc; + border-bottom: 1px solid #fff !important; + } + .ds-selector-tabs .selectors button:hover { + background-color: transparent; + color: #202020; + cursor: pointer; + } + .ds-selector-tabs pre, .ds-selector-tabs table { + display: none; + } + .ds-selector-tabs pre.selected, .ds-selector-tabs table.selected { + display: block; + } @@ -209,7 +255,7 @@

Introduction

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 + RDF syntax, as with [[Turtle]] and [[TriG]]. Complete details of how JSON-LD relates to RDF are in section .

@@ -521,6 +567,10 @@

Syntax Tokens and Keywords

schema http://schema.org/ + + skos + http://www.w3.org/2004/02/skos/core# + xsd http://www.w3.org/2001/XMLSchema# @@ -577,16 +627,49 @@

Basic Concepts

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 @@ -659,17 +742,62 @@

The Context

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 @@ -695,27 +823,71 @@

The Context

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 @@ -800,18 +972,56 @@

IRIs

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.

@@ -819,24 +1029,62 @@

IRIs

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

-
-  
-  
+ } + --> + +
+    
+    
+ + + + + +
SubjectPropertyValue
_:b0schema:urlhttp://manu.sporny.org/
+
+    
+    
+

In the example above, since the value http://manu.sporny.org/ is expressed as a JSON string, the type coercion @@ -880,20 +1128,57 @@

Node Identifiers

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/.

@@ -906,90 +1191,210 @@

Node Identifiers

-

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.

+

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 type of a particular node can be specified using the @type + keyword. In Linked Data, types are uniquely + identified with an IRI.

+ + -

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

-
-
-
+

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

-

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

+

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

-

JSON-LD has a number of features that provide functionality above and beyond +

+ +

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 @@ -1022,21 +1427,64 @@

Advanced Concepts

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 @@ -1048,24 +1496,76 @@

Advanced Concepts

for example, a friend specified as an object value of a Person:

-
-    
-    
+ "name": "Manu Sporny", + ****"knows": {**** + "@id": "http://greggkellogg.net/foaf#me", + "@type": "Person", + "name": "Gregg Kellogg" + ****}**** + } + --> + +
+      
+      
+ + + + + + + + + +
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
+
+      
+      
+

See details these relationships.

@@ -1095,51 +1595,173 @@

Advanced Concepts

For example, a JSON-LD document may use more than one context at different points in a document:

-
-  
-  
+ ] + --> + +
+    
+    
+ + + + + + + + + + + + +
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
+
+    
+    
+

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

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + +
SubjectPropertyValue
_:b1http://example.com/organization#nameGraz University of Technology
_:b0http://example.com/person#details_:b1
_:b0http://example.com/person#nameMarkus Lanthaler
+
+    
+    
+

In the example above, the name term is overridden in the more deeply nested details structure. Note that this is @@ -1163,22 +1785,67 @@

Advanced Concepts

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 @@ -1233,9 +1900,16 @@

Advanced Concepts

a compact IRI nor an absolute IRI (i.e., they do not contain a colon).

-
-  
-  
+ --> + +
+    
+    
+ + + + + + +
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typeschema:Restaurant
http://example.org/places#BrewEatsschema:nameBrew Eats
+
+    
+    
+

If @vocab is used but certain keys in an dictionary should not be expanded using @@ -1255,31 +1961,71 @@

Advanced Concepts

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 + "@type": ["http://schema.org/Restaurant"], + "http://schema.org/name": [{"@value": "Brew Eats"}] + }] + --> + + + + + + + +
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typeschema:Restaurant
http://example.org/places#BrewEatsschema:nameBrew Eats
+

+    
+    
+ + +
+

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.

+
@@ -1297,18 +2043,45 @@ 

Using the Document Base as the Default Vocabulary

} -->
+

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

-
-  
-  
+ --> + + + + + + + +
SubjectPropertyValue
http://example.org/places#BrewEatsrdf:typehttp://example/document#Restaurant
http://example.org/places#BrewEatshttp://example/document#nameBrew Eats
+
+    
+    
+
@@ -1342,19 +2115,56 @@

Using the Document Base as the Default Vocabulary

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 @@ -1379,20 +2189,62 @@

Using the Document Base as the Default Vocabulary

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 @@ -1413,25 +2265,78 @@

Using the Document Base as the Default Vocabulary

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 @@ -1456,21 +2361,67 @@

Using the Document Base as the Default Vocabulary

a simple term definition where the value ends with a URI gen-delim character (e.g, /, # and others, see [[!RFC3986]]).

-
-  
-  
+ --> + +
+    
+    
+ + + + + + +
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
+
+    
+    
+

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 @@ -1489,21 +2440,61 @@

Using the Document Base as the Default Vocabulary

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 @@ -1679,81 +2670,176 @@

Using the Document Base as the Default Vocabulary

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 + --> + +

+    
+    
+ + + + + + + + + + +
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/
+
+    
+    
+ + +

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 @@ -1799,78 +2885,134 @@

Using the Document Base as the Default Vocabulary

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. 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 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 @@ -1894,7 +3036,7 @@

Using the Document Base as the Default Vocabulary

####...#### "@id": "http://example.org/posts#TripToWestVirginia", ****"@type": "http://schema.org/BlogPosting"****, ####← This is a node type#### - "modified": { + "http://purl.org/dc/terms/modified": { "@value": "2010-05-29T14:17:39+02:00", ****"@type": "http://www.w3.org/2001/XMLSchema#dateTime"**** ####← This is a value type#### } @@ -1903,19 +3045,6 @@

Using the Document Base as the Default Vocabulary

--> - -

The first use of @type associates a node type (http://schema.org/BlogPosting) with the node, which is expressed using the @id keyword. @@ -1928,28 +3057,51 @@

Using the Document Base as the Default Vocabulary

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
+

Type Coercion

@@ -1983,111 +3135,192 @@

Using the Document Base as the Default Vocabulary

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

-
-
-
- -

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:

-
-
+  
+
+  
-
+ --> + + + + + + + + + +
SubjectPropertyValueValue Type
_:b0foaf:age41xsd:integer
_:b0foaf:nameJohn Smith
_:b0foaf:homepagehttp://personal.example.org/
_:b0foaf:homepagehttp://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 @@ -2116,27 +3349,70 @@

Using the Document Base as the Default Vocabulary

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:

+ + +

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:

@@ -2286,270 +3562,427 @@ 

Using the Document Base as the Default Vocabulary

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:

-
-
+  
+
+  
+  
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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
+
+  
-
+ "Mike", + "Miguel"@es, + , + 42 . + --> +
+ + +

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

-

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

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:

-
-
-
+ "@id": "http://example.org/people#joebob", + "nick": ****[ "joe", "bob", "jaybee" ]****####, + ...#### + } + --> + +
+  
+  
+ + + + + + + + + + + +
SubjectPropertyValue
http://example.org/people#joebobfoaf:nick_:b0
_:b0rdf:firstjoe
_:b0rdf:rest_:b1
_:b1rdf:firstbob
_:b1rdf:rest_:b2
_:b2rdf:firstjaybee
_:b2rdf:restrdf:nil
+
+  
+  
+

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:

+ 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 @@ -2584,95 +4017,149 @@

Using the Document Base as the Default Vocabulary

express this using recursive lists, by simply adding the appropriate context definion:

-
-{
-  "@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]
-        ]
-    ]
+
+ + +

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, @@ -2695,43 +4182,162 @@

Using the Document Base as the Default Vocabulary

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: -

-
-
+ "@id": "http://example.org/people#joebob", + "nick": ****[ "joe", "bob", "jaybee" ]****####, + ...#### + } + --> + +
+  
+  
+ + + + + + + + + + + + + + + + + + + + + + + +
SubjectPropertyValue
http://example.org/people#joebobfoaf:nickjoe
http://example.org/people#joebobfoaf:nickbob
http://example.org/people#joebobfoaf:nickjaybee
+
+  
+  
+

Since JSON-LD 1.1, the @set keyword may be combined with other container specifications within an expanded term @@ -2748,27 +4354,95 @@

Using the Document Base as the Default Vocabulary

intermediate object; in JSON-LD these are called nested properties. For example, a set of possible labels may be grouped under a common property:

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + + + + + + + + + + + +
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
+
+    
+    
+

By defining labels using the keyword @nest, a JSON-LD processor will ignore the nesting created by using the @@ -2778,48 +4452,183 @@

Using the Document Base as the Default Vocabulary

@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.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + + + + + + + + + + + +
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
+
+    
+    
+

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

@@ -2835,48 +4644,213 @@

Using the Document Base as the Default Vocabulary

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

-
-  
+    
+
+    
+    
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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
+
+    
+    
+ + +

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 Using the Document Base as the Default Vocabulary we would need to introduce a blank node identifier (here _:b0).

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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
+
+    
+    
+ +

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

@@ -2930,20 +4993,89 @@

Using the Document Base as the Default Vocabulary

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 @@ -2998,185 +5130,378 @@

Using the Document Base as the Default Vocabulary

@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 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 and - ) using a JSON-LD processor:

- - + "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" + }]**** + }] + --> + +
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -
Subject Property ValueValue Type
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
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
- -

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.

+ +
+    
+    
+ -
-  
-  
+

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.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
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
+
+    
+    
+
-

Language Indexing

+

Language Indexing

JSON which includes string values in multiple languages may be represented using a language map to allow for easily @@ -3186,25 +5511,71 @@

Using the Document Base as the Default Vocabulary

@language keyword with a @container declaration in the context:

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + +
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
+
+    
+    
+

In the example above, the label term has been marked as an language map. The en and @@ -3218,52 +5589,147 @@

Using the Document Base as the Default Vocabulary

When compacting, this ensures that a JSON-LD Processor will use the array form for all values of language tags.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + +
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
+
+    
+    
+

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.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + +
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
+
+    
+    
+

Node Identifier Indexing

@@ -3276,37 +5742,108 @@

Using the Document Base as the Default Vocabulary

@id keyword with a @container declaration in the context:

-
-  
-  
+ } + --> + +
+    
+    
+ + + + + + + + + + + + +
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
+
+    
+    
+

In the example above, the post term has been marked as an id map. The http://example.com/posts/1/en and @@ -3322,37 +5859,108 @@

Using the Document Base as the Default Vocabulary

When compacting, this ensures that a JSON-LD processor will use the array form for all values of node identifiers.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + +
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
+
+    
+    
+

The special index @none is used for indexing node objects which do not have an @id, which is useful to maintain @@ -3360,42 +5968,124 @@

Using the Document Base as the Default Vocabulary

a term which expands to @none, such as the term none used in the example below.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + + + +
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
+
+    
+    
+

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

@@ -3411,33 +6101,97 @@

Using the Document Base as the Default Vocabulary

@type keyword with a @container declaration in the context:

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + +
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
+
+    
+    
+

In the example above, the affiliation term has been marked as an type map. The schema:Corporation and @@ -3449,33 +6203,97 @@

Using the Document Base as the Default Vocabulary

When compacting, this ensures that a JSON-LD processor will use the array form for all values of types.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + +
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
+
+    
+    
+

The special index @none is used for indexing node objects which do not have an @type, which is useful to maintain @@ -3483,38 +6301,114 @@

Using the Document Base as the Default Vocabulary

a term which expands to @none, such as the term none used in the example below.

-
-  
-  
+ --> + +
+    
+    
+ + + + + + + + + + + + + +
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/
+
+    
+    
+

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.

@@ -3536,76 +6430,296 @@

Using the Document Base as the Default Vocabulary

be expressed with a property pointing to the parent as in the following example.

-
-  
+    
+
+    
-  
+ "@id": "http://example.org/#lisa", + "http://example.com/vocab#name": [{"@value": "Lisa"}], + "http://example.com/vocab#parent": [{"@id": "http://example.org/#homer"} + ] + }] + --> + + + + + + + + + + +
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
+
+    
+    
+

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

-
-  
+    
+
+    
+    
+
+    
+    
+ + + + + + + + + +
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
+
+    
+    
+ + +

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

+ + +

Named Graphs

@@ -3617,105 +6731,117 @@

Using the Document Base as the Default Vocabulary

@graph keyword by pairing it with an @id keyword as shown in the following example:

-
-  
+    
+
+    
-  
+ "@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"} + ] + }] + }] + --> + + + + + + + + + + + + +
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 
+
+    
+    
+

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
+ which specifies when the graph was generated.

When a JSON-LD document's top-level structure is an dictionary that contains no other @@ -3730,54 +6856,183 @@

Using the Document Base as the Default Vocabulary

@graph keyword collects such nodes in an array and allows the use of a shared context.

-
-  
+    
+
+    
+    
+ + + + + + + + + + +
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
+
+    
+    
+ + +

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

@@ -3795,120 +7050,133 @@

Graph Containers

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:

+

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

-
-    
+      
+
+      
-    
+ ****"@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"} + ] + }] + }] + }] + --> + + + + + + + + + + + + + + +
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 
+
+      
+      
+

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
+ which specifies when the graph was generated.

The blank node identifier _:b0 is automatically created to allow the default graph to reference the @@ -3916,42 +7184,6 @@

Graph Containers

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:

- -
-    
-    
-

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 @@ -3974,141 +7206,120 @@

Graph Containers

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

-
-  
-  
- -

This expands to the following:

- -
-  
+    
+
+    
-  
+ "@index": "de" + }] + }] + --> + + + + + + + + + + + + + +
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
+
+    
+    
+

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.

@@ -4122,70 +7333,119 @@

Graph Containers

of those graphs being merged. To prevent this, give each graph a distinct @index key.

-
-  
-  
- -

This expands to the following:

- -
-  
+    
+
+    
-  
+ }] + --> + + + + + + + + + + + + + +
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
+
+    
+    
+

Named Graph Indexing

@@ -4200,162 +7460,138 @@

Graph Containers

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

-
-  
-  
- -

This expands to the following:

- -
-  
+    
+
+    
-  
- -

When expressed as Quads, this becomes the following:

+ --> + + + + + + + + + + + + + + +
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 
+
+    
+    
+

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.

@@ -4369,42 +7605,126 @@

Graph Containers

use @none judiciously, and consider giving graphs their own distinct identifier.

-
-  
+    
+
+    
+    
+ + + + + + + + + + + + + +
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 
+
+    
-  
+ + _:b1 { + a foaf:Person; + foaf:name "Gregg Kellogg"; + foaf:knows . + } + --> + +

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

@@ -4469,21 +7789,52 @@

Graph Containers

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 @@ -4524,7 +7875,8 @@

Graph Containers

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

+       title="Sample context"
+       data-context-for="Sample expanded JSON-LD document">
   
   
@@ -4656,7 +8012,10 @@

Graph Containers

title="Sample library frame"> @@ -6179,7 +9544,7 @@

Open Issues

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.

+

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.

diff --git a/trig/example-002-Sample-JSON-document.trig b/trig/example-002-Sample-JSON-document.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-004-Context-for-the-sample-document-in-the-previous-section.trig b/trig/example-004-Context-for-the-sample-document-in-the-previous-section.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-005-Referencing-a-JSON-LD-context.trig b/trig/example-005-Referencing-a-JSON-LD-context.trig deleted file mode 100644 index ac8714b6..00000000 --- a/trig/example-005-Referencing-a-JSON-LD-context.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:homepage ; - foaf:img ; - foaf:name "Manu Sporny" - ] . diff --git a/trig/example-007-Values-of-id-are-interpreted-as-IRI.trig b/trig/example-007-Values-of-id-are-interpreted-as-IRI.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-008-IRIs-can-be-relative.trig b/trig/example-008-IRIs-can-be-relative.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-011-Type-coercion.trig b/trig/example-011-Type-coercion.trig deleted file mode 100644 index c152b1ee..00000000 --- a/trig/example-011-Type-coercion.trig +++ /dev/null @@ -1,3 +0,0 @@ -@prefix schema: . - - [ schema:url ] . diff --git a/trig/example-014-Specifying-multiple-types-for-a-node.trig b/trig/example-014-Specifying-multiple-types-for-a-node.trig deleted file mode 100644 index 7552ade9..00000000 --- a/trig/example-014-Specifying-multiple-types-for-a-node.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix schema: . - - a foaf:Person, - schema:Person . diff --git a/trig/example-015-Using-a-term-to-specify-the-type.trig b/trig/example-015-Using-a-term-to-specify-the-type.trig deleted file mode 100644 index dd7e1535..00000000 --- a/trig/example-015-Using-a-term-to-specify-the-type.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix schema: . - - a schema:Person . diff --git a/trig/example-016-Referencing-Objects-on-the-Web.trig b/trig/example-016-Referencing-Objects-on-the-Web.trig deleted file mode 100644 index 7ae67d4c..00000000 --- a/trig/example-016-Referencing-Objects-on-the-Web.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Person; - schema:knows ; - schema:name "Manu Sporny" . diff --git a/trig/example-018-Using-multiple-contexts.trig b/trig/example-018-Using-multiple-contexts.trig deleted file mode 100644 index 58b3ea42..00000000 --- a/trig/example-018-Using-multiple-contexts.trig +++ /dev/null @@ -1,19 +0,0 @@ -@prefix dc: . -@prefix foaf: . -@prefix schema: . -@prefix xsd: . - - [ - foaf:depiction ; - foaf:homepage ; - foaf:name "Manu Sporny" - ] . - - [ - dc:title "The Empire State Building"; - dc:description "The Empire State Building is a 102-story landmark in New York City."; - schema:geo [ - 40.75; - 73.98 - ] - ] . diff --git a/trig/example-019-Scoped-contexts-within-node-objects.trig b/trig/example-019-Scoped-contexts-within-node-objects.trig deleted file mode 100644 index c562d437..00000000 --- a/trig/example-019-Scoped-contexts-within-node-objects.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix xsd: . - - [ - [ "Graz University of Technology"]; - "Markus Lanthaler" - ] . diff --git a/trig/example-020-Combining-external-and-local-contexts.trig b/trig/example-020-Combining-external-and-local-contexts.trig deleted file mode 100644 index 88a06209..00000000 --- a/trig/example-020-Combining-external-and-local-contexts.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:depiction "http://twitter.com/account/profile_image/manusporny"; - foaf:homepage ; - foaf:name "Manu Sporny" - ] . diff --git a/trig/example-021-Setting-version-in-context.trig b/trig/example-021-Setting-version-in-context.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-022-Using-a-common-vocabulary-prefix.trig b/trig/example-022-Using-a-common-vocabulary-prefix.trig deleted file mode 100644 index a1f626b6..00000000 --- a/trig/example-022-Using-a-common-vocabulary-prefix.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Restaurant; - schema:name "Brew Eats" . diff --git a/trig/example-023-Using-the-null-keyword-to-ignore-data.trig b/trig/example-023-Using-the-null-keyword-to-ignore-data.trig deleted file mode 100644 index a1f626b6..00000000 --- a/trig/example-023-Using-the-null-keyword-to-ignore-data.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Restaurant; - schema:name "Brew Eats" . diff --git a/trig/example-024-Using-as-the-vocabulary-mapping.trig b/trig/example-024-Using-as-the-vocabulary-mapping.trig deleted file mode 100644 index 68312ba2..00000000 --- a/trig/example-024-Using-as-the-vocabulary-mapping.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - - a ; - "Brew Eats" . diff --git a/trig/example-025-Using-as-the-vocabulary-mapping-expanded-.trig b/trig/example-025-Using-as-the-vocabulary-mapping-expanded-.trig deleted file mode 100644 index 68312ba2..00000000 --- a/trig/example-025-Using-as-the-vocabulary-mapping-expanded-.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - - a ; - "Brew Eats" . diff --git a/trig/example-026-Use-a-relative-IRI-as-node-identifier.trig b/trig/example-026-Use-a-relative-IRI-as-node-identifier.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-027-Setting-the-document-base-in-a-document.trig b/trig/example-027-Setting-the-document-base-in-a-document.trig deleted file mode 100644 index 75326603..00000000 --- a/trig/example-027-Setting-the-document-base-in-a-document.trig +++ /dev/null @@ -1,3 +0,0 @@ -@prefix xsd: . - - "Just a simple document" . diff --git a/trig/example-029-Using-vocabularies.trig b/trig/example-029-Using-vocabularies.trig deleted file mode 100644 index 2bb0d8db..00000000 --- a/trig/example-029-Using-vocabularies.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:depiction ; - foaf:homepage ; - foaf:name "Markus Lanthaler" . diff --git a/trig/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.trig b/trig/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.trig deleted file mode 100644 index ca4dcccd..00000000 --- a/trig/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix xsd: . - - "@prefix does not require a gen-delim" . - - [ ] . diff --git a/trig/example-031-Aliasing-keywords.trig b/trig/example-031-Aliasing-keywords.trig deleted file mode 100644 index a55981c5..00000000 --- a/trig/example-031-Aliasing-keywords.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:name "Gregg Kellogg" . diff --git a/trig/example-032-IRI-expansion-within-a-context.trig b/trig/example-032-IRI-expansion-within-a-context.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.trig b/trig/example-033-Using-a-term-to-define-the-IRI-of-another-term-within-a-context.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-034-Using-a-compact-IRI-as-a-term.trig b/trig/example-034-Using-a-compact-IRI-as-a-term.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-035-Associating-context-definitions-with-absolute-IRIs.trig b/trig/example-035-Associating-context-definitions-with-absolute-IRIs.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-037-Defining-an-context-within-a-term-definition.trig b/trig/example-037-Defining-an-context-within-a-term-definition.trig deleted file mode 100644 index dfbac749..00000000 --- a/trig/example-037-Defining-an-context-within-a-term-definition.trig +++ /dev/null @@ -1,11 +0,0 @@ -@prefix foaf: . -@prefix schema: . -@prefix xsd: . - - schema:name "JSON-LD"; - foaf:topic "Linking Data" . - - [ - schema:name "Manu Sporny"; - foaf:interest - ] . diff --git a/trig/example-038-Expanded-document-using-a-scoped-context.trig b/trig/example-038-Expanded-document-using-a-scoped-context.trig deleted file mode 100644 index dfbac749..00000000 --- a/trig/example-038-Expanded-document-using-a-scoped-context.trig +++ /dev/null @@ -1,11 +0,0 @@ -@prefix foaf: . -@prefix schema: . -@prefix xsd: . - - schema:name "JSON-LD"; - foaf:topic "Linking Data" . - - [ - schema:name "Manu Sporny"; - foaf:interest - ] . diff --git a/trig/example-039-Defining-an-context-within-a-term-definition-used-on-type.trig b/trig/example-039-Defining-an-context-within-a-term-definition-used-on-type.trig deleted file mode 100644 index 3edfad8e..00000000 --- a/trig/example-039-Defining-an-context-within-a-term-definition-used-on-type.trig +++ /dev/null @@ -1,13 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a foaf:Document; - schema:name "JSON-LD"; - foaf:topic "Linking Data" . - - [ - schema:name "Manu Sporny"; - foaf:interest - ] . diff --git a/trig/example-040-Expanded-term-definition-with-type-coercion.trig b/trig/example-040-Expanded-term-definition-with-type-coercion.trig deleted file mode 100644 index 4643dfed..00000000 --- a/trig/example-040-Expanded-term-definition-with-type-coercion.trig +++ /dev/null @@ -1,4 +0,0 @@ -@prefix dc: . -@prefix xsd: . - - dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime . diff --git a/trig/example-040-term-definition-with-type-coercion-Turtle.ttl b/trig/example-040-term-definition-with-type-coercion-Turtle.ttl deleted file mode 100644 index 4643dfed..00000000 --- a/trig/example-040-term-definition-with-type-coercion-Turtle.ttl +++ /dev/null @@ -1,4 +0,0 @@ -@prefix dc: . -@prefix xsd: . - - dc:modified "2010-05-29T14:17:39+02:00"^^xsd:dateTime . diff --git a/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type-Turtle.ttl b/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type-Turtle.ttl deleted file mode 100644 index 159c0009..00000000 --- a/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type-Turtle.ttl +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix schema: . - - a schema:BlogPosting . diff --git a/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type.trig b/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type.trig deleted file mode 100644 index 159c0009..00000000 --- a/trig/example-042-Example-demonstrating-the-context-sensitivity-for-type.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix schema: . - - a schema:BlogPosting . diff --git a/trig/example-043-Expanded-term-definition-with-types-Turtle.ttl b/trig/example-043-Expanded-term-definition-with-types-Turtle.ttl deleted file mode 100644 index 6404c63b..00000000 --- a/trig/example-043-Expanded-term-definition-with-types-Turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:age 41; - foaf:homepage , - ; - foaf:name "John Smith" . diff --git a/trig/example-043-Expanded-term-definition-with-types.trig b/trig/example-043-Expanded-term-definition-with-types.trig deleted file mode 100644 index 6404c63b..00000000 --- a/trig/example-043-Expanded-term-definition-with-types.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:age 41; - foaf:homepage , - ; - foaf:name "John Smith" . diff --git a/trig/example-044-Term-definitions-using-compact-and-absolute-IRIs.trig b/trig/example-044-Term-definitions-using-compact-and-absolute-IRIs.trig deleted file mode 100644 index 9c883caf..00000000 --- a/trig/example-044-Term-definitions-using-compact-and-absolute-IRIs.trig +++ /dev/null @@ -1,9 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:age "41"^^; - foaf:homepage , - ; - foaf:name "John Smith" - ] . diff --git a/trig/example-045-Setting-the-default-language-of-a-JSON-LD-document.trig b/trig/example-045-Setting-the-default-language-of-a-JSON-LD-document.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-046-Clearing-default-language.trig b/trig/example-046-Clearing-default-language.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-047-Expanded-term-definition-with-language.trig b/trig/example-047-Expanded-term-definition-with-language.trig deleted file mode 100644 index fc1b743c..00000000 --- a/trig/example-047-Expanded-term-definition-with-language.trig +++ /dev/null @@ -1,9 +0,0 @@ -@prefix rdf: . -@prefix xsd: . - - [ - "Yagyū Muneyoshi"; - "忍者"@ja, - "Ninja"@en, - "Nindža"@cs - ] . diff --git a/trig/example-048-Language-map-expressing-a-property-in-three-languages.trig b/trig/example-048-Language-map-expressing-a-property-in-three-languages.trig deleted file mode 100644 index 91208ce8..00000000 --- a/trig/example-048-Language-map-expressing-a-property-in-three-languages.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - [ "忍者"@ja, - "Ninja"@en, - "Nindža"@cs] . diff --git a/trig/example-049-Overriding-default-language-using-an-expanded-value.trig b/trig/example-049-Overriding-default-language-using-an-expanded-value.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-050-Removing-language-information-using-an-expanded-value.trig b/trig/example-050-Removing-language-information-using-an-expanded-value.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-051-Multiple-values-with-no-inherent-order.trig b/trig/example-051-Multiple-values-with-no-inherent-order.trig deleted file mode 100644 index 0db96e60..00000000 --- a/trig/example-051-Multiple-values-with-no-inherent-order.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix xsd: . - - "bob", - "joe", - "JB" . diff --git a/trig/example-052-Using-an-expanded-form-to-set-multiple-values.trig b/trig/example-052-Using-an-expanded-form-to-set-multiple-values.trig deleted file mode 100644 index 5f97073f..00000000 --- a/trig/example-052-Using-an-expanded-form-to-set-multiple-values.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix rdf: . - - "Capital"@en, - "Das Kapital"@de . diff --git a/trig/example-053-Multiple-array-values-of-different-types.trig b/trig/example-053-Multiple-array-values-of-different-types.trig deleted file mode 100644 index 033b5417..00000000 --- a/trig/example-053-Multiple-array-values-of-different-types.trig +++ /dev/null @@ -1,9 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - - "Miguel"@es, - 42, - "Mike", - "Michael", - . diff --git a/trig/example-054-An-ordered-collection-of-values-in-JSON-LD.trig b/trig/example-054-An-ordered-collection-of-values-in-JSON-LD.trig deleted file mode 100644 index add7b083..00000000 --- a/trig/example-054-An-ordered-collection-of-values-in-JSON-LD.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - - ("joe" "bob" "jaybee") . diff --git a/trig/example-055-Specifying-that-a-collection-is-ordered-in-the-context.trig b/trig/example-055-Specifying-that-a-collection-is-ordered-in-the-context.trig deleted file mode 100644 index 252ebb20..00000000 --- a/trig/example-055-Specifying-that-a-collection-is-ordered-in-the-context.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - foaf:nick ("joe" "bob" "jaybee") . diff --git a/trig/example-056-An-ordered-collection-of-values-in-Turtle.ttl b/trig/example-056-An-ordered-collection-of-values-in-Turtle.ttl deleted file mode 100644 index 252ebb20..00000000 --- a/trig/example-056-An-ordered-collection-of-values-in-Turtle.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - foaf:nick ("joe" "bob" "jaybee") . diff --git a/trig/example-057-Coordinates-expressed-in-GeoJSON.trig b/trig/example-057-Coordinates-expressed-in-GeoJSON.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-058-Coordinates-expressed-in-JSON-LD.trig b/trig/example-058-Coordinates-expressed-in-JSON-LD.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-059-Coordinates-expressed-in-JSON-LD-expanded-.trig b/trig/example-059-Coordinates-expressed-in-JSON-LD-expanded-.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-060-Coordinates-expressed-in-Turtle.ttl b/trig/example-060-Coordinates-expressed-in-Turtle.ttl deleted file mode 100644 index be5f3979..00000000 --- a/trig/example-060-Coordinates-expressed-in-Turtle.ttl +++ /dev/null @@ -1,11 +0,0 @@ -@prefix rdf: . -@prefix xsd: . - - [ - a ; - (-1.0e1 -1.0e1 1.0e1 1.0e1); - [ - a ; - (((-1.0e1 -1.0e1) (1.0e1 -1.0e1) (1.0e1 1.0e1) (-1.0e1 -1.0e1))) - ] - ] . diff --git a/trig/example-061-An-unordered-collection-of-values-in-JSON-LD.trig b/trig/example-061-An-unordered-collection-of-values-in-JSON-LD.trig deleted file mode 100644 index 32d4cc04..00000000 --- a/trig/example-061-An-unordered-collection-of-values-in-JSON-LD.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix ex: . -@prefix xsd: . - - "bob", - "joe", - "jaybee" . diff --git a/trig/example-062-Specifying-that-a-collection-is-unordered-in-the-context.trig b/trig/example-062-Specifying-that-a-collection-is-unordered-in-the-context.trig deleted file mode 100644 index 84098001..00000000 --- a/trig/example-062-Specifying-that-a-collection-is-unordered-in-the-context.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix xsd: . - - foaf:nick "bob", - "joe", - "jaybee" . diff --git a/trig/example-063-Nested-properties.trig b/trig/example-063-Nested-properties.trig deleted file mode 100644 index 861b8248..00000000 --- a/trig/example-063-Nested-properties.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix schema: . -@prefix xsd: . - -ex:myresource schema:description ; - "This is the other label"; - "This is the main label for my resource" . diff --git a/trig/example-064-Nested-properties-folded-into-containing-object.trig b/trig/example-064-Nested-properties-folded-into-containing-object.trig deleted file mode 100644 index 861b8248..00000000 --- a/trig/example-064-Nested-properties-folded-into-containing-object.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix schema: . -@prefix xsd: . - -ex:myresource schema:description ; - "This is the other label"; - "This is the main label for my resource" . diff --git a/trig/example-065-Defining-property-nesting.trig b/trig/example-065-Defining-property-nesting.trig deleted file mode 100644 index 861b8248..00000000 --- a/trig/example-065-Defining-property-nesting.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix ex: . -@prefix schema: . -@prefix xsd: . - -ex:myresource schema:description ; - "This is the other label"; - "This is the main label for my resource" . diff --git a/trig/example-066-Referencing-node-objects.trig b/trig/example-066-Referencing-node-objects.trig deleted file mode 100644 index cacffddc..00000000 --- a/trig/example-066-Referencing-node-objects.trig +++ /dev/null @@ -1,12 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Person; - schema:name "Gregg Kellogg" . - - [ - a schema:Person; - schema:knows ; - schema:name "Manu Sporny" - ] . diff --git a/trig/example-068-Referencing-an-unidentified-node.trig b/trig/example-068-Referencing-an-unidentified-node.trig deleted file mode 100644 index 7d04f142..00000000 --- a/trig/example-068-Referencing-an-unidentified-node.trig +++ /dev/null @@ -1,10 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Person; - schema:knows [ - schema:knows ; - schema:name "Manu Sporny" - ]; - schema:name "Gregg Kellogg" . diff --git a/trig/example-069-Specifying-a-local-blank-node-identifier.trig b/trig/example-069-Specifying-a-local-blank-node-identifier.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-072-Indexing-data-using-none.trig b/trig/example-072-Indexing-data-using-none.trig deleted file mode 100644 index 44b0341c..00000000 --- a/trig/example-072-Indexing-data-using-none.trig +++ /dev/null @@ -1,18 +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 . - - schema:articleBody "Unindexed description"; - schema:wordCount 20 . diff --git a/trig/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.trig b/trig/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.trig deleted file mode 100644 index e0786e02..00000000 --- a/trig/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - "Die Königin"@de, - "The Queen"@en, - "Ihre Majestät"@de . diff --git a/trig/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.trig b/trig/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.trig deleted file mode 100644 index e0786e02..00000000 --- a/trig/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - "Die Königin"@de, - "The Queen"@en, - "Ihre Majestät"@de . diff --git a/trig/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.trig b/trig/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.trig deleted file mode 100644 index d43442e8..00000000 --- a/trig/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix rdf: . -@prefix xsd: . - - "The Queen", - "Die Königin"@de, - "The Queen"@en, - "Ihre Majestät"@de . diff --git a/trig/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.trig b/trig/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.trig deleted file mode 100644 index 938fca95..00000000 --- a/trig/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.trig +++ /dev/null @@ -1,14 +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 . diff --git a/trig/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.trig b/trig/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.trig deleted file mode 100644 index 938fca95..00000000 --- a/trig/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.trig +++ /dev/null @@ -1,14 +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 . diff --git a/trig/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.trig b/trig/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.trig deleted file mode 100644 index bf406182..00000000 --- a/trig/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.trig +++ /dev/null @@ -1,17 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Blog; - schema:blogPost , [ - schema:articleBody "Description for object within 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 . diff --git a/trig/example-082-A-document-with-children-linking-to-their-parent.trig b/trig/example-082-A-document-with-children-linking-to-their-parent.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-083-A-person-and-its-children-using-a-reverse-property.trig b/trig/example-083-A-person-and-its-children-using-a-reverse-property.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-084-Using-reverse-to-define-reverse-properties.trig b/trig/example-084-Using-reverse-to-define-reverse-properties.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-086-Using-graph-to-explicitly-express-the-default-graph.trig b/trig/example-086-Using-graph-to-explicitly-express-the-default-graph.trig deleted file mode 100644 index ad86dcf5..00000000 --- a/trig/example-086-Using-graph-to-explicitly-express-the-default-graph.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - a . - - a . diff --git a/trig/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.trig b/trig/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.trig deleted file mode 100644 index ad86dcf5..00000000 --- a/trig/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.trig +++ /dev/null @@ -1,5 +0,0 @@ -@prefix rdf: . - - a . - - a . diff --git a/trig/example-088-Implicitly-named-graph.trig b/trig/example-088-Implicitly-named-graph.trig deleted file mode 100644 index 084be2d8..00000000 --- a/trig/example-088-Implicitly-named-graph.trig +++ /dev/null @@ -1,21 +0,0 @@ -@prefix cred: . -@prefix ex: . -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - -ex:foaf-graph prov:generatedAtTime "2012-04-09"^^xsd:date; - cred:claim [], [] . - -_:b0 { - a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; - foaf:name "Manu Sporny" . -} - -_:b1 { - a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; - foaf:name "Gregg Kellogg" . -} diff --git a/trig/example-089-Implicitly-named-graph-after-expansion.trig b/trig/example-089-Implicitly-named-graph-after-expansion.trig deleted file mode 100644 index c6f91482..00000000 --- a/trig/example-089-Implicitly-named-graph-after-expansion.trig +++ /dev/null @@ -1,19 +0,0 @@ -@prefix cred: . -@prefix ex: . -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - -ex:foaf-graph prov:generatedAtTime "2012-04-09"^^xsd:date; - cred:claim [] . - -_:b0 { - a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; - foaf:name "Gregg Kellogg" . - - a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; - foaf:name "Manu Sporny" . -} diff --git a/trig/example-090-Indexing-graph-data-in-JSON-LD.trig b/trig/example-090-Indexing-graph-data-in-JSON-LD.trig deleted file mode 100644 index c4e48ec4..00000000 --- a/trig/example-090-Indexing-graph-data-in-JSON-LD.trig +++ /dev/null @@ -1,17 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Blog; - schema:blogPost [], []; - schema:name "World Financial News" . - -_:b0 { - schema:articleBody "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} - -_:b1 { - schema:articleBody "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} diff --git a/trig/example-091-Indexed-graph-data-after-expansion.trig b/trig/example-091-Indexed-graph-data-after-expansion.trig deleted file mode 100644 index c4e48ec4..00000000 --- a/trig/example-091-Indexed-graph-data-after-expansion.trig +++ /dev/null @@ -1,17 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Blog; - schema:blogPost [], []; - schema:name "World Financial News" . - -_:b0 { - schema:articleBody "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} - -_:b1 { - schema:articleBody "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} diff --git a/trig/example-092-Indexing-graphs-using-none-for-no-index.trig b/trig/example-092-Indexing-graphs-using-none-for-no-index.trig deleted file mode 100644 index e0698341..00000000 --- a/trig/example-092-Indexing-graphs-using-none-for-no-index.trig +++ /dev/null @@ -1,17 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Blog; - schema:blogPost [], []; - schema:name "World Financial News" . - -_:b0 { - schema:articleBody "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} - -_:b1 { - schema:articleBody "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} diff --git a/trig/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.trig b/trig/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.trig deleted file mode 100644 index e0698341..00000000 --- a/trig/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.trig +++ /dev/null @@ -1,17 +0,0 @@ -@prefix rdf: . -@prefix schema: . -@prefix xsd: . - - a schema:Blog; - schema:blogPost [], []; - schema:name "World Financial News" . - -_:b0 { - schema:articleBody "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."; - schema:wordCount 1204 . -} - -_:b1 { - schema:articleBody "World commodities were up today with heavy trading of crude oil..."; - schema:wordCount 1539 . -} diff --git a/trig/example-094-Referencing-named-graphs-using-an-id-map.trig b/trig/example-094-Referencing-named-graphs-using-an-id-map.trig deleted file mode 100644 index bf686aaf..00000000 --- a/trig/example-094-Referencing-named-graphs-using-an-id-map.trig +++ /dev/null @@ -1,21 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix prov: . -@prefix rdf: . -@prefix xsd: . - -ex:foaf-graph ex:graphMap , - ; - prov:generatedAtTime "2012-04-09"^^xsd:date . - - { - a foaf:Person; - foaf:knows "http://manu.sporny.org/about#manu"; - foaf:name "Gregg Kellogg" . -} - - { - a foaf:Person; - foaf:knows "http://greggkellogg.net/foaf#me"; - foaf:name "Manu Sporny" . -} diff --git a/trig/example-097-Sample-JSON-LD-document-to-be-expanded.trig b/trig/example-097-Sample-JSON-LD-document-to-be-expanded.trig deleted file mode 100644 index aded705d..00000000 --- a/trig/example-097-Sample-JSON-LD-document-to-be-expanded.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:homepage ; - foaf:name "Manu Sporny" - ] . diff --git a/trig/example-099-Sample-expanded-JSON-LD-document.trig b/trig/example-099-Sample-expanded-JSON-LD-document.trig deleted file mode 100644 index aded705d..00000000 --- a/trig/example-099-Sample-expanded-JSON-LD-document.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:homepage ; - foaf:name "Manu Sporny" - ] . diff --git a/trig/example-100-Sample-context.trig b/trig/example-100-Sample-context.trig deleted file mode 100644 index e69de29b..00000000 diff --git a/trig/example-101-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.trig b/trig/example-101-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.trig deleted file mode 100644 index aded705d..00000000 --- a/trig/example-101-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - [ - foaf:homepage ; - foaf:name "Manu Sporny" - ] . diff --git a/trig/example-102-Sample-JSON-LD-document-to-be-flattened.trig b/trig/example-102-Sample-JSON-LD-document-to-be-flattened.trig deleted file mode 100644 index d0652375..00000000 --- a/trig/example-102-Sample-JSON-LD-document-to-be-flattened.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:knows [ foaf:name "Dave Longley"], - ; - foaf:name "Markus Lanthaler" . - - foaf:name "Manu Sporny" . diff --git a/trig/example-103-Flattened-and-compacted-form-for-the-previous-example.trig b/trig/example-103-Flattened-and-compacted-form-for-the-previous-example.trig deleted file mode 100644 index d0652375..00000000 --- a/trig/example-103-Flattened-and-compacted-form-for-the-previous-example.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:knows [ foaf:name "Dave Longley"], - ; - foaf:name "Markus Lanthaler" . - - foaf:name "Manu Sporny" . diff --git a/trig/example-104-Sample-library-frame.trig b/trig/example-104-Sample-library-frame.trig deleted file mode 100644 index 0f68573a..00000000 --- a/trig/example-104-Sample-library-frame.trig +++ /dev/null @@ -1,10 +0,0 @@ -@prefix ex: . -@prefix rdf: . - - [ - a ex:Library; - ex:contains [ - a ex:Book; - ex:contains [ a ex:Chapter] - ] - ] . diff --git a/trig/example-105-Flattened-library-objects.trig b/trig/example-105-Flattened-library-objects.trig deleted file mode 100644 index 11400f0c..00000000 --- a/trig/example-105-Flattened-library-objects.trig +++ /dev/null @@ -1,15 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - -ex:library a ex:Library; - ex:contains . - - a ex:Book; - ex:contains ; - ex:creator "Plato"; - ex:title "The Republic" . - - a ex:Chapter; - ex:description "An introductory chapter on The Republic."; - ex:title "The Introduction" . diff --git a/trig/example-106-Framed-library-objects.trig b/trig/example-106-Framed-library-objects.trig deleted file mode 100644 index 11400f0c..00000000 --- a/trig/example-106-Framed-library-objects.trig +++ /dev/null @@ -1,15 +0,0 @@ -@prefix ex: . -@prefix rdf: . -@prefix xsd: . - -ex:library a ex:Library; - ex:contains . - - a ex:Book; - ex:contains ; - ex:creator "Plato"; - ex:title "The Republic" . - - a ex:Chapter; - ex:description "An introductory chapter on The Republic."; - ex:title "The Introduction" . diff --git a/trig/example-110-Sample-JSON-LD-document.trig b/trig/example-110-Sample-JSON-LD-document.trig deleted file mode 100644 index d0652375..00000000 --- a/trig/example-110-Sample-JSON-LD-document.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:knows [ foaf:name "Dave Longley"], - ; - foaf:name "Markus Lanthaler" . - - foaf:name "Manu Sporny" . diff --git a/trig/example-111-Flattened-and-expanded-form-for-the-previous-example.trig b/trig/example-111-Flattened-and-expanded-form-for-the-previous-example.trig deleted file mode 100644 index d0652375..00000000 --- a/trig/example-111-Flattened-and-expanded-form-for-the-previous-example.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:knows [ foaf:name "Dave Longley"], - ; - foaf:name "Markus Lanthaler" . - - foaf:name "Manu Sporny" . diff --git a/trig/example-112-Turtle-representation-of-expanded-flattened-document.ttl b/trig/example-112-Turtle-representation-of-expanded-flattened-document.ttl deleted file mode 100644 index d0652375..00000000 --- a/trig/example-112-Turtle-representation-of-expanded-flattened-document.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix foaf: . -@prefix xsd: . - - foaf:knows [ foaf:name "Dave Longley"], - ; - foaf:name "Markus Lanthaler" . - - foaf:name "Manu Sporny" . diff --git a/trig/example-113-A-set-of-statements-serialized-in-Turtle.ttl b/trig/example-113-A-set-of-statements-serialized-in-Turtle.ttl deleted file mode 100644 index 39982626..00000000 --- a/trig/example-113-A-set-of-statements-serialized-in-Turtle.ttl +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:homepage ; - foaf:name "Manu Sporny" . diff --git a/trig/example-114-The-same-set-of-statements-serialized-in-JSON-LD.trig b/trig/example-114-The-same-set-of-statements-serialized-in-JSON-LD.trig deleted file mode 100644 index 39982626..00000000 --- a/trig/example-114-The-same-set-of-statements-serialized-in-JSON-LD.trig +++ /dev/null @@ -1,7 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:homepage ; - foaf:name "Manu Sporny" . diff --git a/trig/example-115-Embedding-in-Turtle.ttl b/trig/example-115-Embedding-in-Turtle.ttl deleted file mode 100644 index 117534fb..00000000 --- a/trig/example-115-Embedding-in-Turtle.ttl +++ /dev/null @@ -1,10 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:knows [ - a foaf:Person; - foaf:name "Gregg Kellogg" - ]; - foaf:name "Manu Sporny" . diff --git a/trig/example-116-Same-embedding-example-in-JSON-LD.trig b/trig/example-116-Same-embedding-example-in-JSON-LD.trig deleted file mode 100644 index 117534fb..00000000 --- a/trig/example-116-Same-embedding-example-in-JSON-LD.trig +++ /dev/null @@ -1,10 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:knows [ - a foaf:Person; - foaf:name "Gregg Kellogg" - ]; - foaf:name "Manu Sporny" . diff --git a/trig/example-117-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.trig b/trig/example-117-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.trig deleted file mode 100644 index 44df5822..00000000 --- a/trig/example-117-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.trig +++ /dev/null @@ -1,6 +0,0 @@ -@prefix xsd: . - - false, - true; - 14, - 2.78e0 . diff --git a/trig/example-118-Same-example-in-Turtle-using-typed-literals.ttl b/trig/example-118-Same-example-in-Turtle-using-typed-literals.ttl deleted file mode 100644 index 44df5822..00000000 --- a/trig/example-118-Same-example-in-Turtle-using-typed-literals.ttl +++ /dev/null @@ -1,6 +0,0 @@ -@prefix xsd: . - - false, - true; - 14, - 2.78e0 . diff --git a/trig/example-119-A-list-of-values-in-Turtle.ttl b/trig/example-119-A-list-of-values-in-Turtle.ttl deleted file mode 100644 index e44b6446..00000000 --- a/trig/example-119-A-list-of-values-in-Turtle.ttl +++ /dev/null @@ -1,8 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:name "Joe Bob"; - foaf:nick ("joe" "bob" "jaybee") . diff --git a/trig/example-120-Same-example-with-a-list-of-values-in-JSON-LD.trig b/trig/example-120-Same-example-with-a-list-of-values-in-JSON-LD.trig deleted file mode 100644 index e44b6446..00000000 --- a/trig/example-120-Same-example-with-a-list-of-values-in-JSON-LD.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix ex: . -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - a foaf:Person; - foaf:name "Joe Bob"; - foaf:nick ("joe" "bob" "jaybee") . diff --git a/trig/example-121-RDFa-fragment-that-describes-three-people.html b/trig/example-121-RDFa-fragment-that-describes-three-people.html deleted file mode 100644 index ca178529..00000000 --- a/trig/example-121-RDFa-fragment-that-describes-three-people.html +++ /dev/null @@ -1,21 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - [ - a foaf:Person; - foaf:homepage "http://example.com/bob/"; - foaf:name "Bob" - ] . - - [ - a foaf:Person; - foaf:homepage "http://example.com/eve/"; - foaf:name "Eve" - ] . - - [ - a foaf:Person; - foaf:homepage "http://example.com/manu/"; - foaf:name "Manu" - ] . diff --git a/trig/example-122-Same-description-in-JSON-LD-context-shared-among-node-objects-.trig b/trig/example-122-Same-description-in-JSON-LD-context-shared-among-node-objects-.trig deleted file mode 100644 index ca178529..00000000 --- a/trig/example-122-Same-description-in-JSON-LD-context-shared-among-node-objects-.trig +++ /dev/null @@ -1,21 +0,0 @@ -@prefix foaf: . -@prefix rdf: . -@prefix xsd: . - - [ - a foaf:Person; - foaf:homepage "http://example.com/bob/"; - foaf:name "Bob" - ] . - - [ - a foaf:Person; - foaf:homepage "http://example.com/eve/"; - foaf:name "Eve" - ] . - - [ - a foaf:Person; - foaf:homepage "http://example.com/manu/"; - foaf:name "Manu" - ] . diff --git a/trig/example-124-Same-hCard-representation-in-JSON-LD.trig b/trig/example-124-Same-hCard-representation-in-JSON-LD.trig deleted file mode 100644 index 78060d63..00000000 --- a/trig/example-124-Same-hCard-representation-in-JSON-LD.trig +++ /dev/null @@ -1,8 +0,0 @@ -@prefix rdf: . -@prefix xsd: . - - [ - a ; - "Tantek Çelik"; - - ] . diff --git a/trig/example-125-HTML-that-describes-a-book-using-microdata.html b/trig/example-125-HTML-that-describes-a-book-using-microdata.html deleted file mode 100644 index d2aabc99..00000000 --- a/trig/example-125-HTML-that-describes-a-book-using-microdata.html +++ /dev/null @@ -1,15 +0,0 @@ -@prefix dc: . -@prefix rdf: . -@prefix xsd: . - - a ; - dc:type "http://purl.oreilly.com/product-types/BOOK" . - - a ; - dc:type "http://purl.oreilly.com/product-types/EBOOK" . - - a ; - dc:title "Just a Geek"; - dc:creator "Whil Wheaton"; - "http://purl.oreilly.com/products/9780596007683.BOOK", - "http://purl.oreilly.com/products/9780596802189.EBOOK" . diff --git a/trig/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.trig b/trig/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.trig deleted file mode 100644 index d2aabc99..00000000 --- a/trig/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.trig +++ /dev/null @@ -1,15 +0,0 @@ -@prefix dc: . -@prefix rdf: . -@prefix xsd: . - - a ; - dc:type "http://purl.oreilly.com/product-types/BOOK" . - - a ; - dc:type "http://purl.oreilly.com/product-types/EBOOK" . - - a ; - dc:title "Just a Geek"; - dc:creator "Whil Wheaton"; - "http://purl.oreilly.com/products/9780596007683.BOOK", - "http://purl.oreilly.com/products/9780596802189.EBOOK" . diff --git a/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.yml b/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml similarity index 93% rename from yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.yml rename to yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml index d2da96e6..1ffdb23b 100644 --- a/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms.yml +++ b/yaml/example-003-Sample-JSON-LD-document-using-full-IRIs-instead-of-terms-expanded.yml @@ -1,4 +1,4 @@ -Example 003: Sample JSON-LD document using full IRIs instead of terms +Example 003: Sample JSON-LD document using full IRIs instead of terms-expanded --- http://schema.org/name: Manu Sporny http://schema.org/url: diff --git a/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml b/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml new file mode 100644 index 00000000..696f050d --- /dev/null +++ b/yaml/example-005-Referencing-a-JSON-LD-context-expanded.yml @@ -0,0 +1,8 @@ +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.yml b/yaml/example-005-Referencing-a-JSON-LD-context-original.yml similarity index 75% rename from yaml/example-005-Referencing-a-JSON-LD-context.yml rename to yaml/example-005-Referencing-a-JSON-LD-context-original.yml index ffb7f340..df60bc08 100644 --- a/yaml/example-005-Referencing-a-JSON-LD-context.yml +++ b/yaml/example-005-Referencing-a-JSON-LD-context-original.yml @@ -1,4 +1,4 @@ -Example 005: Referencing a JSON-LD context +Example 005: Referencing a JSON-LD context-original --- "@context": https://json-ld.org/contexts/person.jsonld name: Manu Sporny diff --git a/yaml/example-006-In-line-context-definition-expanded.yml b/yaml/example-006-In-line-context-definition-expanded.yml new file mode 100644 index 00000000..9b88313b --- /dev/null +++ b/yaml/example-006-In-line-context-definition-expanded.yml @@ -0,0 +1,8 @@ +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.yml b/yaml/example-006-In-line-context-definition-original.yml similarity index 84% rename from yaml/example-006-In-line-context-definition.yml rename to yaml/example-006-In-line-context-definition-original.yml index e5c74d2e..728f774e 100644 --- a/yaml/example-006-In-line-context-definition.yml +++ b/yaml/example-006-In-line-context-definition-original.yml @@ -1,4 +1,4 @@ -Example 006: In-line context definition +Example 006: In-line context definition-original --- "@context": name: http://schema.org/name diff --git a/yaml/example-010-Term-expansion-from-context-definition-expanded.yml b/yaml/example-010-Term-expansion-from-context-definition-expanded.yml new file mode 100644 index 00000000..f0bc742d --- /dev/null +++ b/yaml/example-010-Term-expansion-from-context-definition-expanded.yml @@ -0,0 +1,4 @@ +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.yml b/yaml/example-010-Term-expansion-from-context-definition-original.yml similarity index 57% rename from yaml/example-010-Term-expansion-from-context-definition.yml rename to yaml/example-010-Term-expansion-from-context-definition-original.yml index 944acbad..6ce32c7e 100644 --- a/yaml/example-010-Term-expansion-from-context-definition.yml +++ b/yaml/example-010-Term-expansion-from-context-definition-original.yml @@ -1,4 +1,4 @@ -Example 010: Term expansion from context definition +Example 010: Term expansion from context definition-original --- "@context": name: http://schema.org/name diff --git a/yaml/example-011-Type-coercion-expanded.yml b/yaml/example-011-Type-coercion-expanded.yml new file mode 100644 index 00000000..349717cf --- /dev/null +++ b/yaml/example-011-Type-coercion-expanded.yml @@ -0,0 +1,4 @@ +Example 011: Type coercion-expanded +--- +- http://schema.org/url: + - "@id": http://manu.sporny.org/ diff --git a/yaml/example-011-Type-coercion.yml b/yaml/example-011-Type-coercion-original.yml similarity index 76% rename from yaml/example-011-Type-coercion.yml rename to yaml/example-011-Type-coercion-original.yml index 6e541c91..bb3327ca 100644 --- a/yaml/example-011-Type-coercion.yml +++ b/yaml/example-011-Type-coercion-original.yml @@ -1,4 +1,4 @@ -Example 011: Type coercion +Example 011: Type coercion-original --- "@context": homepage: diff --git a/yaml/example-012-Identifying-a-node-expanded.yml b/yaml/example-012-Identifying-a-node-expanded.yml new file mode 100644 index 00000000..223be27f --- /dev/null +++ b/yaml/example-012-Identifying-a-node-expanded.yml @@ -0,0 +1,5 @@ +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.yml b/yaml/example-012-Identifying-a-node-original.yml similarity index 72% rename from yaml/example-012-Identifying-a-node.yml rename to yaml/example-012-Identifying-a-node-original.yml index 20f8f1c5..a29338bb 100644 --- a/yaml/example-012-Identifying-a-node.yml +++ b/yaml/example-012-Identifying-a-node-original.yml @@ -1,4 +1,4 @@ -Example 012: Identifying a node +Example 012: Identifying a node-original --- "@context": name: http://schema.org/name 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 new file mode 100644 index 00000000..4099e3b2 --- /dev/null +++ b/yaml/example-013-Specifying-the-type-for-a-node-expanded.yml @@ -0,0 +1,9 @@ +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.yml b/yaml/example-013-Specifying-the-type-for-a-node-original.yml similarity index 80% rename from yaml/example-013-Specifying-the-type-for-a-node.yml rename to yaml/example-013-Specifying-the-type-for-a-node-original.yml index e0135b1d..9467d00a 100644 --- a/yaml/example-013-Specifying-the-type-for-a-node.yml +++ b/yaml/example-013-Specifying-the-type-for-a-node-original.yml @@ -1,4 +1,4 @@ -Example 013: Specifying the type for a node +Example 013: Specifying the type for a node-original --- "@context": givenName: http://schema.org/givenName 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 new file mode 100644 index 00000000..6e940506 --- /dev/null +++ b/yaml/example-014-Specifying-multiple-types-for-a-node-expanded.yml @@ -0,0 +1,6 @@ +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.yml b/yaml/example-014-Specifying-multiple-types-for-a-node-original.yml similarity index 65% rename from yaml/example-014-Specifying-multiple-types-for-a-node.yml rename to yaml/example-014-Specifying-multiple-types-for-a-node-original.yml index 6b9994dd..83efa979 100644 --- a/yaml/example-014-Specifying-multiple-types-for-a-node.yml +++ b/yaml/example-014-Specifying-multiple-types-for-a-node-original.yml @@ -1,4 +1,4 @@ -Example 014: Specifying multiple types for a node +Example 014: Specifying multiple types for a node-original --- "@id": http://me.markus-lanthaler.com/ "@type": 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 new file mode 100644 index 00000000..34b26c0e --- /dev/null +++ b/yaml/example-015-Using-a-term-to-specify-the-type-expanded.yml @@ -0,0 +1,5 @@ +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.yml b/yaml/example-015-Using-a-term-to-specify-the-type-original.yml similarity index 66% rename from yaml/example-015-Using-a-term-to-specify-the-type.yml rename to yaml/example-015-Using-a-term-to-specify-the-type-original.yml index f539abe2..28b00fe4 100644 --- a/yaml/example-015-Using-a-term-to-specify-the-type.yml +++ b/yaml/example-015-Using-a-term-to-specify-the-type-original.yml @@ -1,4 +1,4 @@ -Example 015: Using a term to specify the type +Example 015: Using a term to specify the type-original --- "@context": Person: http://schema.org/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 new file mode 100644 index 00000000..a0c48d80 --- /dev/null +++ b/yaml/example-016-Referencing-Objects-on-the-Web-expanded.yml @@ -0,0 +1,9 @@ +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.yml b/yaml/example-016-Referencing-Objects-on-the-Web-original.yml similarity index 78% rename from yaml/example-016-Referencing-Objects-on-the-Web.yml rename to yaml/example-016-Referencing-Objects-on-the-Web-original.yml index cb18c888..dce68dcd 100644 --- a/yaml/example-016-Referencing-Objects-on-the-Web.yml +++ b/yaml/example-016-Referencing-Objects-on-the-Web-original.yml @@ -1,4 +1,4 @@ -Example 016: Referencing Objects on the Web +Example 016: Referencing Objects on the Web-original --- "@context": "@vocab": http://schema.org/ diff --git a/yaml/example-017-Embedding-Objects-expanded.yml b/yaml/example-017-Embedding-Objects-expanded.yml new file mode 100644 index 00000000..6c67aa9c --- /dev/null +++ b/yaml/example-017-Embedding-Objects-expanded.yml @@ -0,0 +1,13 @@ +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.yml b/yaml/example-017-Embedding-Objects-original.yml similarity index 84% rename from yaml/example-017-Embedding-Objects.yml rename to yaml/example-017-Embedding-Objects-original.yml index a98df371..a0a042ad 100644 --- a/yaml/example-017-Embedding-Objects.yml +++ b/yaml/example-017-Embedding-Objects-original.yml @@ -1,4 +1,4 @@ -Example 017: Embedding Objects +Example 017: Embedding Objects-original --- "@context": "@vocab": http://schema.org/ diff --git a/yaml/example-018-Using-multiple-contexts-expanded.yml b/yaml/example-018-Using-multiple-contexts-expanded.yml new file mode 100644 index 00000000..7fdea98e --- /dev/null +++ b/yaml/example-018-Using-multiple-contexts-expanded.yml @@ -0,0 +1,19 @@ +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.yml b/yaml/example-018-Using-multiple-contexts-original.yml similarity index 89% rename from yaml/example-018-Using-multiple-contexts.yml rename to yaml/example-018-Using-multiple-contexts-original.yml index 2fa7a291..2bd327d5 100644 --- a/yaml/example-018-Using-multiple-contexts.yml +++ b/yaml/example-018-Using-multiple-contexts-original.yml @@ -1,4 +1,4 @@ -Example 018: Using multiple contexts +Example 018: Using multiple contexts-original --- - "@context": https://json-ld.org/contexts/person.jsonld name: Manu Sporny diff --git a/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml b/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml new file mode 100644 index 00000000..38507b50 --- /dev/null +++ b/yaml/example-019-Scoped-contexts-within-node-objects-expanded.yml @@ -0,0 +1,7 @@ +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.yml b/yaml/example-019-Scoped-contexts-within-node-objects-original.yml similarity index 79% rename from yaml/example-019-Scoped-contexts-within-node-objects.yml rename to yaml/example-019-Scoped-contexts-within-node-objects-original.yml index a7395935..c580d158 100644 --- a/yaml/example-019-Scoped-contexts-within-node-objects.yml +++ b/yaml/example-019-Scoped-contexts-within-node-objects-original.yml @@ -1,4 +1,4 @@ -Example 019: Scoped contexts within node objects +Example 019: Scoped contexts within node objects-original --- "@context": name: http://example.com/person#name diff --git a/yaml/example-020-Combining-external-and-local-contexts-expanded.yml b/yaml/example-020-Combining-external-and-local-contexts-expanded.yml new file mode 100644 index 00000000..64e58ce6 --- /dev/null +++ b/yaml/example-020-Combining-external-and-local-contexts-expanded.yml @@ -0,0 +1,8 @@ +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.yml b/yaml/example-020-Combining-external-and-local-contexts-original.yml similarity index 78% rename from yaml/example-020-Combining-external-and-local-contexts.yml rename to yaml/example-020-Combining-external-and-local-contexts-original.yml index a0c80cb4..7ffa9704 100644 --- a/yaml/example-020-Combining-external-and-local-contexts.yml +++ b/yaml/example-020-Combining-external-and-local-contexts-original.yml @@ -1,4 +1,4 @@ -Example 020: Combining external and local contexts +Example 020: Combining external and local contexts-original --- "@context": - https://json-ld.org/contexts/person.jsonld diff --git a/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml b/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml new file mode 100644 index 00000000..40bad82c --- /dev/null +++ b/yaml/example-022-Using-a-common-vocabulary-prefix-expanded.yml @@ -0,0 +1,7 @@ +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.yml b/yaml/example-022-Using-a-common-vocabulary-prefix-original.yml similarity index 69% rename from yaml/example-022-Using-a-common-vocabulary-prefix.yml rename to yaml/example-022-Using-a-common-vocabulary-prefix-original.yml index 34b860b1..fa0e5dea 100644 --- a/yaml/example-022-Using-a-common-vocabulary-prefix.yml +++ b/yaml/example-022-Using-a-common-vocabulary-prefix-original.yml @@ -1,4 +1,4 @@ -Example 022: Using a common vocabulary prefix +Example 022: Using a common vocabulary prefix-original --- "@context": "@vocab": http://schema.org/ 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 new file mode 100644 index 00000000..e93bf0de --- /dev/null +++ b/yaml/example-023-Using-the-null-keyword-to-ignore-data-expanded.yml @@ -0,0 +1,7 @@ +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.yml b/yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml similarity index 73% rename from yaml/example-023-Using-the-null-keyword-to-ignore-data.yml rename to yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml index 986d340b..4ee9daa1 100644 --- a/yaml/example-023-Using-the-null-keyword-to-ignore-data.yml +++ b/yaml/example-023-Using-the-null-keyword-to-ignore-data-original.yml @@ -1,4 +1,4 @@ -Example 023: Using the null keyword to ignore data +Example 023: Using the null keyword to ignore data-original --- "@context": "@vocab": http://schema.org/ diff --git a/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-.yml b/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml similarity index 69% rename from yaml/example-025-Using-as-the-vocabulary-mapping-expanded-.yml rename to yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml index 2badf5d9..bc5f4ee8 100644 --- a/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-.yml +++ b/yaml/example-025-Using-as-the-vocabulary-mapping-expanded-expanded.yml @@ -1,4 +1,4 @@ -Example 025: Using "" as the vocabulary mapping (expanded) +Example 025: Using "" as the vocabulary mapping (expanded)-expanded --- - "@id": http://example.org/places#BrewEats "@type": 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 new file mode 100644 index 00000000..b3debd70 --- /dev/null +++ b/yaml/example-027-Setting-the-document-base-in-a-document-expanded.yml @@ -0,0 +1,5 @@ +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.yml b/yaml/example-027-Setting-the-document-base-in-a-document-original.yml similarity index 71% rename from yaml/example-027-Setting-the-document-base-in-a-document.yml rename to yaml/example-027-Setting-the-document-base-in-a-document-original.yml index 9424f9d3..d931bda8 100644 --- a/yaml/example-027-Setting-the-document-base-in-a-document.yml +++ b/yaml/example-027-Setting-the-document-base-in-a-document-original.yml @@ -1,4 +1,4 @@ -Example 027: Setting the document base in a document +Example 027: Setting the document base in a document-original --- "@context": "@base": http://example.com/document.jsonld diff --git a/yaml/example-028-Prefix-expansion-expanded.yml b/yaml/example-028-Prefix-expansion-expanded.yml new file mode 100644 index 00000000..cbfd4b3b --- /dev/null +++ b/yaml/example-028-Prefix-expansion-expanded.yml @@ -0,0 +1,6 @@ +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.yml b/yaml/example-028-Prefix-expansion-original.yml similarity index 71% rename from yaml/example-028-Prefix-expansion.yml rename to yaml/example-028-Prefix-expansion-original.yml index 431f6a69..ab1be0ea 100644 --- a/yaml/example-028-Prefix-expansion.yml +++ b/yaml/example-028-Prefix-expansion-original.yml @@ -1,4 +1,4 @@ -Example 028: Prefix expansion +Example 028: Prefix expansion-original --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/example-029-Using-vocabularies-expanded.yml b/yaml/example-029-Using-vocabularies-expanded.yml new file mode 100644 index 00000000..aecb33af --- /dev/null +++ b/yaml/example-029-Using-vocabularies-expanded.yml @@ -0,0 +1,11 @@ +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.yml b/yaml/example-029-Using-vocabularies-original.yml similarity index 90% rename from yaml/example-029-Using-vocabularies.yml rename to yaml/example-029-Using-vocabularies-original.yml index fd6a2b80..dfd7ffda 100644 --- a/yaml/example-029-Using-vocabularies.yml +++ b/yaml/example-029-Using-vocabularies-original.yml @@ -1,4 +1,4 @@ -Example 029: Using vocabularies +Example 029: Using vocabularies-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..e998db2b --- /dev/null +++ b/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-expanded.yml @@ -0,0 +1,6 @@ +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.yml b/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml similarity index 94% rename from yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.yml rename to yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml index 3cb72b9d..979117a6 100644 --- a/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs.yml +++ b/yaml/example-030-Using-explicit-prefix-declaration-to-create-compact-IRIs-original.yml @@ -1,4 +1,4 @@ -Example 030: Using explicit @prefix declaration to create compact IRIs +Example 030: Using explicit @prefix declaration to create compact IRIs-original --- "@context": compact-iris: diff --git a/yaml/example-031-Aliasing-keywords-expanded.yml b/yaml/example-031-Aliasing-keywords-expanded.yml new file mode 100644 index 00000000..700fd0eb --- /dev/null +++ b/yaml/example-031-Aliasing-keywords-expanded.yml @@ -0,0 +1,7 @@ +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.yml b/yaml/example-031-Aliasing-keywords-original.yml similarity index 81% rename from yaml/example-031-Aliasing-keywords.yml rename to yaml/example-031-Aliasing-keywords-original.yml index 91ca71ac..ce698b43 100644 --- a/yaml/example-031-Aliasing-keywords.yml +++ b/yaml/example-031-Aliasing-keywords-original.yml @@ -1,4 +1,4 @@ -Example 031: Aliasing keywords +Example 031: Aliasing keywords-original --- "@context": url: "@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 new file mode 100644 index 00000000..cfa1d605 --- /dev/null +++ b/yaml/example-037-Defining-an-context-within-a-term-definition-expanded.yml @@ -0,0 +1,10 @@ +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.yml b/yaml/example-037-Defining-an-context-within-a-term-definition-original.yml similarity index 69% rename from yaml/example-037-Defining-an-context-within-a-term-definition.yml rename to yaml/example-037-Defining-an-context-within-a-term-definition-original.yml index e67752a6..034c243d 100644 --- a/yaml/example-037-Defining-an-context-within-a-term-definition.yml +++ b/yaml/example-037-Defining-an-context-within-a-term-definition-original.yml @@ -1,4 +1,4 @@ -Example 037: Defining an @context within a term definition +Example 037: Defining an @context within a term definition-original --- "@context": "@version": 1.1 @@ -9,6 +9,6 @@ Example 037: Defining an @context within a term definition "@vocab": http://xmlns.com/foaf/0.1/ name: Manu Sporny interest: - "@id": https://www.w3.org/TR/json-ld/ + "@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 new file mode 100644 index 00000000..a9270a89 --- /dev/null +++ b/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-expanded.yml @@ -0,0 +1,14 @@ +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-039-Defining-an-context-within-a-term-definition-used-on-type.yml b/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml similarity index 67% rename from yaml/example-039-Defining-an-context-within-a-term-definition-used-on-type.yml rename to yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml index c11ac868..4a4ebd39 100644 --- a/yaml/example-039-Defining-an-context-within-a-term-definition-used-on-type.yml +++ b/yaml/example-038-Defining-an-context-within-a-term-definition-used-on-type-original.yml @@ -1,9 +1,10 @@ -Example 039: Defining an @context within a term definition used on @type +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": @@ -11,7 +12,7 @@ Example 039: Defining an @context within a term definition used on @type "@type": Person name: Manu Sporny interest: - "@id": https://www.w3.org/TR/json-ld/ + "@id": https://www.w3.org/TR/json-ld11/ "@type": Document name: JSON-LD topic: Linking Data diff --git a/yaml/example-038-Expanded-document-using-a-scoped-context.yml b/yaml/example-038-Expanded-document-using-a-scoped-context.yml deleted file mode 100644 index 25a56d2a..00000000 --- a/yaml/example-038-Expanded-document-using-a-scoped-context.yml +++ /dev/null @@ -1,10 +0,0 @@ -Example 038: 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 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 new file mode 100644 index 00000000..a940fed0 --- /dev/null +++ b/yaml/example-039-Expanded-term-definition-with-type-coercion-expanded.yml @@ -0,0 +1,6 @@ +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-040-Expanded-term-definition-with-type-coercion.yml b/yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml similarity index 75% rename from yaml/example-040-Expanded-term-definition-with-type-coercion.yml rename to yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml index 946430fb..02ff7c5a 100644 --- a/yaml/example-040-Expanded-term-definition-with-type-coercion.yml +++ b/yaml/example-039-Expanded-term-definition-with-type-coercion-original.yml @@ -1,4 +1,4 @@ -Example 040: Expanded term definition with type coercion +Example 039: Expanded term definition with type coercion-original --- "@context": modified: diff --git a/yaml/example-040-Expanded-value-with-type-expanded.yml b/yaml/example-040-Expanded-value-with-type-expanded.yml new file mode 100644 index 00000000..7ae1f1f3 --- /dev/null +++ b/yaml/example-040-Expanded-value-with-type-expanded.yml @@ -0,0 +1,5 @@ +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-041-Expanded-value-with-type.yml b/yaml/example-040-Expanded-value-with-type-original.yml similarity index 78% rename from yaml/example-041-Expanded-value-with-type.yml rename to yaml/example-040-Expanded-value-with-type-original.yml index 176b69c1..d5ae3880 100644 --- a/yaml/example-041-Expanded-value-with-type.yml +++ b/yaml/example-040-Expanded-value-with-type-original.yml @@ -1,4 +1,4 @@ -Example 041: Expanded value with type +Example 040: Expanded value with type-original --- "@context": modified: diff --git a/yaml/example-042-Example-demonstrating-the-context-sensitivity-for-type.yml b/yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml similarity index 65% rename from yaml/example-042-Example-demonstrating-the-context-sensitivity-for-type.yml rename to yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml index 8e4ba5bb..b486f316 100644 --- a/yaml/example-042-Example-demonstrating-the-context-sensitivity-for-type.yml +++ b/yaml/example-041-Example-demonstrating-the-context-sensitivity-for-type.yml @@ -1,7 +1,7 @@ -Example 042: Example demonstrating the context-sensitivity for @type +Example 041: Example demonstrating the context-sensitivity for @type --- "@id": http://example.org/posts#TripToWestVirginia "@type": http://schema.org/BlogPosting -modified: +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 new file mode 100644 index 00000000..bc697a23 --- /dev/null +++ b/yaml/example-043-Expanded-term-definition-with-types-expanded.yml @@ -0,0 +1,11 @@ +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.yml b/yaml/example-043-Expanded-term-definition-with-types-original.yml similarity index 86% rename from yaml/example-043-Expanded-term-definition-with-types.yml rename to yaml/example-043-Expanded-term-definition-with-types-original.yml index edfc3b0b..6b419d85 100644 --- a/yaml/example-043-Expanded-term-definition-with-types.yml +++ b/yaml/example-043-Expanded-term-definition-with-types-original.yml @@ -1,4 +1,4 @@ -Example 043: Expanded term definition with types +Example 043: Expanded term definition with types-original --- "@context": xsd: http://www.w3.org/2001/XMLSchema# 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 new file mode 100644 index 00000000..9bbdbe48 --- /dev/null +++ b/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-expanded.yml @@ -0,0 +1,10 @@ +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.yml b/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml similarity index 74% rename from yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs.yml rename to yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml index f3af3c6c..33312c53 100644 --- a/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs.yml +++ b/yaml/example-044-Term-definitions-using-compact-and-absolute-IRIs-original.yml @@ -1,6 +1,7 @@ -Example 044: Term definitions using compact and absolute IRIs +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 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 new file mode 100644 index 00000000..8dcc4e5d --- /dev/null +++ b/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-expanded.yml @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..3299086c --- /dev/null +++ b/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document-original.yml @@ -0,0 +1,8 @@ +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-045-Setting-the-default-language-of-a-JSON-LD-document.yml b/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document.yml deleted file mode 100644 index 2beb7f2c..00000000 --- a/yaml/example-045-Setting-the-default-language-of-a-JSON-LD-document.yml +++ /dev/null @@ -1,6 +0,0 @@ -Example 045: Setting the default language of a JSON-LD document ---- -"@context": - "@language": ja -name: 花澄 -occupation: 科学者 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 new file mode 100644 index 00000000..bd3e26b6 --- /dev/null +++ b/yaml/example-051-Multiple-values-with-no-inherent-order-expanded.yml @@ -0,0 +1,7 @@ +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 new file mode 100644 index 00000000..c8521ffc --- /dev/null +++ b/yaml/example-051-Multiple-values-with-no-inherent-order-original.yml @@ -0,0 +1,9 @@ +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-051-Multiple-values-with-no-inherent-order.yml b/yaml/example-051-Multiple-values-with-no-inherent-order.yml deleted file mode 100644 index 2f7601f1..00000000 --- a/yaml/example-051-Multiple-values-with-no-inherent-order.yml +++ /dev/null @@ -1,7 +0,0 @@ -Example 051: Multiple values with no inherent order ---- -"@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 new file mode 100644 index 00000000..f2ccbb05 --- /dev/null +++ b/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-expanded.yml @@ -0,0 +1,8 @@ +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.yml b/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml similarity index 53% rename from yaml/example-052-Using-an-expanded-form-to-set-multiple-values.yml rename to yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml index f88b6d38..af6a7402 100644 --- a/yaml/example-052-Using-an-expanded-form-to-set-multiple-values.yml +++ b/yaml/example-052-Using-an-expanded-form-to-set-multiple-values-original.yml @@ -1,5 +1,7 @@ -Example 052: Using an expanded form to set multiple values +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 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 new file mode 100644 index 00000000..c1c03e29 --- /dev/null +++ b/yaml/example-053-Multiple-array-values-of-different-types-expanded.yml @@ -0,0 +1,10 @@ +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.yml b/yaml/example-053-Multiple-array-values-of-different-types-original.yml similarity index 58% rename from yaml/example-053-Multiple-array-values-of-different-types.yml rename to yaml/example-053-Multiple-array-values-of-different-types-original.yml index 2df5e906..9b951dcc 100644 --- a/yaml/example-053-Multiple-array-values-of-different-types.yml +++ b/yaml/example-053-Multiple-array-values-of-different-types-original.yml @@ -1,7 +1,9 @@ -Example 053: Multiple array values of different types +Example 053: Multiple array values of different types-original --- +"@context": + schema: http://schema.org/ "@id": http://example.org/people#michael -dc:name: +schema:name: - Michael - "@value": Mike - "@value": Miguel 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 new file mode 100644 index 00000000..785649be --- /dev/null +++ b/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-expanded.yml @@ -0,0 +1,8 @@ +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 new file mode 100644 index 00000000..f5abe028 --- /dev/null +++ b/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD-original.yml @@ -0,0 +1,10 @@ +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-054-An-ordered-collection-of-values-in-JSON-LD.yml b/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD.yml deleted file mode 100644 index 3656543f..00000000 --- a/yaml/example-054-An-ordered-collection-of-values-in-JSON-LD.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 054: An ordered collection of values in JSON-LD ---- -"@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 new file mode 100644 index 00000000..dc9f0be6 --- /dev/null +++ b/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-expanded.yml @@ -0,0 +1,8 @@ +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.yml b/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml similarity index 94% rename from yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context.yml rename to yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml index e14b826d..96864e22 100644 --- a/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context.yml +++ b/yaml/example-055-Specifying-that-a-collection-is-ordered-in-the-context-original.yml @@ -1,4 +1,4 @@ -Example 055: Specifying that a collection is ordered in the context +Example 055: Specifying that a collection is ordered in the context-original --- "@context": nick: diff --git a/yaml/example-057-Coordinates-expressed-in-GeoJSON.yml b/yaml/example-056-Coordinates-expressed-in-GeoJSON.yml similarity index 81% rename from yaml/example-057-Coordinates-expressed-in-GeoJSON.yml rename to yaml/example-056-Coordinates-expressed-in-GeoJSON.yml index 32c71793..c3f32649 100644 --- a/yaml/example-057-Coordinates-expressed-in-GeoJSON.yml +++ b/yaml/example-056-Coordinates-expressed-in-GeoJSON.yml @@ -1,4 +1,4 @@ -Example 057: Coordinates expressed in GeoJSON +Example 056: Coordinates expressed in GeoJSON --- type: Feature bbox: diff --git a/yaml/example-059-Coordinates-expressed-in-JSON-LD-expanded-.yml b/yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml similarity index 92% rename from yaml/example-059-Coordinates-expressed-in-JSON-LD-expanded-.yml rename to yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml index 77a8b6b9..cce1ca74 100644 --- a/yaml/example-059-Coordinates-expressed-in-JSON-LD-expanded-.yml +++ b/yaml/example-057-Coordinates-expressed-in-JSON-LD-expanded.yml @@ -1,4 +1,4 @@ -Example 059: Coordinates expressed in JSON-LD (expanded) +Example 057: Coordinates expressed in JSON-LD-expanded --- - "@type": - https://purl.org/geojson/vocab#Feature diff --git a/yaml/example-058-Coordinates-expressed-in-JSON-LD.yml b/yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml similarity index 86% rename from yaml/example-058-Coordinates-expressed-in-JSON-LD.yml rename to yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml index 2c36f191..1a6620db 100644 --- a/yaml/example-058-Coordinates-expressed-in-JSON-LD.yml +++ b/yaml/example-057-Coordinates-expressed-in-JSON-LD-original.yml @@ -1,4 +1,4 @@ -Example 058: Coordinates expressed in JSON-LD +Example 057: Coordinates expressed in JSON-LD-original --- "@context": "@vocab": https://purl.org/geojson/vocab# 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 new file mode 100644 index 00000000..95bb3d25 --- /dev/null +++ b/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-expanded.yml @@ -0,0 +1,7 @@ +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 new file mode 100644 index 00000000..6e8924b5 --- /dev/null +++ b/yaml/example-058-An-unordered-collection-of-values-in-JSON-LD-original.yml @@ -0,0 +1,10 @@ +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 new file mode 100644 index 00000000..3572b2eb --- /dev/null +++ b/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-expanded.yml @@ -0,0 +1,7 @@ +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-062-Specifying-that-a-collection-is-unordered-in-the-context.yml b/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml similarity index 66% rename from yaml/example-062-Specifying-that-a-collection-is-unordered-in-the-context.yml rename to yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml index f1c0faa7..38231f48 100644 --- a/yaml/example-062-Specifying-that-a-collection-is-unordered-in-the-context.yml +++ b/yaml/example-059-Specifying-that-a-collection-is-unordered-in-the-context-original.yml @@ -1,4 +1,4 @@ -Example 062: Specifying that a collection is unordered in the context +Example 059: Specifying that a collection is unordered in the context-original --- "@context": nick: diff --git a/yaml/example-060-Nested-properties-expanded.yml b/yaml/example-060-Nested-properties-expanded.yml new file mode 100644 index 00000000..242c413e --- /dev/null +++ b/yaml/example-060-Nested-properties-expanded.yml @@ -0,0 +1,9 @@ +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-063-Nested-properties.yml b/yaml/example-060-Nested-properties-original.yml similarity index 81% rename from yaml/example-063-Nested-properties.yml rename to yaml/example-060-Nested-properties-original.yml index 3fdc46e9..32db374a 100644 --- a/yaml/example-063-Nested-properties.yml +++ b/yaml/example-060-Nested-properties-original.yml @@ -1,4 +1,4 @@ -Example 063: Nested properties +Example 060: Nested properties-original --- "@context": "@version": 1.1 @@ -9,7 +9,7 @@ Example 063: Nested properties other_label: "@id": skos:altLabel homepage: - "@id": http://schema.org/description + "@id": http://xmlns.com/foaf/0.1/homepage "@type": "@id" "@id": http://example.org/myresource homepage: http://example.org diff --git a/yaml/example-061-An-unordered-collection-of-values-in-JSON-LD.yml b/yaml/example-061-An-unordered-collection-of-values-in-JSON-LD.yml deleted file mode 100644 index b730d798..00000000 --- a/yaml/example-061-An-unordered-collection-of-values-in-JSON-LD.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 061: An unordered collection of values in JSON-LD ---- -"@id": http://example.org/people#joebob -foaf:nick: - "@set": - - joe - - bob - - jaybee 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 new file mode 100644 index 00000000..a708c5bc --- /dev/null +++ b/yaml/example-061-Nested-properties-folded-into-containing-object-expanded.yml @@ -0,0 +1,9 @@ +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-064-Nested-properties-folded-into-containing-object.yml b/yaml/example-061-Nested-properties-folded-into-containing-object-original.yml similarity index 73% rename from yaml/example-064-Nested-properties-folded-into-containing-object.yml rename to yaml/example-061-Nested-properties-folded-into-containing-object-original.yml index e1ad0f3b..76e6f6c5 100644 --- a/yaml/example-064-Nested-properties-folded-into-containing-object.yml +++ b/yaml/example-061-Nested-properties-folded-into-containing-object-original.yml @@ -1,4 +1,4 @@ -Example 064: Nested properties folded into containing object +Example 061: Nested properties folded into containing object-original --- "@context": skos: http://www.w3.org/2004/02/skos/core# @@ -7,7 +7,7 @@ Example 064: Nested properties folded into containing object other_label: "@id": skos:altLabel homepage: - "@id": http://schema.org/description + "@id": http://xmlns.com/foaf/0.1/homepage "@type": "@id" "@id": http://example.org/myresource homepage: http://example.org diff --git a/yaml/example-062-Defining-property-nesting-expanded.yml b/yaml/example-062-Defining-property-nesting-expanded.yml new file mode 100644 index 00000000..025eaa16 --- /dev/null +++ b/yaml/example-062-Defining-property-nesting-expanded.yml @@ -0,0 +1,9 @@ +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-065-Defining-property-nesting.yml b/yaml/example-062-Defining-property-nesting-original.yml similarity index 81% rename from yaml/example-065-Defining-property-nesting.yml rename to yaml/example-062-Defining-property-nesting-original.yml index b4641216..5370f7af 100644 --- a/yaml/example-065-Defining-property-nesting.yml +++ b/yaml/example-062-Defining-property-nesting-original.yml @@ -1,4 +1,4 @@ -Example 065: Defining property nesting +Example 062: Defining property nesting-original --- "@context": "@version": 1.1 @@ -11,7 +11,7 @@ Example 065: Defining property nesting "@id": skos:altLabel "@nest": labels homepage: - "@id": http://schema.org/description + "@id": http://xmlns.com/foaf/0.1/homepage "@type": "@id" "@id": http://example.org/myresource homepage: http://example.org diff --git a/yaml/example-063-Referencing-node-objects-expanded.yml b/yaml/example-063-Referencing-node-objects-expanded.yml new file mode 100644 index 00000000..d1eabe8e --- /dev/null +++ b/yaml/example-063-Referencing-node-objects-expanded.yml @@ -0,0 +1,13 @@ +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-066-Referencing-node-objects.yml b/yaml/example-063-Referencing-node-objects-original.yml similarity index 83% rename from yaml/example-066-Referencing-node-objects.yml rename to yaml/example-063-Referencing-node-objects-original.yml index a1391f88..dc84a649 100644 --- a/yaml/example-066-Referencing-node-objects.yml +++ b/yaml/example-063-Referencing-node-objects-original.yml @@ -1,4 +1,4 @@ -Example 066: Referencing node objects +Example 063: Referencing node objects-original --- "@context": "@vocab": http://schema.org/ 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 new file mode 100644 index 00000000..1955d332 --- /dev/null +++ b/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-expanded.yml @@ -0,0 +1,12 @@ +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-067-Embedding-a-node-object-as-property-value-of-another-node-object.yml b/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml similarity index 59% rename from yaml/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.yml rename to yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml index e29f4d00..b92d67e8 100644 --- a/yaml/example-067-Embedding-a-node-object-as-property-value-of-another-node-object.yml +++ b/yaml/example-064-Embedding-a-node-object-as-property-value-of-another-node-object-original.yml @@ -1,7 +1,8 @@ -Example 067: Embedding a node object as property value of another node object +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 diff --git a/yaml/example-065-Referencing-an-unidentified-node-expanded.yml b/yaml/example-065-Referencing-an-unidentified-node-expanded.yml new file mode 100644 index 00000000..2e3aa0ed --- /dev/null +++ b/yaml/example-065-Referencing-an-unidentified-node-expanded.yml @@ -0,0 +1,15 @@ +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-068-Referencing-an-unidentified-node.yml b/yaml/example-065-Referencing-an-unidentified-node-original.yml similarity index 72% rename from yaml/example-068-Referencing-an-unidentified-node.yml rename to yaml/example-065-Referencing-an-unidentified-node-original.yml index 4b913e1f..601bd500 100644 --- a/yaml/example-068-Referencing-an-unidentified-node.yml +++ b/yaml/example-065-Referencing-an-unidentified-node-original.yml @@ -1,8 +1,9 @@ -Example 068: Referencing an unidentified node +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 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 new file mode 100644 index 00000000..dd8a0b8e --- /dev/null +++ b/yaml/example-066-Specifying-a-local-blank-node-identifier-expanded.yml @@ -0,0 +1,10 @@ +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 new file mode 100644 index 00000000..4b9b970d --- /dev/null +++ b/yaml/example-066-Specifying-a-local-blank-node-identifier-original.yml @@ -0,0 +1,10 @@ +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 new file mode 100644 index 00000000..1fd3286d --- /dev/null +++ b/yaml/example-067-Indexing-data-in-JSON-LD-expanded.yml @@ -0,0 +1,21 @@ +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-070-Indexing-data-in-JSON-LD.yml b/yaml/example-067-Indexing-data-in-JSON-LD-original.yml similarity index 92% rename from yaml/example-070-Indexing-data-in-JSON-LD.yml rename to yaml/example-067-Indexing-data-in-JSON-LD-original.yml index 394c2636..c5c0c433 100644 --- a/yaml/example-070-Indexing-data-in-JSON-LD.yml +++ b/yaml/example-067-Indexing-data-in-JSON-LD-original.yml @@ -1,4 +1,4 @@ -Example 070: Indexing data in JSON-LD +Example 067: Indexing data in JSON-LD-original --- "@context": schema: http://schema.org/ diff --git a/yaml/example-068-Indexing-data-using-none-expanded.yml b/yaml/example-068-Indexing-data-using-none-expanded.yml new file mode 100644 index 00000000..fb78c88f --- /dev/null +++ b/yaml/example-068-Indexing-data-using-none-expanded.yml @@ -0,0 +1,26 @@ +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-072-Indexing-data-using-none.yml b/yaml/example-068-Indexing-data-using-none-original.yml similarity index 90% rename from yaml/example-072-Indexing-data-using-none.yml rename to yaml/example-068-Indexing-data-using-none-original.yml index ddecdaca..b18edd65 100644 --- a/yaml/example-072-Indexing-data-using-none.yml +++ b/yaml/example-068-Indexing-data-using-none-original.yml @@ -1,6 +1,7 @@ -Example 072: Indexing data using @none +Example 068: Indexing data using @none-original --- "@context": + "@version": 1.1 schema: http://schema.org/ name: schema:name body: schema:articleBody 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 new file mode 100644 index 00000000..35c7abb8 --- /dev/null +++ b/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-expanded.yml @@ -0,0 +1,10 @@ +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-073-Indexing-languaged-tagged-strings-in-JSON-LD.yml b/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml similarity index 75% rename from yaml/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.yml rename to yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml index 8e7a2229..53b849fb 100644 --- a/yaml/example-073-Indexing-languaged-tagged-strings-in-JSON-LD.yml +++ b/yaml/example-069-Indexing-languaged-tagged-strings-in-JSON-LD-original.yml @@ -1,4 +1,4 @@ -Example 073: Indexing languaged-tagged strings in JSON-LD +Example 069: Indexing languaged-tagged strings in JSON-LD-original --- "@context": vocab: http://example.com/vocab/ diff --git a/yaml/example-069-Specifying-a-local-blank-node-identifier.yml b/yaml/example-069-Specifying-a-local-blank-node-identifier.yml deleted file mode 100644 index ce732270..00000000 --- a/yaml/example-069-Specifying-a-local-blank-node-identifier.yml +++ /dev/null @@ -1,8 +0,0 @@ -Example 069: Specifying a local blank node identifier ---- -"@id": _:n1 -name: Secret Agent 1 -knows: - name: Secret Agent 2 - knows: - "@id": _:n1 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 new file mode 100644 index 00000000..77b2d50c --- /dev/null +++ b/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-expanded.yml @@ -0,0 +1,10 @@ +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-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.yml b/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml similarity index 73% rename from yaml/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.yml rename to yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml index 258267a6..e00e46cc 100644 --- a/yaml/example-074-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation.yml +++ b/yaml/example-070-Indexing-languaged-tagged-strings-in-JSON-LD-with-set-representation-original.yml @@ -1,4 +1,4 @@ -Example 074: Indexing languaged-tagged strings in JSON-LD with @set representation +Example 070: Indexing languaged-tagged strings in JSON-LD with @set representation-original --- "@context": "@version": 1.1 diff --git a/yaml/example-071-Indexing-data-in-JSON-LD-with-set-representation.yml b/yaml/example-071-Indexing-data-in-JSON-LD-with-set-representation.yml deleted file mode 100644 index 210898d5..00000000 --- a/yaml/example-071-Indexing-data-in-JSON-LD-with-set-representation.yml +++ /dev/null @@ -1,25 +0,0 @@ -Example 071: 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 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 new file mode 100644 index 00000000..220c63a9 --- /dev/null +++ b/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-expanded.yml @@ -0,0 +1,11 @@ +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-075-Indexing-languaged-tagged-strings-using-none-for-no-language.yml b/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml similarity index 73% rename from yaml/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.yml rename to yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml index 13bc0743..bed8d051 100644 --- a/yaml/example-075-Indexing-languaged-tagged-strings-using-none-for-no-language.yml +++ b/yaml/example-071-Indexing-languaged-tagged-strings-using-none-for-no-language-original.yml @@ -1,4 +1,4 @@ -Example 075: Indexing languaged-tagged strings using @none for no language +Example 071: Indexing languaged-tagged strings using @none for no language-original --- "@context": vocab: http://example.com/vocab/ 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 new file mode 100644 index 00000000..f0683631 --- /dev/null +++ b/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-expanded.yml @@ -0,0 +1,19 @@ +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-076-Indexing-data-in-JSON-LD-by-node-identifiers.yml b/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml similarity index 88% rename from yaml/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.yml rename to yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml index a5247a5e..34012e49 100644 --- a/yaml/example-076-Indexing-data-in-JSON-LD-by-node-identifiers.yml +++ b/yaml/example-072-Indexing-data-in-JSON-LD-by-node-identifiers-original.yml @@ -1,4 +1,4 @@ -Example 076: Indexing data in JSON-LD by node identifiers +Example 072: Indexing data in JSON-LD by node identifiers-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..2937e1c7 --- /dev/null +++ b/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-expanded.yml @@ -0,0 +1,19 @@ +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-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.yml b/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml similarity index 85% rename from yaml/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.yml rename to yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml index 7f63a06b..0b6818a7 100644 --- a/yaml/example-077-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation.yml +++ b/yaml/example-073-Indexing-data-in-JSON-LD-by-node-identifiers-with-set-representation-original.yml @@ -1,4 +1,4 @@ -Example 077: Indexing data in JSON-LD by node identifiers with @set representation +Example 073: Indexing data in JSON-LD by node identifiers with @set representation-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..281c612b --- /dev/null +++ b/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-expanded.yml @@ -0,0 +1,23 @@ +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-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.yml b/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml similarity index 81% rename from yaml/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.yml rename to yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml index aa770493..333f2388 100644 --- a/yaml/example-078-Indexing-data-in-JSON-LD-by-node-identifiers-using-none.yml +++ b/yaml/example-074-Indexing-data-in-JSON-LD-by-node-identifiers-using-none-original.yml @@ -1,4 +1,4 @@ -Example 078: Indexing data in JSON-LD by node identifiers using @none +Example 074: Indexing data in JSON-LD by node identifiers using @none-original --- "@context": "@version": 1.1 @@ -21,5 +21,5 @@ post: 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 + 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 new file mode 100644 index 00000000..ea94ad87 --- /dev/null +++ b/yaml/example-075-Indexing-data-in-JSON-LD-by-type-expanded.yml @@ -0,0 +1,15 @@ +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-079-Indexing-data-in-JSON-LD-by-type.yml b/yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml similarity index 86% rename from yaml/example-079-Indexing-data-in-JSON-LD-by-type.yml rename to yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml index 92407a00..ee84728b 100644 --- a/yaml/example-079-Indexing-data-in-JSON-LD-by-type.yml +++ b/yaml/example-075-Indexing-data-in-JSON-LD-by-type-original.yml @@ -1,4 +1,4 @@ -Example 079: Indexing data in JSON-LD by type +Example 075: Indexing data in JSON-LD by type-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..ae993069 --- /dev/null +++ b/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-expanded.yml @@ -0,0 +1,15 @@ +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-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.yml b/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml similarity index 82% rename from yaml/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.yml rename to yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml index 322cc05e..f7778743 100644 --- a/yaml/example-080-Indexing-data-in-JSON-LD-by-type-with-set-representation.yml +++ b/yaml/example-076-Indexing-data-in-JSON-LD-by-type-with-set-representation-original.yml @@ -1,4 +1,4 @@ -Example 080: Indexing data in JSON-LD by type with @set representation +Example 076: Indexing data in JSON-LD by type with @set representation-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..cb43f0cc --- /dev/null +++ b/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-expanded.yml @@ -0,0 +1,18 @@ +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-081-Indexing-data-in-JSON-LD-by-type-using-none.yml b/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml similarity index 86% rename from yaml/example-081-Indexing-data-in-JSON-LD-by-type-using-none.yml rename to yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml index 4bda64fd..d34f5f43 100644 --- a/yaml/example-081-Indexing-data-in-JSON-LD-by-type-using-none.yml +++ b/yaml/example-077-Indexing-data-in-JSON-LD-by-type-using-none-original.yml @@ -1,4 +1,4 @@ -Example 081: Indexing data in JSON-LD by type using @none +Example 077: Indexing data in JSON-LD by type using @none-original --- "@context": "@version": 1.1 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 new file mode 100644 index 00000000..1b794de2 --- /dev/null +++ b/yaml/example-078-A-document-with-children-linking-to-their-parent-expanded.yml @@ -0,0 +1,15 @@ +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-082-A-document-with-children-linking-to-their-parent.yml b/yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml similarity index 79% rename from yaml/example-082-A-document-with-children-linking-to-their-parent.yml rename to yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml index 4525adfd..61a14cb1 100644 --- a/yaml/example-082-A-document-with-children-linking-to-their-parent.yml +++ b/yaml/example-078-A-document-with-children-linking-to-their-parent-original.yml @@ -1,4 +1,4 @@ -Example 082: A document with children linking to their parent +Example 078: A document with children linking to their parent-original --- - "@id": "#homer" http://example.com/vocab#name: 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 new file mode 100644 index 00000000..49a33cf5 --- /dev/null +++ b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-expanded.yml @@ -0,0 +1,13 @@ +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 new file mode 100644 index 00000000..46940430 --- /dev/null +++ b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-flattened.yml @@ -0,0 +1,15 @@ +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-083-A-person-and-its-children-using-a-reverse-property.yml b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml similarity index 75% rename from yaml/example-083-A-person-and-its-children-using-a-reverse-property.yml rename to yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml index d039fefb..a1e53868 100644 --- a/yaml/example-083-A-person-and-its-children-using-a-reverse-property.yml +++ b/yaml/example-079-A-person-and-its-children-using-a-reverse-property-original.yml @@ -1,4 +1,4 @@ -Example 083: A person and its children using a reverse property +Example 079: A person and its children using a reverse property-original --- "@id": "#homer" http://example.com/vocab#name: Homer 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 new file mode 100644 index 00000000..b448cdfa --- /dev/null +++ b/yaml/example-080-Using-reverse-to-define-reverse-properties-expanded.yml @@ -0,0 +1,13 @@ +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 new file mode 100644 index 00000000..8d66ec85 --- /dev/null +++ b/yaml/example-080-Using-reverse-to-define-reverse-properties-flattened.yml @@ -0,0 +1,15 @@ +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-084-Using-reverse-to-define-reverse-properties.yml b/yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml similarity index 76% rename from yaml/example-084-Using-reverse-to-define-reverse-properties.yml rename to yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml index 49d30a3d..68e0a26a 100644 --- a/yaml/example-084-Using-reverse-to-define-reverse-properties.yml +++ b/yaml/example-080-Using-reverse-to-define-reverse-properties-original.yml @@ -1,4 +1,4 @@ -Example 084: Using @reverse to define reverse properties +Example 080: Using @reverse to define reverse properties-original --- "@context": name: http://example.com/vocab#name 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 new file mode 100644 index 00000000..bb2aee8b --- /dev/null +++ b/yaml/example-081-Identifying-and-making-statements-about-a-graph-expanded.yml @@ -0,0 +1,21 @@ +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-085-Identifying-and-making-statements-about-a-graph.yml b/yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml similarity index 79% rename from yaml/example-085-Identifying-and-making-statements-about-a-graph.yml rename to yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml index a94b688a..f5048d69 100644 --- a/yaml/example-085-Identifying-and-making-statements-about-a-graph.yml +++ b/yaml/example-081-Identifying-and-making-statements-about-a-graph-original.yml @@ -1,4 +1,4 @@ -Example 085: Identifying and making statements about a graph +Example 081: Identifying and making statements about a graph-original --- "@context": generatedAt: @@ -6,7 +6,9 @@ Example 085: Identifying and making statements about a graph "@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 + knows: + "@id": http://xmlns.com/foaf/0.1/knows + "@type": "@id" "@id": http://example.org/foaf-graph generatedAt: '2012-04-09' "@graph": 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 new file mode 100644 index 00000000..e2eb6040 --- /dev/null +++ b/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-expanded.yml @@ -0,0 +1,16 @@ +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-086-Using-graph-to-explicitly-express-the-default-graph.yml b/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml similarity index 55% rename from yaml/example-086-Using-graph-to-explicitly-express-the-default-graph.yml rename to yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml index 121815e1..35bc22fe 100644 --- a/yaml/example-086-Using-graph-to-explicitly-express-the-default-graph.yml +++ b/yaml/example-082-Using-graph-to-explicitly-express-the-default-graph-original.yml @@ -1,12 +1,15 @@ -Example 086: Using @graph to explicitly express the default graph +Example 082: Using @graph to explicitly express the default graph-original --- -"@context": {} +"@context": + "@vocab": http://schema.org/ + knows: + "@type": "@id" "@graph": - "@id": http://manu.sporny.org/about#manu - "@type": foaf:Person + "@type": Person name: Manu Sporny knows: http://greggkellogg.net/foaf#me - "@id": http://greggkellogg.net/foaf#me - "@type": foaf:Person + "@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 new file mode 100644 index 00000000..da47cadf --- /dev/null +++ b/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-expanded.yml @@ -0,0 +1,16 @@ +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 new file mode 100644 index 00000000..14a265da --- /dev/null +++ b/yaml/example-083-Context-needs-to-be-duplicated-if-graph-is-not-used-original.yml @@ -0,0 +1,18 @@ +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-089-Implicitly-named-graph-after-expansion.yml b/yaml/example-084-Implicitly-named-graph-expanded.yml similarity index 69% rename from yaml/example-089-Implicitly-named-graph-after-expansion.yml rename to yaml/example-084-Implicitly-named-graph-expanded.yml index 5a70e975..138f8752 100644 --- a/yaml/example-089-Implicitly-named-graph-after-expansion.yml +++ b/yaml/example-084-Implicitly-named-graph-expanded.yml @@ -1,22 +1,23 @@ -Example 089: Implicitly named graph after expansion +Example 084: Implicitly named graph-expanded --- -- http://www.w3.org/ns/prov#generatedAtTime: +- "@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 - "@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 + 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/knows: - - "@value": http://manu.sporny.org/about#manu 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-Implicitly-named-graph.yml b/yaml/example-084-Implicitly-named-graph-original.yml similarity index 84% rename from yaml/example-088-Implicitly-named-graph.yml rename to yaml/example-084-Implicitly-named-graph-original.yml index 5200c349..97b0b114 100644 --- a/yaml/example-088-Implicitly-named-graph.yml +++ b/yaml/example-084-Implicitly-named-graph-original.yml @@ -1,4 +1,4 @@ -Example 088: Implicitly named graph +Example 084: Implicitly named graph-original --- "@context": "@version": 1.1 @@ -7,7 +7,9 @@ Example 088: Implicitly named graph "@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 + knows: + "@id": http://xmlns.com/foaf/0.1/knows + "@type": "@id" claim: "@id": https://w3id.org/credentials#claim "@container": "@graph" diff --git a/yaml/example-091-Indexed-graph-data-after-expansion.yml b/yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml similarity index 92% rename from yaml/example-091-Indexed-graph-data-after-expansion.yml rename to yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml index 21386016..8e36ec20 100644 --- a/yaml/example-091-Indexed-graph-data-after-expansion.yml +++ b/yaml/example-085-Indexing-graph-data-in-JSON-LD-expanded.yml @@ -1,9 +1,18 @@ -Example 091: Indexed graph data after expansion +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: @@ -12,12 +21,3 @@ Example 091: Indexed graph data after expansion 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 diff --git a/yaml/example-090-Indexing-graph-data-in-JSON-LD.yml b/yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml similarity index 91% rename from yaml/example-090-Indexing-graph-data-in-JSON-LD.yml rename to yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml index 7b6f49d7..ad1e6072 100644 --- a/yaml/example-090-Indexing-graph-data-in-JSON-LD.yml +++ b/yaml/example-085-Indexing-graph-data-in-JSON-LD-original.yml @@ -1,4 +1,4 @@ -Example 090: Indexing graph data in JSON-LD +Example 085: Indexing graph data in JSON-LD-original --- "@context": "@version": 1.1 diff --git a/yaml/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.yml b/yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml similarity index 90% rename from yaml/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.yml rename to yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml index 53add096..61bb2b95 100644 --- a/yaml/example-093-Indexed-languaged-tagged-strings-with-none-after-expansion.yml +++ b/yaml/example-086-Indexing-graphs-using-none-for-no-index-expanded.yml @@ -1,16 +1,11 @@ -Example 093: Indexed languaged-tagged strings with @none after expansion +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/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: @@ -18,5 +13,10 @@ Example 093: Indexed languaged-tagged strings with @none after expansion http://schema.org/wordCount: - "@value": 1539 "@index": en - http://schema.org/name: - - "@value": World Financial News + - "@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-092-Indexing-graphs-using-none-for-no-index.yml b/yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml similarity index 90% rename from yaml/example-092-Indexing-graphs-using-none-for-no-index.yml rename to yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml index be4817a7..43394bbd 100644 --- a/yaml/example-092-Indexing-graphs-using-none-for-no-index.yml +++ b/yaml/example-086-Indexing-graphs-using-none-for-no-index-original.yml @@ -1,4 +1,4 @@ -Example 092: Indexing graphs using @none for no index +Example 086: Indexing graphs using @none for no index-original --- "@context": "@version": 1.1 diff --git a/yaml/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.yml b/yaml/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.yml deleted file mode 100644 index ecc0df6d..00000000 --- a/yaml/example-087-Context-needs-to-be-duplicated-if-graph-is-not-used.yml +++ /dev/null @@ -1,12 +0,0 @@ -Example 087: 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 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 new file mode 100644 index 00000000..89b5db33 --- /dev/null +++ b/yaml/example-087-Referencing-named-graphs-using-an-id-map-expanded.yml @@ -0,0 +1,25 @@ +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-094-Referencing-named-graphs-using-an-id-map.yml b/yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml similarity index 84% rename from yaml/example-094-Referencing-named-graphs-using-an-id-map.yml rename to yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml index f962f07d..ffafefad 100644 --- a/yaml/example-094-Referencing-named-graphs-using-an-id-map.yml +++ b/yaml/example-087-Referencing-named-graphs-using-an-id-map-original.yml @@ -1,4 +1,4 @@ -Example 094: Referencing named graphs using an id map +Example 087: Referencing named graphs using an id map-original --- "@context": "@version": 1.1 @@ -7,7 +7,9 @@ Example 094: Referencing named graphs using an id map "@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 + knows: + "@id": http://xmlns.com/foaf/0.1/knows + "@type": "@id" graphMap: "@id": http://example.org/graphMap "@container": diff --git a/yaml/example-095-Referencing-named-graphs-after-expansion.yml b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml similarity index 69% rename from yaml/example-095-Referencing-named-graphs-after-expansion.yml rename to yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml index e5af8a5f..0c9bf3bb 100644 --- a/yaml/example-095-Referencing-named-graphs-after-expansion.yml +++ b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-expanded.yml @@ -1,25 +1,23 @@ -Example 095: Referencing named graphs after expansion +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: - - "@id": http://greggkellogg.net/foaf#me - "@graph": - - "@id": http://greggkellogg.net/foaf#me + - "@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://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 + - "@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/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 + - "@value": Gregg Kellogg + http://xmlns.com/foaf/0.1/knows: + - "@id": http://manu.sporny.org/about#manu diff --git a/yaml/example-096-Referencing-named-graphs-using-an-id-map-with-none.yml b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml similarity index 82% rename from yaml/example-096-Referencing-named-graphs-using-an-id-map-with-none.yml rename to yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml index bd9a6e73..8a1c8a21 100644 --- a/yaml/example-096-Referencing-named-graphs-using-an-id-map-with-none.yml +++ b/yaml/example-088-Referencing-named-graphs-using-an-id-map-with-none-original.yml @@ -1,4 +1,4 @@ -Example 096: Referencing named graphs using an id map with @none +Example 088: Referencing named graphs using an id map with @none-original --- "@context": "@version": 1.1 @@ -7,7 +7,9 @@ Example 096: Referencing named graphs using an id map with @none "@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 + knows: + "@id": http://xmlns.com/foaf/0.1/knows + "@type": "@id" graphMap: "@id": http://example.org/graphMap "@container": diff --git a/yaml/example-097-Sample-JSON-LD-document-to-be-expanded.yml b/yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml similarity index 77% rename from yaml/example-097-Sample-JSON-LD-document-to-be-expanded.yml rename to yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml index d9200f45..cb8ed937 100644 --- a/yaml/example-097-Sample-JSON-LD-document-to-be-expanded.yml +++ b/yaml/example-089-Sample-JSON-LD-document-to-be-expanded.yml @@ -1,4 +1,4 @@ -Example 097: Sample JSON-LD document to be expanded +Example 089: Sample JSON-LD document to be expanded --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/example-098-Expanded-form-for-the-previous-example.yml b/yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml similarity index 69% rename from yaml/example-098-Expanded-form-for-the-previous-example.yml rename to yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml index bf08c352..f1678c74 100644 --- a/yaml/example-098-Expanded-form-for-the-previous-example.yml +++ b/yaml/example-090-Expanded-form-for-the-previous-example-expanded.yml @@ -1,4 +1,4 @@ -Example 098: Expanded form for the previous example +Example 090: Expanded form for the previous example-expanded --- - http://xmlns.com/foaf/0.1/name: - "@value": Manu Sporny diff --git a/yaml/example-099-Sample-expanded-JSON-LD-document.yml b/yaml/example-091-Sample-expanded-JSON-LD-document.yml similarity index 73% rename from yaml/example-099-Sample-expanded-JSON-LD-document.yml rename to yaml/example-091-Sample-expanded-JSON-LD-document.yml index d1e32131..27002c43 100644 --- a/yaml/example-099-Sample-expanded-JSON-LD-document.yml +++ b/yaml/example-091-Sample-expanded-JSON-LD-document.yml @@ -1,4 +1,4 @@ -Example 099: Sample expanded JSON-LD document +Example 091: Sample expanded JSON-LD document --- - http://xmlns.com/foaf/0.1/name: - Manu Sporny diff --git a/yaml/example-100-Sample-context.yml b/yaml/example-092-Sample-context.yml similarity index 82% rename from yaml/example-100-Sample-context.yml rename to yaml/example-092-Sample-context.yml index d8a8e47d..1bbab58b 100644 --- a/yaml/example-100-Sample-context.yml +++ b/yaml/example-092-Sample-context.yml @@ -1,4 +1,4 @@ -Example 100: Sample context +Example 092: Sample context --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/example-101-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 similarity index 76% rename from yaml/example-101-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.yml rename to yaml/example-093-Compact-form-of-the-sample-document-once-sample-context-has-been-applied.yml index e3386829..ea277441 100644 --- a/yaml/example-101-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 @@ -1,4 +1,4 @@ -Example 101: Compact form of the sample document once sample context has been applied +Example 093: Compact form of the sample document once sample context has been applied --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/example-102-Sample-JSON-LD-document-to-be-flattened.yml b/yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml similarity index 82% rename from yaml/example-102-Sample-JSON-LD-document-to-be-flattened.yml rename to yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml index dcfc1875..07d71286 100644 --- a/yaml/example-102-Sample-JSON-LD-document-to-be-flattened.yml +++ b/yaml/example-094-Sample-JSON-LD-document-to-be-flattened.yml @@ -1,4 +1,4 @@ -Example 102: Sample JSON-LD document to be flattened +Example 094: Sample JSON-LD document to be flattened --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/example-103-Flattened-and-compacted-form-for-the-previous-example.yml b/yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml similarity index 84% rename from yaml/example-103-Flattened-and-compacted-form-for-the-previous-example.yml rename to yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml index 473ee80c..9d58709c 100644 --- a/yaml/example-103-Flattened-and-compacted-form-for-the-previous-example.yml +++ b/yaml/example-095-Flattened-and-compacted-form-for-the-previous-example.yml @@ -1,15 +1,15 @@ -Example 103: Flattened and compacted form for the previous example +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": _: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 +- "@id": http://manu.sporny.org/about#manu + name: Manu Sporny +- "@id": _:b0 + name: Dave Longley diff --git a/yaml/example-104-Sample-library-frame.yml b/yaml/example-096-Sample-library-frame.yml similarity index 70% rename from yaml/example-104-Sample-library-frame.yml rename to yaml/example-096-Sample-library-frame.yml index aaf3e060..cd898d1f 100644 --- a/yaml/example-104-Sample-library-frame.yml +++ b/yaml/example-096-Sample-library-frame.yml @@ -1,6 +1,7 @@ -Example 104: Sample library frame +Example 096: Sample library frame --- "@context": + "@version": 1.1 "@vocab": http://example.org/ "@type": Library contains: diff --git a/yaml/example-105-Flattened-library-objects.yml b/yaml/example-097-Flattened-library-objects.yml similarity index 93% rename from yaml/example-105-Flattened-library-objects.yml rename to yaml/example-097-Flattened-library-objects.yml index d44dd5aa..9be32efe 100644 --- a/yaml/example-105-Flattened-library-objects.yml +++ b/yaml/example-097-Flattened-library-objects.yml @@ -1,4 +1,4 @@ -Example 105: Flattened library objects +Example 097: Flattened library objects --- "@context": "@vocab": http://example.org/ diff --git a/yaml/example-106-Framed-library-objects.yml b/yaml/example-098-Framed-library-objects.yml similarity index 88% rename from yaml/example-106-Framed-library-objects.yml rename to yaml/example-098-Framed-library-objects.yml index 77880e19..73bffa9d 100644 --- a/yaml/example-106-Framed-library-objects.yml +++ b/yaml/example-098-Framed-library-objects.yml @@ -1,6 +1,7 @@ -Example 106: Framed library objects +Example 098: Framed library objects --- "@context": + "@version": 1.1 "@vocab": http://example.org/ "@id": http://example.org/library "@type": Library diff --git a/yaml/example-110-Sample-JSON-LD-document.yml b/yaml/example-102-Sample-JSON-LD-document.yml similarity index 87% rename from yaml/example-110-Sample-JSON-LD-document.yml rename to yaml/example-102-Sample-JSON-LD-document.yml index 6d249d34..65a47e97 100644 --- a/yaml/example-110-Sample-JSON-LD-document.yml +++ b/yaml/example-102-Sample-JSON-LD-document.yml @@ -1,4 +1,4 @@ -Example 110: Sample JSON-LD document +Example 102: Sample JSON-LD document --- "@context": name: http://xmlns.com/foaf/0.1/name diff --git a/yaml/example-111-Flattened-and-expanded-form-for-the-previous-example.yml b/yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml similarity index 84% rename from yaml/example-111-Flattened-and-expanded-form-for-the-previous-example.yml rename to yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml index a7516419..0ebaa967 100644 --- a/yaml/example-111-Flattened-and-expanded-form-for-the-previous-example.yml +++ b/yaml/example-103-Flattened-and-expanded-form-for-the-previous-example.yml @@ -1,4 +1,4 @@ -Example 111: Flattened and expanded form for the previous example +Example 103: Flattened and expanded form for the previous example --- - "@id": _:b0 http://xmlns.com/foaf/0.1/name: Dave Longley diff --git a/yaml/example-114-The-same-set-of-statements-serialized-in-JSON-LD.yml b/yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml similarity index 74% rename from yaml/example-114-The-same-set-of-statements-serialized-in-JSON-LD.yml rename to yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml index a1958850..f9ada0e8 100644 --- a/yaml/example-114-The-same-set-of-statements-serialized-in-JSON-LD.yml +++ b/yaml/example-106-The-same-set-of-statements-serialized-in-JSON-LD.yml @@ -1,4 +1,4 @@ -Example 114: The same set of statements serialized in JSON-LD +Example 106: The same set of statements serialized in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/example-116-Same-embedding-example-in-JSON-LD.yml b/yaml/example-108-Same-embedding-example-in-JSON-LD.yml similarity index 80% rename from yaml/example-116-Same-embedding-example-in-JSON-LD.yml rename to yaml/example-108-Same-embedding-example-in-JSON-LD.yml index 076923b7..aa0b4159 100644 --- a/yaml/example-116-Same-embedding-example-in-JSON-LD.yml +++ b/yaml/example-108-Same-embedding-example-in-JSON-LD.yml @@ -1,4 +1,4 @@ -Example 116: Same embedding example in JSON-LD +Example 108: Same embedding example in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/example-117-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 similarity index 68% rename from yaml/example-117-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yml rename to yaml/example-109-JSON-LD-using-native-data-types-for-numbers-and-boolean-values.yml index 4d959a92..2f492a6a 100644 --- a/yaml/example-117-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 @@ -1,4 +1,4 @@ -Example 117: JSON-LD using native data types for numbers and boolean values +Example 109: JSON-LD using native data types for numbers and boolean values --- "@context": ex: http://example.com/vocab# diff --git a/yaml/example-120-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 similarity index 75% rename from yaml/example-120-Same-example-with-a-list-of-values-in-JSON-LD.yml rename to yaml/example-112-Same-example-with-a-list-of-values-in-JSON-LD.yml index 4ff05e93..cd78c3ef 100644 --- a/yaml/example-120-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 @@ -1,4 +1,4 @@ -Example 120: Same example with a list of values in JSON-LD +Example 112: Same example with a list of values in JSON-LD --- "@context": foaf: http://xmlns.com/foaf/0.1/ diff --git a/yaml/example-122-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 similarity index 76% rename from yaml/example-122-Same-description-in-JSON-LD-context-shared-among-node-objects-.yml rename to yaml/example-114-Same-description-in-JSON-LD-context-shared-among-node-objects-.yml index 944d5d61..68aa3eef 100644 --- a/yaml/example-122-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 @@ -1,7 +1,9 @@ -Example 122: Same description in JSON-LD (context shared among node objects) +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/ diff --git a/yaml/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.yml b/yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml similarity index 51% rename from yaml/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.yml rename to yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml index 66cb7613..ad536e5d 100644 --- a/yaml/example-126-Same-book-description-in-JSON-LD-avoiding-contexts-.yml +++ b/yaml/example-116-Same-book-description-in-JSON-LD-avoiding-contexts-.yml @@ -1,15 +1,17 @@ -Example 126: Same book description in JSON-LD (avoiding contexts) +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: Whil Wheaton + http://purl.org/dc/terms/creator: Wil 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 + - "@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: http://purl.oreilly.com/product-types/BOOK + 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: http://purl.oreilly.com/product-types/EBOOK + http://purl.org/dc/terms/type: + "@id": http://purl.oreilly.com/product-types/EBOOK diff --git a/yaml/example-124-Same-hCard-representation-in-JSON-LD.yml b/yaml/example-124-Same-hCard-representation-in-JSON-LD.yml deleted file mode 100644 index 27046206..00000000 --- a/yaml/example-124-Same-hCard-representation-in-JSON-LD.yml +++ /dev/null @@ -1,11 +0,0 @@ -Example 124: Same hCard representation in JSON-LD ---- -"@context": - vcard: http://microformats.org/profile/hcard#vcard - url: - "@id": http://microformats.org/profile/hcard#url - "@type": "@id" - fn: http://microformats.org/profile/hcard#fn -"@type": vcard -url: http://tantek.com/ -fn: Tantek Çelik