rdf4j.core
Collection of different generic multimethods
as-model
multimethod
(as-model data-src & {:keys [model-type]})Presents (and converts) a data source as instance of Model.
The final class of Model depends on model-type option: - :memory (LinkedHashModel) - :persistent (persistent MemoryStore) - :solid (NativeStore)
as-repository
multimethod
(as-repository data-src repository-type data-dir & opts)Presents (and converts) a data source as instance of SailRepository.
Parameters repository-type, data-dir and opts are directly passed to rdf4j.repository.sails/make-sail-repository.
get-all-namespaces
multimethod
(get-all-namespaces r)Return a sequence of all instances of Namespace in the repository or repository connection
get-statements
multimethod
(get-statements data-src s p o reified c)Returns a lazy sequence of statements following pattern: s p o & c. Boolean option reified is passed to the data source and specifies if the output contains deified RDF statements.
load-data
multimethod
(load-data repository data-source & {:keys [rdf-handler context-uri]})Loads content of data-source into repository. Currently supported types are: String (file path), Model, Path and File.
rdf-filter-object
multimethod
added in 0.2.2
(rdf-filter-object data-src s p)Extract object from triple [s p o c]