-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Beginner #292
Comments
Banana-rdf is published, just search for it at maven central |
Error:Error while importing SBT project: See complete log in /Users/maatary/Library/Logs/IntelliJIdea14/sbt.last.log |
I have this weird error with sbt |
You are not. The example with Sesame was given just to explain how banana-rdf works (BTW I updated it a bit https://github.com/banana-rdf/banana-rdf/wiki/Core-concepts ) |
@Maatary the documentaion is a bit outdated, we are at 0.8.x series now. Please, use libraryDependencies += "org.w3" %% "banana-jena" % "0.8.1" in case of jena |
@antonkulaga that should be on the front page of github README. Someone should propose a pull request for that. Also there should be a pointer to the maven repo, so that people can see what other things were available. |
@bblfish what do you think about cleaning README and leaving there only a link to wiki? Documentation in several places (readme and wiki) only leads to confusion (IMHO). |
@antonkulaga please help a bit further here and i will also try by the same occasion to explain what i meant. I want to perform some sparql query in my code. I pick Jena as the underlying engine. If i follow the test suite as it is recommended in the doc for now, I get something like this:
followed by
I think this is very complicate and does not help to quickly grasp how to proceed. It also differs a little from the online guide about Sparql Usage (which is easier to understand). In the end i don't know which one to use:
What i meant originally, is that, if you want to you banana-rdf, you can't just import something in a class, you have to creating that binding between an the generic abstraction and an implementation. Is there just a simpler form ? |
@Maatary could you, please, use //markdown for your scala code? when you quote code samples? |
Here is what i did and can't get it to work:
I get the following error:
|
I have been able to run the example in itself. The example situated in the misc folder for the sparqlengine usage, but from within the banana-rdf project. However, what i want is to be able to modularize my code such that to use it out of your example, but it is not crystal clear to me how should i achieve it. Beside when i copy paste the example from mist to my project i get the error above. In other, without event the slight modification that i introduce. Here is my dependency declaration in my build:
|
I'm using JDK 8, scala 2.11.x |
I solved my problem by forcing this:
However my original question about modularizing stuff still remain. I will try to follow the example and modularize as i can. The one from the test suites sounds just too complicate. (I'm talking about instantiating the rdf library not the code inside the examples.) |
In term of modularization what i want is to bring in scope a jena-banana-rdf. Then use it in my class. Your example hard code things in the class that construct the binder. I don't want to do that. Here is what i tried in my scala workshit:
However i get the following error:
I thought i had imported all the riqured implicit at that point. What am i Missing ? |
@Maatary actually extending your class from modules is not mandatory, it is possible to work in banana-rdf just by resolving operation (RDFOps, SparqlOps, etc.) classes from P.S. By the way, you can have scala syntax highlightning for your scala code: println("it syntax highlighting works!") println("it syntax highlighting works!") P.P.S. I also added you to banana-rdf gitter channel |
Thank you, i will write on the channel to see if anybody can help with what you say. Meanwhile, any idea what import i am missing here maybe ? |
I'd go for the minimal change to the README for the moment. |
is there a way to do a basic http authentication with the sparql engine ? |
@Maatary that last question looks like it should be in a different issue. |
indeed |
Hi,
I am looking to add Banana-rdf to my project however i am a little puzzled as to how to proceed.
Could you please clarify the following point for me:
1 - Banana-rdf is not available as artifacts online such as on bintray or maven central, etc....
2 - You have to build and publish all the artifact yourself.
3 - After which you have to add the artifact to your project. In that regard, what artifact are required in case you just want to have a sparql engine, to query some external sparql endpoint.
4 - Why isn't it possible to simply import things instead of creating a full class and extending it with module like RDFmodule before you can operate on things. I don't understand that logic. It sounds like you have to create your own RDFlib by composing the generic things all the time? AM i right ?
The text was updated successfully, but these errors were encountered: