Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Henry Story
@bblfish
Check the code in the examples. I can't recall it by heart right now as I have been off doing maths for some time...
but it should be quite obvious if you jump to the code on PointedGraphs I think...
Mhh, you mean it does not work when you compile the whole thing first?
Is that code from the new PR?
Des
@hughgearse

I had cloned the project from git and then imported it into Intellij via sbt. And them I saw all these implicit errors coming up.

But now I just tried it via the sbt command line and did an "rdfTestSuiteJS/compile" and everything works fine. So I guess there's some conflict in how IntelliJ imports it. I'll look into it further and let you know. Thanks

Henry Story
@bblfish
:thumbsup:
Des
@hughgearse
Seems to be some subtle issue in a cross-project definition that Intellij cannot pick up on. For example if I move the source from shared to js the errors disappear. But it is working fine apart from that.
On another matter, why are TurtleReader and TurtleWriter commented out for the Plantain implementation? This means I cannot use turtle format for any js solution I presume?
Des
@hughgearse

Also, I cannot successfully write and then read in ntriples format. Taking an example from DieselGraphExplorationTest, I've tried the following:

        val test: PointedGraph[Rdf] = (
            URI("http://bertails.org/#betehess").a(foaf.Person)
                -- foaf.name ->- "Alexandre".lang("fr")
                -- foaf.name ->- "Alexander".lang("en")
                -- foaf.age ->- 29
                -- foaf("foo") ->- List(1, 2, 3)
                -- foaf.knows ->- (
                URI("http://bblfish.net/#hjs").a(foaf.Person)
                    -- foaf.name ->- "Henry Story"
                    -- foaf.currentProject ->- Literal("http://webid.info/")
                )
            )

        ntriplesWriter.asString(test.graph, "") match {
            case Success(nt) =>
                println("Reading content: " + nt)
                ntriplesReader.read(new StringReader(nt), "") match {
                    case Success(bg) =>
                        val pg = PointedGraph[Plantain](bg)
                        val names = (pg / foaf.name)
                        println("Names: " + names.size)
                    case Failure(ex) =>
                        println("Exception reading graph: " + ex)
                }
            case Failure(ex) =>
                println("Exception writing graph: " + ex)
        }

This gives me the following exception:

Exception reading graph: ParseError(line=4, char='45', message="blank node starts with illegal character in first position 'x02d'" )

NOTE. I am doing this in scalajs

Henry Story
@bblfish
Re TutrleReader, On Intellij there used to be a Blame button. You may find out what the reason was by looking at the commit comment there. Github has a similar feature.
But it was a while ago that this was done. Scala has evolved a lot, so there may have just been a little problem at the time that would be easy to fix.
Ah! ScalaJS has really evolved since we did this. We added Scala-JS when it was in version 0.5. Tooling was not there yet.
With Scala-JS there may be a dependency on a Turtle JS library. Perhaps we did not have one at the time, or it was unstable.
I wrote the NTriples parser in Scala, as it was so easy to write.
Henry Story
@bblfish
Mhh, so I guess the writer is not giving good blank nodes.
that should be easy to fix. It could be that this was not detected with the parsers at the time. Would be worth checking what the output is, and seeing if that is a bug in the output or the parser.
thanks a lot for this work!
It makes me want to get back :-) My stronger computer is in repair, and currently I am starting a company, and also need to write something for some longer term funding. But I was looking for some reason to get back and start applying what I had learned studying Category Theory over the past years...
Des
@hughgearse
http://bblfish.net/#hjs http://xmlns.com/foaf/0.1/currentProject "http://webid.info/"^^http://www.w3.org/2001/XMLSchema#string .
http://bblfish.net/#hjs http://xmlns.com/foaf/0.1/name "Henry Story"^^http://www.w3.org/2001/XMLSchema#string .
http://bblfish.net/#hjs http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://xmlns.com/foaf/0.1/Person .
:-1610539825--1402976902--1845493760--1913626320 http://www.w3.org/1999/02/22-rdf-syntax-ns#first "1"^^http://www.w3.org/2001/XMLSchema#integer . :-1610539825--1402976902--1845493760--1913626320 http://www.w3.org/1999/02/22-rdf-syntax-ns#rest :-1526749914-768166198--1459617792-677229202 . :-1526749914-768166198--1459617792-677229202 http://www.w3.org/1999/02/22-rdf-syntax-ns#first "2"^^http://www.w3.org/2001/XMLSchema#integer .
:-1526749914-768166198--1459617792-677229202 http://www.w3.org/1999/02/22-rdf-syntax-ns#rest :-923651329-304238391--2130706432--1116003038 .
http://bertails.org/#betehess http://xmlns.com/foaf/0.1/knows http://bblfish.net/#hjs .
http://bertails.org/#betehess http://xmlns.com/foaf/0.1/age "29"^^http://www.w3.org/2001/XMLSchema#integer .
http://bertails.org/#betehess http://xmlns.com/foaf/0.1/name "Alexander"@en .
http://bertails.org/#betehess http://xmlns.com/foaf/0.1/name "Alexandre"@fr .
http://bertails.org/#betehess http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://xmlns.com/foaf/0.1/Person .
http://bertails.org/#betehess http://xmlns.com/foaf/0.1/foo :-1610539825--1402976902--1845493760--1913626320 . :-923651329-304238391--2130706432--1116003038 http://www.w3.org/1999/02/22-rdf-syntax-ns#first "3"^^http://www.w3.org/2001/XMLSchema#integer .
_:-923651329-304238391--2130706432--1116003038 http://www.w3.org/1999/02/22-rdf-syntax-ns#rest http://www.w3.org/1999/02/22-rdf-syntax-ns#nil .
That is the content that is produced by the writer from the above code
I am happy to try and make any necessary fixes if you think you can give me some pointers
Des
@hughgearse
Had a look at the git history for PlantainModule and looks like the TurtleReader stuff was in comments from the beginning
Phil Leach
@PhilLeach
Hi, I submitted a PR to bring some build dependencies up to date. Is there any chance of getting it merged? I don’t think there is anything contentious about it. Thanks.
Henry Story
@bblfish
Hi Phil, thanks for pinging here. I was just setting up IntelliJ.
Henry Story
@bblfish
I am looking at the PR. Definitely seems to download all the dependencies a lot faster.
(just comparing with the previous build right now)
I also notice that IntelliJ does not correctly load the project in the previous version.
Actually I don't seem to be able to load the old project (ie the 0.8.x branch)
Henry Story
@bblfish
@PhilLeach are you using IntelliJ?
Just wondering why IntelliJ is not allowing me to search for classes in banana-rdf. (There always were problems on and off with that, but I would have thought something like that would be fixed by now)
Henry Story
@bblfish
Could be that as I just re-installed by MacBook after a battery problem that my setup of JDKs is wrong. Reinstalling those.
Henry Story
@bblfish
ok, it works now.
Btw. I can no longer install jdk8 on my machine with MacOs 10.15.5 for security reasons.
Henry Story
@bblfish
I committed the PR
Phil Leach
@PhilLeach
Hi @bblfish, thanks for committing, I dont use IntelliJ, ive become IDE-phobic over the years, I’m using VSCode with metals which (at least for the limited funcions I use) I can recommend.
Henry Story
@bblfish
Ah I found Intellij over time to be always be ver good. (better for Java than Scala on the whole but that is because Java is a simpler language). Anyway it is working now. Thanks for committing.
Henry Story
@bblfish
Newly published book How Bad are Bananas?
Henry Story
@bblfish
Hi, I should be receiving a grant from the EU that will allow me to put a certain amount of time into banana-rdf, now as I need it to write Solid client and server libraries, to test access control implementations being work on by the solid-auth groups.
I need to write some milestones for it. Are there active users here?
Henry Story
@bblfish
I have a nice self contained set of projects to writing streaming parsers for NTriples, NQuads, Json-LD or RDF/XML, ... in Akka.
let me know if you want to work on it.
I have a project to work on Solid from the EU https://nlnet.nl/project/SolidControl/
but there is too much for me to do it all by myself.
Anton Kulaga
@antonkulaga
@bblfish I am actually not sure if banana-rdf architecture is still valid. There has been many things discovered in Scala in the last two years and libraries emerged to work with typeclasses and other stuff in more organized way
Henry Story
@bblfish
could be. I will need to rethink the implementation of banana-rdf for Scala3
Perhaps I'll try a few ideas as I get to know Scala 3 and try them out. The interface should not have to change really.
Henry Story
@bblfish
In any case the basic structure will need to be rewritten as projections types have been removed (the way we use them at least).
bblfish
@bblfish:matrix.org
[m]
Travis is moving from Travis-ci.org to Travis-ci.com in a couple of weeks time. See note on https://travis-ci.com . Does that affect us?
Btw. is Travis still the best tool to use?
I am just about to set up something like that for co-operating-systems/Reactive-SoLiD#12