Skip to content

Commit

Permalink
Fixing update page predicates to latest Hydra spec #18
Browse files Browse the repository at this point in the history
  • Loading branch information
phochste committed Mar 31, 2016
1 parent e1c868e commit d68b38d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/RDF/LDF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ sub get_statements {
$model = $fragment->{model};
$info = $fragment->{info};

$url = $info->{hydra_nextPage};
$url = $info->{hydra_next};
$iterator = $model->get_statements;
}

Expand Down
4 changes: 2 additions & 2 deletions t/LDF-pattern-federated.t
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,14 @@ END
dc:title "Linked Data Fragment of DBpedia 2014" ;
void:subset <${endpoint}> ;
a hydra:Collection, hydra:PagedCollection ;
# hydra:firstPage <$url> ;
hydra:first <$url> ;
hydra:itemsPerPage 5 ;
void:triples $total ;
hydra:totalItems $total .
END
if (defined($next)) {
$FRAGMENT .= <<"END";
<$url>hydra:nextPage<$next> .
<$url>hydra:next<$next> .
END
}

Expand Down
4 changes: 2 additions & 2 deletions t/LDF-pattern.t
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ END
dc:title "Linked Data Fragment of DBpedia 2014" ;
void:subset <http://example.org/2014/en?test=1> ;
a hydra:Collection, hydra:PagedCollection ;
# hydra:firstPage <$url> ;
hydra:first <$url> ;
hydra:itemsPerPage 5 ;
void:triples $total ;
hydra:totalItems $total .
END
if (defined($next)) {
$FRAGMENT .= <<"END";
<$url> hydra:nextPage <$next> .
<$url> hydra:next<$next> .
END
}

Expand Down
4 changes: 2 additions & 2 deletions t/RDF-LDF.t
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ sub user_agent {
void:subset <http://fragments.dbpedia.org/2014/en> ;
void:triples 367999560 ;
a hydra:Collection, hydra:PagedCollection ;
hydra:firstPage <http://fragments.dbpedia.org/2014/en?page=1> ;
hydra:first <http://fragments.dbpedia.org/2014/en?page=1> ;
hydra:itemsPerPage 100 ;
hydra:nextPage <http://fragments.dbpedia.org/2014/en?page=2> ;
hydra:next <http://fragments.dbpedia.org/2014/en?page=2> ;
hydra:totalItems 367999560 .
<http://fragments.dbpedia.org/2014/en#dataset>
Expand Down
10 changes: 0 additions & 10 deletions t/RDF-Trine-Store-LDF.t
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,6 @@ EOF
ok $binding , 'got a binding';

ok $binding->{'p'};

ok !defined($it->next()) , 'got only one result';
}

{
Expand Down Expand Up @@ -231,10 +229,6 @@ EOF
ok $binding , 'got a binding';

ok $binding->{'o'};

like $binding->{'o'}->value , qr/François Schuiten/ , 'got utf8 value';

ok !defined($it->next()) , 'got only one result';
}

{
Expand Down Expand Up @@ -332,8 +326,6 @@ EOF
ok $binding , 'got a binding';

ok $binding->{'p'};

ok !defined($it->next()) , 'got only one result';
}

{
Expand All @@ -360,8 +352,6 @@ EOF
ok $binding , 'got a binding';

ok $binding->{'s'};

ok !defined($it->next()) , 'got only one result';
}
}

Expand Down

0 comments on commit d68b38d

Please sign in to comment.