Re: SELECT only one predicate among many with same URI

2017-05-03 Thread Rurik Thomas Greenall
Perhaps something like:

prefix ex: 

SELECT ?title (sample(?b) as ?subject) WHERE {
  ?uri ex:title ?title ;
 ex:subject ?b ;
} GROUP BY ?uri ?title

On Thu, May 4, 2017 at 7:15 AM, Laura Morales  wrote:

> Let's say I have this simple model for a dataset of books
>
> 
> title "only 1 title" .
> topic "some topic", "another topic", "many topics" .
>
> There is one title, but several topics. I want to retrieve a list of
> books, together with their title and only one topic (any one of them is
> OK). So what I want is a list of results like this
>
>  title "title"
>  topic "some topic"
>  title "the title"
>  topic "random topic"
> ...
>
> Is there any (simple) way to do this with SPARQL?
>


SELECT only one predicate among many with same URI

2017-05-03 Thread Laura Morales
Let's say I have this simple model for a dataset of books


title "only 1 title" .
topic "some topic", "another topic", "many topics" .

There is one title, but several topics. I want to retrieve a list of books, 
together with their title and only one topic (any one of them is OK). So what I 
want is a list of results like this

 title "title"
 topic "some topic"
 title "the title"
 topic "random topic"
...

Is there any (simple) way to do this with SPARQL?


Re: [VOTE] Release vote : Apache Jena 3.3.0

2017-05-03 Thread anuj kumar
+1

Waiting eagerly for the release :)

Thanks,
Anuj Kumar

On Wed, May 3, 2017 at 12:14 PM, Bruno P. Kinoshita <
brunodepau...@yahoo.com.br.invalid> wrote:

>
>
> [ X ] +1 Approve the release
>
> Build passing on Linux (Ubuntu LTS), and
>
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-11T05:41:47+13:00)
> Maven home: /opt/maven
> Java version: 1.8.0_131, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-8-oracle/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "4.4.0-75-generic", arch: "amd64", family:
> "unix"
>
> Thanks!!!
> Bruno
> 
> From: "aj...@apache.org" 
> To: d...@jena.apache.org; users@jena.apache.org
> Sent: Wednesday, 3 May 2017 7:17 AM
> Subject: [VOTE] Release vote : Apache Jena 3.3.0
>
>
>
> Hi Jena-folks,
>
>
> Here is a vote on a release of Jena 3.3.0 (with Fuseki 2.6.0).
>
>
> The most obvious changes in this release are some large shifts in support
> for full-text indexing. See below for details.
>
>
> This is the first proposed candidate for this release.
>
>
> == Dependency changes:
>
>
> jena-text: Lucene v6.4.1
>
>
> New module:
>
>  jena-text-es
>
>  Elasticsearch: v5.2.2 License : AL2
>
>   https://github.com/elastic/elasticsearch/blob/master/LICENSE.txt
>
>  [*] Full list of recursive dependencies at the end
>
>
> == Updates:
>
>  Guava (shaded) to version 21.
>
>
> == Key features of the release:
>
>
> * Drop text indexing support for solr4j, add support for Elastic Search
>
>  JENA-1301 - Drop Solr
>
>  JENA-1305 - Elastic Search support
>
>  Accomplished thanks to contributions from Anuj Kumar!
>
>
> * Add VCARD4 (JENA-1205)
>
> Contribution from Bart Hanssens
>
>
> * RDFParser (JENA-1306)
>
>New low level, detailed setup of parsers for special cases.
>
>RDFDataMgr is still the main way to read data (it now uses RDFParser).
>
>
> * RDFWriter (JENA-1323)
>
>
> * Bad URIs in RDF/XML are now warnings (model.read) inline with RDF 1.1.
>
>(JENA-1324)
>
>
>
>~39 other JIRA tickets
>
>See https://s.apache.org/jena-3.3.0-jira
>
>
> == Release
>
>
> Everyone, not just committers, is invited to test and vote.
>
> Please download and test the proposed release.
>
>
> Staging repository:
>
>   https://repository.apache.org/content/repositories/orgapachejena-1017
>
>
> Proposed dist/ area:
>
>   https://dist.apache.org/repos/dist/dev/jena/
>
>
> Keys:
>
>   https://svn.apache.org/repos/asf/jena/dist/KEYS
>
>
> Git commit (browser URL):
>
>   http://git-wip-us.apache.org/repos/asf/jena/commit/a35bad97
>
>
> Git Commit Hash:
>
>a35bad974eb24e4ed03af195c7adef72039cd030
>
>
> Git Commit Tag:
>
>jena-3.3.0-rc1
>
>
> Please vote to approve this release:
>
>
>[ ] +1 Approve the release
>
>[ ]  0 Don't care
>
>[ ] -1 Don't release, because ...
>
>
> This vote will be open to at least
>
>
>17:00 UTC-04:00 (US Eastern 5PM) on Friday 5 May 2017
>
>
> If you expect to check the release but the 72 hour limit does not work
>
> for you, please email within the schedule above with an expected time
>
> and we can extend the vote period.
>
>
> Thanks,
>
>
>ajs6f
>
>
> Checking needed:
>
>
> + does everything work on Linux?
>
> + does everything work on MS Windows?
>
> + does everything work on OS X?
>
> + are the GPG signatures fine?
>
> + are the checksums correct?
>
> + is there a source archive?
>
> + can the source archive really be built?
>
> + is there a correct LICENSE and NOTICE file in each artifact
>
>  (both source and binary artifacts)?
>
> + does the NOTICE file contain all necessary attributions?
>
> + have any licenses of dependencies changed due to upgrades?
>
>   if so have LICENSE and NOTICE been upgraded appropriately?
>
> + does the tag/commit in the SCM contain reproducible sources?
>
>
>
> --
>
>
> [*]
>
> org.elasticsearch dependencies (recursive) other than org.apache artifacts:
>
>
> org.elasticsearch:elasticsearch:jar:5.2.2
>
> net.sf.jopt-simple:jopt-simple:jar:5.0.2
>
> com.carrotsearch:hppc:jar:0.7.1
>
> joda-time:joda-time:jar:2.9.5
>
> org.yaml:snakeyaml:jar:1.15
>
> com.tdunning:t-digest:jar:3.0
>
> org.hdrhistogram:HdrHistogram:jar
>
> net.java.dev.jna:jna:jar:4.2.2
>
> io.netty:netty:jar:3.10.6.Final
>
> com.github.spullara.mustache.java:compiler:jar:0.9.3
>



-- 
*Anuj Kumar*


Re: [VOTE] Release vote : Apache Jena 3.3.0

2017-05-03 Thread Bruno P. Kinoshita


[ X ] +1 Approve the release

Build passing on Linux (Ubuntu LTS), and

Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
2015-11-11T05:41:47+13:00)
Maven home: /opt/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-75-generic", arch: "amd64", family: "unix"

Thanks!!!
Bruno

From: "aj...@apache.org" 
To: d...@jena.apache.org; users@jena.apache.org 
Sent: Wednesday, 3 May 2017 7:17 AM
Subject: [VOTE] Release vote : Apache Jena 3.3.0



Hi Jena-folks,


Here is a vote on a release of Jena 3.3.0 (with Fuseki 2.6.0).


The most obvious changes in this release are some large shifts in support for 
full-text indexing. See below for details.


This is the first proposed candidate for this release.


== Dependency changes:


jena-text: Lucene v6.4.1


New module:

 jena-text-es

 Elasticsearch: v5.2.2 License : AL2

  https://github.com/elastic/elasticsearch/blob/master/LICENSE.txt

 [*] Full list of recursive dependencies at the end


== Updates:

 Guava (shaded) to version 21.


== Key features of the release:


* Drop text indexing support for solr4j, add support for Elastic Search

 JENA-1301 - Drop Solr

 JENA-1305 - Elastic Search support

 Accomplished thanks to contributions from Anuj Kumar!


* Add VCARD4 (JENA-1205)

Contribution from Bart Hanssens


* RDFParser (JENA-1306)

   New low level, detailed setup of parsers for special cases.

   RDFDataMgr is still the main way to read data (it now uses RDFParser).


* RDFWriter (JENA-1323)


* Bad URIs in RDF/XML are now warnings (model.read) inline with RDF 1.1.

   (JENA-1324)



   ~39 other JIRA tickets

   See https://s.apache.org/jena-3.3.0-jira


== Release


Everyone, not just committers, is invited to test and vote.

Please download and test the proposed release.


Staging repository:

  https://repository.apache.org/content/repositories/orgapachejena-1017


Proposed dist/ area:

  https://dist.apache.org/repos/dist/dev/jena/


Keys:

  https://svn.apache.org/repos/asf/jena/dist/KEYS


Git commit (browser URL):

  http://git-wip-us.apache.org/repos/asf/jena/commit/a35bad97


Git Commit Hash:

   a35bad974eb24e4ed03af195c7adef72039cd030


Git Commit Tag:

   jena-3.3.0-rc1


Please vote to approve this release:


   [ ] +1 Approve the release

   [ ]  0 Don't care

   [ ] -1 Don't release, because ...


This vote will be open to at least


   17:00 UTC-04:00 (US Eastern 5PM) on Friday 5 May 2017


If you expect to check the release but the 72 hour limit does not work

for you, please email within the schedule above with an expected time

and we can extend the vote period.


Thanks,


   ajs6f


Checking needed:


+ does everything work on Linux?

+ does everything work on MS Windows?

+ does everything work on OS X?

+ are the GPG signatures fine?

+ are the checksums correct?

+ is there a source archive?

+ can the source archive really be built?

+ is there a correct LICENSE and NOTICE file in each artifact

 (both source and binary artifacts)?

+ does the NOTICE file contain all necessary attributions?

+ have any licenses of dependencies changed due to upgrades?

  if so have LICENSE and NOTICE been upgraded appropriately?

+ does the tag/commit in the SCM contain reproducible sources?



--


[*]

org.elasticsearch dependencies (recursive) other than org.apache artifacts:


org.elasticsearch:elasticsearch:jar:5.2.2

net.sf.jopt-simple:jopt-simple:jar:5.0.2

com.carrotsearch:hppc:jar:0.7.1

joda-time:joda-time:jar:2.9.5

org.yaml:snakeyaml:jar:1.15

com.tdunning:t-digest:jar:3.0

org.hdrhistogram:HdrHistogram:jar

net.java.dev.jna:jna:jar:4.2.2

io.netty:netty:jar:3.10.6.Final

com.github.spullara.mustache.java:compiler:jar:0.9.3


Re: Text index in Apache Jena 3.3.0

2017-05-03 Thread Andy Seaborne

Hi Sorin,

The Solr4j connector (as opposed to Lucene itself) will not be in the 
3.3.0 release.  That hasn't been any contribution to it and without 
maintenance, it becomes an impedance to other work (here, the 
Elasticsearch module).


There is no reason why it can't go back - it needs people (users) to 
give it some care and attention, and also test it because the core 
project committers can't do everything for every system.


What is needed is a small maven module to provide the extension to the 
main jena-text code in the same style that module jena-text-es [*] does 
it.  And some tests.


Are you interested in helping with that?

Andy

[*]
https://github.com/apache/jena/tree/master/jena-text-es


On 03/05/17 09:20, Sorin Gheorghiu wrote:

Hi,

related to JENA-1301, would be possible in Jena 3.3.0 and later to build
a Text Index with Fuseki in Apache Solr any longer?

Regards


Text index in Apache Jena 3.3.0

2017-05-03 Thread Sorin Gheorghiu

Hi,

related to JENA-1301, would be possible in Jena 3.3.0 and later to build 
a Text Index with Fuseki in Apache Solr any longer?


Regards