public void addMetadata ( final Model model ) { final Resource datasetId = model . createResource ( getDatasetURI ( ) ) ; final Resource fragmentId = model . createResource ( fragmentURL ) ; datasetId . addProperty ( CommonResources . RDF_TYPE , CommonResources . VOID_DATASET ) ; datasetId . addProperty ( CommonResources . RDF_TYPE , CommonResources . HYDRA_COLLECTION ) ; datasetId . addProperty ( CommonResources . VOID_SUBSET , fragmentId ) ; Literal itemsPerPage = model . createTypedLiteral ( this . getMaxPageSize ( ) ) ; datasetId . addProperty ( CommonResources . HYDRA_ITEMSPERPAGE , itemsPerPage ) ; fragmentId . addProperty ( CommonResources . RDF_TYPE , CommonResources . HYDRA_COLLECTION ) ; fragmentId . addProperty ( CommonResources . RDF_TYPE , CommonResources . HYDRA_PAGEDCOLLECTION ) ; }
Adds some basic metadata to the given RDF model . This method may be overridden in subclasses .