Re: Reasoners

2017-01-09 Thread Dave Reynolds
Hi Paul, On 09/01/17 20:23, Paul Houle wrote: In vanilla RDF, you do not change 5 to 10, you either delete the 5 and add the 10 or you add the 10 then delete the five! Maybe it all happens in a transaction which might make the immediate states invisible to the outside world. I use the Jena R

Re: Reasoners

2017-01-09 Thread Paul Houle
In vanilla RDF, you do not change 5 to 10, you either delete the 5 and add the 10 or you add the 10 then delete the five! Maybe it all happens in a transaction which might make the immediate states invisible to the outside world. I use the Jena Rules engine with user defined functions that crea

Re: Reasoners

2017-01-09 Thread Dave Reynolds
Hi Claude, On 09/01/17 10:55, Claude Warren wrote: I am digging into reasoners for the first time in a long time and have a couple of questions. What I am trying to do is the following: Assume data: 5 I want a rule that will produce 5 So something like: (?x my:sameValue ?y) (?y

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/203 This looks nice now. 👍 Please do either file a ticket for the new bug you found or find a ticket that already describes it (if there is one) and reference it in the comment you left in the test case w

Listeners and remote Graphs.

2017-01-09 Thread Claude Warren
Greetings, Given that the Cassandra server can host multiple client and those clients can open the same graph on the server simultaneously. Basically two updatable synchronized views on one data set. Assume graph A is opened on client X and client Y and applications at X and Y both register li

Re: [GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread François-Paul Servant
> Oh, that's fine. It shows as code that was added by this PR, strangely. oops, good point: it’s a duplicate of the actual class, that is somewhere else (something wrong with my local repo). My bad, I check and remove it. > Le 9 janv. 2017 à 19:36, ajs6f a écrit : > > Github user ajs6f commen

[GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on a diff in the pull request: https://github.com/apache/jena/pull/203#discussion_r95217067 --- Diff: jena-arq/src/main/java/org/apache/jena/riot/out/JenaRDF2JSONLD.java --- @@ -0,0 +1,100 @@ +/** + * Licensed to the Apache Software Foundation (A

[GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread fpservant
Github user fpservant commented on a diff in the pull request: https://github.com/apache/jena/pull/203#discussion_r95216878 --- Diff: jena-arq/src/main/java/org/apache/jena/riot/out/JenaRDF2JSONLD.java --- @@ -0,0 +1,100 @@ +/** + * Licensed to the Apache Software Foundatio

[GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on a diff in the pull request: https://github.com/apache/jena/pull/203#discussion_r95210926 --- Diff: jena-arq/src/main/java/org/apache/jena/riot/out/JenaRDF2JSONLD.java --- @@ -0,0 +1,100 @@ +/** + * Licensed to the Apache Software Foundation (A

[GitHub] jena issue #202: Formatting rampage

2017-01-09 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/202 @afs Are you cool with this now? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wi

Re: [GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread François-Paul Servant
the proposal to use a parse method allows to change current code from: ``` ReaderRIOT reader = RDFDataMgr.createReader(Lang.JSONLD); try (InputStream in = new ByteArrayInputStream(jsonld.getBytes(StandardCharsets.UTF_8))) { reader.read(in, null, null, StreamRDFLib.dat

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/203 You're saying use `org.apache.jena.riot.RDFDataMgr.parse(StreamRDF, InputStream, String, Lang, Context)`? That does make sense. I guess I was thinking of the general need to customize parsing behavior, b

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread afs
Github user afs commented on the issue: https://github.com/apache/jena/pull/203 What about a `parse` method? As discussed before, adding a lot extra functions just for one particular case of one particular language, seems to create unclarity for the general usage. The read(.

[GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread fpservant
Github user fpservant commented on a diff in the pull request: https://github.com/apache/jena/pull/203#discussion_r95170644 --- Diff: jena-arq/src/main/java/org/apache/jena/riot/lang/JsonLDReader.java --- @@ -45,9 +45,20 @@ import org.apache.jena.riot.system.* ; import or

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/203 @fpservant @afs Yes, exactly. Having a method on `RdfDataMgr` that takes `InputStream` _and_ `Context` seems very natural. --- If your project is set up for it, you can reply to this email and have you

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread fpservant
Github user fpservant commented on the issue: https://github.com/apache/jena/pull/203 @afs I think that @ajs6f refers to code: ``` InputStream in = new ByteArrayInputStream(jsonld.getBytes(StandardCharsets.UTF_8)); +Dataset ds = DatasetFactory.create(); +

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread afs
Github user afs commented on the issue: https://github.com/apache/jena/pull/203 With the changes that have happened, I'm not seeing the comment to which you refer. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your

[GitHub] jena issue #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread ajs6f
Github user ajs6f commented on the issue: https://github.com/apache/jena/pull/203 @fpservant Oh my goodness, you are quite right. There is no appropriate method in `RdfDataMgr`! @afs I think we could reasonably add such a method as part of this PR-- it would clearly be useful. What sa

[GitHub] jena pull request #203: JsonLDReader: possibility to override the @context

2017-01-09 Thread afs
Github user afs commented on a diff in the pull request: https://github.com/apache/jena/pull/203#discussion_r95154891 --- Diff: jena-arq/src/main/java/org/apache/jena/riot/lang/JsonLDReader.java --- @@ -45,9 +45,20 @@ import org.apache.jena.riot.system.* ; import org.apac

Reasoners

2017-01-09 Thread Claude Warren
I am digging into reasoners for the first time in a long time and have a couple of questions. What I am trying to do is the following: Assume data: 5 I want a rule that will produce 5 but in addition if I change [ 5] to [ 10] I want the reasoner to change [ 5] to [ 10] So after fi