This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix ex: <http://example.com/> . | |
# valid JSON literals | |
ex:bob ex:has '{"name": robert"}'^^rdf:JSON . | |
ex:bob ex:has '{"name": ["robert", "bob"]}'^^rdf:JSON . | |
# invalid JSON literals | |
ex:bob ex:has '{"name": "robert"}'^^rdf:JSON . | |
ex:bob ex:has '{"name": ["robert", "bob",]}'^^rdf:JSON . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prefix : <http://example.com/> | |
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
prefix sh: <http://www.w3.org/ns/shacl#> | |
# insert some sample data | |
insert data { | |
#boxes | |
:red_box a :Box ; | |
:color "Red" . | |
:green_box a :Box ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix s: <http://schema.org/>. | |
@prefix prov: <http://www.w3.org/ns/prov#>. | |
# simple (unqualified) statement | |
:dr_strangelove a s:Movie ; | |
s:actor :peter_sellers. | |
# RDF-star with "ocurrence" nodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub split() | |
Dim fNameAndPath As Variant | |
Dim TextLine, fName | |
Dim fileCount, myCount, numberOfLines As Integer | |
Dim outputFile | |
myCount = 0 | |
fileCount = 1 | |
fNameAndPath = Application.GetOpenFilename(FileFilter:="Text files (*.txt), *.txt", Title:="Select File To Be Opened") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | |
@prefix sh: <http://www.w3.org/ns/shacl#>. | |
@prefix skos: <http://www.w3.org/2004/02/skos/core#>. | |
[] a sh:NodeShape ; | |
sh:targetClass skos:OrderedCollection ; | |
sh:rule [ | |
a sh:TripleRule ; | |
sh:subject sh:this ; | |
sh:predicate skos:member ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id | name | |
---|---|---|
1 | SPARQL | |
2 | SQL | |
3 | XQuery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": { | |
"gs1": "http://gs1.org/voc/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"gtin13": { | |
"@id": "gs1:gtin13", | |
"@type": "xsd:string" | |
}, | |
"ingredientpercentage": { | |
"@id": "gs1:ingredientpercentage", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base <http://example.com/id/> | |
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
prefix owl: <http://www.w3.org/2002/07/owl#> | |
prefix xsd: <http://www.w3.org/2001/XMLSchema#> | |
construct { | |
?uuid ?member ?num . | |
} | |
where { | |
# this mapping generates 1M unique statements for each record in an arbitrary input csv file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"content": [ | |
{ | |
"type": "BUYER", | |
"status": "RELEASED", | |
"duns": 214567885, | |
"vatno": "EU826010123", | |
"name": "ACME", | |
"name2": "Acme Corporation", | |
"website": "http://www.acme.com/", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@id": "urn:uuid:000d7e2c-0b61-44fb-b500-95963a78d302", | |
"amount": "462", | |
"amount:2": "0", | |
"@context": { | |
"amount2": { | |
"@id": "http://example.com/def/mfg/amount2", | |
"@type": "http://www.w3.org/2001/XMLSchema#integer" | |
}, | |
"amount": { |
NewerOlder