Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 931393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:29:36+00:00 2026-05-15T20:29:36+00:00

I am trying to load the Clojure library for RDF clj-plaza in Clojure REPL

  • 0

I am trying to load the Clojure library for RDF clj-plaza in Clojure REPL like so:

user=> (use 'plaza.rdf.core)
nil

I have a folder named plaza, and a subfolder named rdf and the file core.clj available and as far as I can tell, Clojure REPL loads the library as it should.

Now, if I do

user=> (alter-root-rdf-ns “http://www.example.org/”)
"http://www.example.org"

And again, as far as I can tell the core.clj library is reporting as it should.
Now I do

(def e (document-to-model “http://www.snee.com/rdf/elvisimp.rdf” :xml))
java.lang.IllegalArgumentException: No implementation of method: :load-stream of protocol: #’plaza.rdf.core/RDFModel found for class: nil (NO_SOURCE_FILE:2)

I get the same result if I try f.ex.

(make-triples [["http://triple1" "http://triple2" "http://triple3"]])

In the source code (core.clj) there is a method called load-stream in the protocol RDFModel

(defprotocol RDFModel
  "Operations for the manipulation of RDF"
  ....
  (load-stream [model stream format] "Load triples from a stream")
  ....

And load-stream is implemented

(defn document-to-model
  "Adds a set of triples read from a serialized document into a model"
  ([stream format]
    (load-stream *rdf-model* stream format)))

I can’t really seem to pinpoint what is wrong here, in the source code it all seems to add up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T20:29:37+00:00Added an answer on May 15, 2026 at 8:29 pm

    The (defn document-to-model ...) snippet does not implement load-stream; it implements a function called document-to-model which calls load-stream with a bunch of arguments, the first of which — *rdf-model* — needs to be of a type to which the RDFModel protocol has been extended (or which implements the protocol or the corresponding interface directly).

    clj-plaza provides two implementations of RDFModel, in the namespaces plaza.rdf.implementations.sesame (see (deftype SesameModel ..., line 218 in the source) and plaza.rdf.implementations.jena (see (deftype JenaModel ..., line 167). require-ing them should be enough to pull in said implementations; then you can use them with *rdf-model*s of appropriate type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand the syntax for calling use to load a library: (use
I'm trying to use PHP ActiveRecord in Codeigniter. I have a model like this:
I've been trying to create a user-defined exception in Clojure, and have been having
I have a problem with out of memory when I'm trying load a few
Trying to load data into a drop down list when a user selects one
I'm trying to use some Java-classes with Clojure. I've tried it with Scala with
I have been trying to setup Symfony2 on Windows so that I can use
I have the following from the slime repl (no clojure.contib functions found): M-X slime
I've been trying to develop a little library for reading MPQ files in Clojure,
I'm trying to load and/or compile a .clj file from within another .clj file.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.