Repository navigation
Expand file tree
/
Copy pathEXAMPLE.dot
More file actions
72 lines (57 loc) · 4.56 KB
/
Copy pathEXAMPLE.dot
File metadata and controls
72 lines (57 loc) · 4.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// This graph shows an example RDF graph of a subset of an indexed file system.
// This example doesn't use a real vocabulary or ontology;
// it's meant to show the overall structure and kinds of relationships we want to express.
//
// Green edges depict properties that the software will determine automatically.
// Blue edges depict properties that the user has entered explicitly.
// Red edges depict properties that the user imported from an external data source.
// Note that this is a fictional example and that other scenarios are possible.
// Especially the distinction between blue and red is arbitrary.
//
// Dotted edges refer to data in external datasets, such as MusicBrainz.
//
// It looks best laid out with 'neato'.
digraph {
overlap = scale;
":File" -> "rdfs:Class" [label="rdfs:type", color="green"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> ":File" [label="rdfs:type", color="green"];
// Ideally we'd use file:// instead of literals.
// But to make the IRIs unique we need to include hostnames,
// and we haven't even decided yet how we'll handle remote file systems.
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "\"/home/dominikh/video.mkv\"^^xsd:string" [label=":filename", color="green"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "\"/home/dominikh/copy.mkv\"^^xsd:string" [label=":filename", color="green"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "\"13899214\"^^xsd:integer" [label=":inode", color="green"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "sha256:6dd0df9c973df5d617de37916b11f50620ffabaf7ac2733672e8febd4f450c34" [label=":checksum", color="green"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "\"15083601\"^^xsd:integer" [label=":size", color="green"];
// Here we would encode a lot more metadata. Mimetype, file permissions, whatever metadata is present in the file container, …
"uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" -> "foaf:Person" [label="rdfs:type", color="red"];
"uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" -> "mailto:dominik@honnef.co" [label="foaf:inbox", color="red"];
"uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" -> "\"Dominik Honnef\"^^xsd:string" [label="foaf:name", color="red"];
"uuid:461c9a0a-61fe-4f03-aec8-5940f154ab2b" -> "foaf:Person" [label="rdfs:type", color="red"];
"uuid:461c9a0a-61fe-4f03-aec8-5940f154ab2b" -> "\"John Doe\"^^xsd:string" [label="foaf:name", color="red"];
"uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" -> "uuid:461c9a0a-61fe-4f03-aec8-5940f154ab2b" [label="knows", color="red"];
"uuid:461c9a0a-61fe-4f03-aec8-5940f154ab2b" -> "uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" [label="knows", color="red"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "uuid:4a97b449-4a9d-476e-ab21-095241f8d80b" [label=":depicts", color="blue"];
"uuid:aa8cd828-1431-4e52-992c-a235ccfc7efc" -> "uuid:461c9a0a-61fe-4f03-aec8-5940f154ab2b" [label=":createdBy", color="blue"];
"uuid:26227b88-7695-4619-8cc3-48b3a1548eca" -> ":File" [label="rdfs:type", color="green"];
"uuid:26227b88-7695-4619-8cc3-48b3a1548eca" -> "\"/music/Rammstein\ -\ Herzeleid\ \(1998\)\ \[FLAC\]\ \{529\ 160-2\}/05\ -\ Seemann.flac\"^^xsd:string" [label=":filename", color="green"];
"uuid:26227b88-7695-4619-8cc3-48b3a1548eca" -> "mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" [label=":isMusicbrainzTrack"];
{
// A fairly sparse subset of the kind of data we can link to via MusicBrainz
edge [style=dashed];
node [style=dashed];
"mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" -> "mb:Track" [label="rdfs:type"];
"mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" -> "mbid:1432b3ba-f294-437c-85dc-74c6bda5d575" [label="mb:isRecording"];
"mbid:1432b3ba-f294-437c-85dc-74c6bda5d575" -> "mb:Recording" [label="rdfs:type"];
"mbid:1432b3ba-f294-437c-85dc-74c6bda5d575" -> "mbid:61fe2ef2-2ca0-3054-99b4-67d46e66cbbf" [label="mb:isWork"];
"mbid:61fe2ef2-2ca0-3054-99b4-67d46e66cbbf" -> "mb:Work" [label="rdfs:type"];
"mbid:b2349c8c-4986-4d4e-b2a0-285825f686c3" -> "mb:Release" [label="rdfs:type"];
"mbid:b2349c8c-4986-4d4e-b2a0-285825f686c3" -> "\"Herzleid\"^^xsd:string" [label="mb:name"];
"mbid:b2349c8c-4986-4d4e-b2a0-285825f686c3" -> "mbid:b2d122f9-eadb-4930-a196-8f221eeb0c66" [label="mb:artist"];
"mbid:b2349c8c-4986-4d4e-b2a0-285825f686c3" -> "mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" [label="mb:hasTrack"];
"mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" -> "\"Seemann\"^^xsd:string" [label="mb:name"];
"mbid:b31e0659-a195-3573-8bc5-f8f49f3f9beb" -> "5" [label="mb:trackNumber"];
"mbid:b2d122f9-eadb-4930-a196-8f221eeb0c66" -> "mb:Artist" [label="rdfs:type"];
"mbid:b2d122f9-eadb-4930-a196-8f221eeb0c66" -> "\"Rammstein\"^^xsd:string" [label="mb:name"];
}
}