Skip to content

Commit a77ff5d

Browse files
committed
DCT is not the prefix, DC is
1 parent 4378b09 commit a77ff5d

10 files changed

+13
-13
lines changed

lib/Plack/App/RDF/LinkedData.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ sub prepare_app {
320320
);
321321
$self->{linkeddata}->namespaces(URI::NamespaceMap->new($config->{namespaces})) if ($config->{namespaces});
322322
# Ensure that certain namespaces are always declared
323-
$self->{linkeddata}->guess_namespaces('rdf', 'dct', 'xsd', 'void');
323+
$self->{linkeddata}->guess_namespaces('rdf', 'dc', 'xsd', 'void');
324324
$self->{linkeddata}->add_namespace_mapping(hydra => 'http://www.w3.org/ns/hydra/core#');
325325
}
326326

rdf_linkeddata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111

1212
"namespaces" : { "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
13-
"dct" : "http://purl.org/dc/terms/" },
13+
"dc" : "http://purl.org/dc/terms/" },
1414
"cors" : {
1515
"origins" : "*"
1616
}

rdf_linkeddata_acl.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
"namespaces" : { "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
14-
"dct" : "http://purl.org/dc/terms/" },
14+
"dc" : "http://purl.org/dc/terms/" },
1515
"acl" : {
1616
"store" : {
1717
"storetype" : "Memory",

rdf_linkeddata_dev.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111

1212
"namespaces" : { "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
13-
"dct" : "http://purl.org/dc/terms/" },
13+
"dc" : "http://purl.org/dc/terms/" },
1414
"cors" : {
1515
"origins" : "*"
1616
},

rdf_linkeddata_end.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
},
1616

1717
"namespaces" : { "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
18-
"dct" : "http://purl.org/dc/terms/" }
18+
"dc" : "http://purl.org/dc/terms/" }
1919
}

rdf_linkeddata_void.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121

2222
"namespaces" : { "rdfs" : "http://www.w3.org/2000/01/rdf-schema#",
23-
"dct" : "http://purl.org/dc/terms/" },
23+
"dc" : "http://purl.org/dc/terms/" },
2424
"void": {
2525
"pagetitle": "VoID Description for my dataset",
2626
"titles": [ [ "This is a title", "en" ], [ "Dette er en tittel", "no" ]],

t/10-basic.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ is($preds->title($node), 'This is a test', "Correct title");
5252
{
5353
my $req = Plack::Request->new({ HTTP_ACCEPT => 'application/rdf+xml' });
5454
my $ldh = $ld;
55-
$ldh->namespaces(URI::NamespaceMap->new({ skos => 'http://www.w3.org/2004/02/skos/core#', dct => 'http://purl.org/dc/terms/' } ));
55+
$ldh->namespaces(URI::NamespaceMap->new({ skos => 'http://www.w3.org/2004/02/skos/core#', dc => 'http://purl.org/dc/terms/' } ));
5656
$ldh->request($req);
5757
my $content = $ldh->_content($node, 'data');
5858
like($content->{body}, qr|xmlns:skos="http://www.w3.org/2004/02/skos/core#"|, 'SKOS NS URI');

t/17-hypermedia-ro.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ ok($model, "We have a model");
104104
note "Get /foo/data, namespaces set";
105105
$ld->type('data');
106106
$ld->add_namespace_mapping(skos => 'http://www.w3.org/2004/02/skos/core#');
107-
$ld->add_namespace_mapping(dct => 'http://purl.org/dc/terms/' );
107+
$ld->add_namespace_mapping(dc => 'http://purl.org/dc/terms/' );
108108
my $response = $ld->response($base_uri . '/foo');
109109
isa_ok($response, 'Plack::Response');
110110
is($response->status, 200, "Returns 200");

t/18-fragments.t

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ my $file = $Bin . '/data/fragments.ttl';
2323
use_ok('RDF::LinkedData');
2424
use_ok('RDF::Generator::Void');
2525

26-
my $ns = URI::NamespaceMap->new(['rdf', 'rdfs', 'foaf', 'void', 'dct', 'xsd']);
26+
my $ns = URI::NamespaceMap->new(['rdf', 'rdfs', 'foaf', 'void', 'dc', 'xsd']);
2727
$ns->add_mapping('hydra' => 'http://www.w3.org/ns/hydra/core#');
2828

2929
my $parser = RDF::Trine::Parser->new( 'turtle' );
@@ -81,9 +81,9 @@ my $void_subject = iri($base_uri . '/#dataset-0');
8181
);
8282

8383
pattern_ok( statement(iri($base_uri . '/fragments?subject=' . uri_escape_utf8('http://localhost/foo')),
84-
iri($ns->dct->source),
84+
iri($ns->dc->source),
8585
$void_subject),
86-
, 'Void Subject in dct:source'
86+
, 'Void Subject in dc:source'
8787
);
8888

8989
has_subject($void_subject->uri_value, $retmodel, "Void Subject URI in content");

t/data/add.ttl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@base <http://localhost/> .
22
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
3-
@prefix dct: <http://purl.org/dc/terms/> .
3+
@prefix dc: <http://purl.org/dc/terms/> .
44
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
55

66
</#dataset-0> rdfs:label "This is a test too"@en ;
7-
dct:modified "2012-06-30"^^xsd:date .
7+
dc:modified "2012-06-30"^^xsd:date .

0 commit comments

Comments
 (0)