Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] release plan for 2.3

Thanks, I’ve added a small placeholder and created an initial PR (I’ll add more text in March…)

 

Bart

 

From: rdf4j-dev-bounces@xxxxxxxxxxx [mailto:rdf4j-dev-bounces@xxxxxxxxxxx] On Behalf Of Håvard Ottestad
Sent: donderdag 22 februari 2018 9:36
To: rdf4j developer discussions <rdf4j-dev@xxxxxxxxxxx>
Subject: Re: [rdf4j-dev] release plan for 2.3

 

Ok.

 

Should be functional enough.

 

This is how to use it:

##################################################

 

NotifyingSail baseSail = new MemoryStore();
SailRepository shaclRules = ... ;
SailRepository shaclSail = new SailRepository(new ShaclSail(baseSail, shaclRules));
shaclSail.initialize();

##################################################

 

This is an example shape:

 

##################################################

 

 

@prefix ex: <http://example.com/ns#> .

@prefix owl: <http://www.w3.org/2002/07/owl#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix sh: <http://www.w3.org/ns/shacl#> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

 

ex:shape1

       a sh:Shape ;

       sh:targetClass ex:Person ;

       sh:property [

             sh:path ex:ssn ;

             sh:minCount 2 ;

 

       ] , [

                     sh:path ex:name ;

                     sh:minCount 1 ;

 

              ]

       .

##################################################

 

We support:

 

 - minCount

 - maxCount

 - targetClass

 - sh:path (with single predicate, eg. ex:ssn)

 

 

Håvard

 

 



On 22 Feb 2018, at 09:28, Jeen Broekstra <jeen.broekstra@xxxxxxxxx> wrote:

 



On 20/02/18 19:42, Bart Hanssens (BOSA) wrote:


Question: do we include the SHACL functionality as an "experimental"/"beta" feature?
I'm for it. Possible downside is that we have zero documentation on how to use it.

+1 on mentioning SHACL, it's an interesting feature for a few public sector projects.
The current lack of documentation isn't a showstopper IMHO
I'm actually interested in testing it, and writing some basic documentation,
but I probably won't have time to do that before the release date :-/


Alright, unless someone objects I suggest we merge it in, mention it as an experimental feature, and leave documentation until there's time for it.

Cheers,

Jeen

_______________________________________________
rdf4j-dev mailing list
rdf4j-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/rdf4j-dev

 


Back to the top