Commits

Toby Inkster  committed 5337e06 Draft

use bnodes in void - not everything needs a URI

  • Participants
  • Parent commits 4f08928

Comments (0)

Files changed (1)

File examples/simple.pl

 @prefix lang: <http://ontologi.es/vido/languages#> .
 
 <#g1>
-	a void:Dataset, vido:NamedGraph;
+	a void:Dataset;
 	vido:graph_name <#g1>;
-	vido:source <#text1>.
-
-<#text1>
-	a void:Dataset;
-	dc:description "This is the target dataset we hope to produce."@en;
-	dc:format "text/turtle";
-	vido:lines_transformed_by <urn:x-foo:1>;
-	vido:source <#text2>.
-
-<#text2>
-	a void:Dataset;
-	dc:description "This is the source dataset."@en;
-	vido:content "foo\nbar\nbaz\n".
-
-<urn:x-foo:1>
-	vido:content "chomp; sprintf(qq(<%s> a <Resource>. ), $_)" ;
-	dc:description "This is a transformation applied to each line of a line-based format."@en.
+	vido:source [
+		dc:format "text/turtle";
+		vido:lines_transformed_by [
+			vido:content "chomp; sprintf(qq(<%s> a <Resource>. ), $_)" ;
+			dc:description "This is a transformation applied to each line of a line-based format."@en;
+		];
+		vido:source [
+			dc:description "This is the source dataset."@en;
+			vido:content "foo\nbar\nbaz\n";
+		];
+	].
 IN
 
 my $dataset = Vido::Dataset->new(