Skip to content

Commit 921a221

Browse files
committed
Merge pull request #28 from ActiveTriples/vocab
Use vocabularies from rdf-vocab
2 parents 44c6d38 + 9929bed commit 921a221

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/models/dataset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Dataset
22
include ActiveTriples::RDFSource
33
configure :type => [
44
RDF::URI("http://www.w3.org/ns/hydra/core#Collection"),
5-
RDF::VOID.Dataset
5+
RDF::Vocab::VOID.Dataset
66
]
77
apply_schema DatasetSchema
88
end

app/schemas/result_schema.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ class ResultSchema < ActiveTriples::Schema
22
property :subset, :predicate => RDF::VOID.subset
33

44
# Descriptive
5-
property :title, :predicate => RDF::DC.title
6-
property :description, :predicate => RDF::DC.description
7-
property :source, :predicate => RDF::DC.source
5+
property :title, :predicate => RDF::Vocab::DC.title
6+
property :description, :predicate => RDF::Vocab::DC.description
7+
property :source, :predicate => RDF::Vocab::DC.source
88

99
# Pagination
10-
property :triples_count, :predicate => RDF::VOID.triples
10+
property :triples_count, :predicate => RDF::Vocab::VOID.triples
1111
property :total_items, :predicate => RDF::URI("http://www.w3.org/ns/hydra/core#totalItems")
1212
property :items_per_page, :predicate => RDF::URI("http://www.w3.org/ns/hydra/core#itemsPerPage")
1313
property :first_page, :predicate => RDF::URI("http://www.w3.org/ns/hydra/core#firstPage")

0 commit comments

Comments
 (0)