Re: rdfs:range according to RDFS and OWL

2024-04-03 Thread Shaw, Ryan
There is an existing issue about this: https://github.com/apache/jena/issues/1720 > On Apr 3, 2024, at 2:46 PM, Justin wrote: > > Hi all, > > According to RDFS 1.1 (https://www.w3.org/TR/rdf-schema/#ch_range), when > you use `rdfs:range` this inference is expected: > > ``` >

Re: [ANN] Apache Jena 5.0.0

2024-03-20 Thread Shaw, Ryan
> On Mar 20, 2024, at 5:05 AM, Andy Seaborne wrote: > > ** Term graphs > > Graphs are now term graphs in the API or SPARQL. That is, they do not match > "same value" for some of the Java mapped datatypes. The model API already > normalizes values written. > > TDB1, TDB2 keep their value

Re: Customizing Turtle pretty printing

2023-07-29 Thread Shaw, Ryan
n (couple of months) as it's better fro Git and better for similarity > with SPARQL. > > Cheers, Nick > > > --- Original Message --- > On Friday, June 23rd, 2023 at 22:40, Andy Seaborne wrote: > > >> >> On 23/06/2023 15:02, Shaw, Ryan wr

Re: Customizing Turtle pretty printing

2023-06-23 Thread Shaw, Ryan
PR to add a "long" Turtle format variant: https://github.com/apache/jena/pull/1923 Usage: riot --set ttl:indentStyle=long

Re: Customizing Turtle pretty printing

2023-06-23 Thread Shaw, Ryan
> On Jun 22, 2023, at 5:32 PM, Andy Seaborne wrote: > > is it doing lists? Yes, with a newline for every list item as in rdflib’s longturtle. > More generally - > We have Jena 5.x coming up (at a minimum - require Java17) > > Should this become the default pretty layout? or some variant?

Re: Customizing Turtle pretty printing

2023-06-21 Thread Shaw, Ryan
I have managed to modify TurtleShell.ShellGraph to output formatted TTL that is very close to rdflib’s longturtle output. The modified functions are: writeRemainingNLinkedLists writeCluster writePredicateObjectList (x2) writePredicateObject writePredicate writeNestedObjectTopLevel

Customizing Turtle pretty printing

2023-06-19 Thread Shaw, Ryan
I would like to create a custom Turtle pretty printer that does not try to align things like the current pretty printer does. I just want a standard indentation width (e.g. two spaces). So, instead of: ``` [ atime:ProperInterval ; time:hasBeginning[ a

Dynamically loading SPARQL functions from class path

2023-05-21 Thread Shaw, Ryan
Is it still possible to dynamically load SPARQL functions from the classpath? I have it working with tarql, which uses Jena 3.11, but I can’t seem to get it working with the latest version of Jena: $ JVM_ARGS="-cp

"Safe" flag for riot RDFS inference?

2022-11-19 Thread Shaw, Ryan
Currently, riot RDFS inference outputs “generalized” RDF which may not be parsable by other tools (including various Jena CLI tools). For example: data.ttl: ``` PREFIX ex: ex:louie ex:birthdate "2022-08-11" . ``` vocab.ttl: ``` PREFIX ex: PREFIX

Re: shiro.ini configuration to disallow PUT to dataset?

2022-11-02 Thread Shaw, Ryan
> You can also change the template file used when creating the dataset. It is > in run/templates/config-tdb2 etc. so you can change it on a per server basis. OK, great — this is the piece I was missing. Thanks!

Re: shiro.ini configuration to disallow PUT to dataset?

2022-11-02 Thread Shaw, Ryan
does not support that but you'll need shiro to do user login. > > A server without UI and without admin (currently :-) can Fuseki/main can use > the Jetty security handling - no shiro.ini - but that's a completely separate > setup. > >Andy > > On 31/10/2022 22:36,

shiro.ini configuration to disallow PUT to dataset?

2022-10-31 Thread Shaw, Ryan
I am trying to configure fuseki-server so that * an admin logging in via basic auth can create and update datasets * anonymous users can only query datasets My shiro.ini: [main] ssl.enabled = false plainMatcher = org.apache.shiro.authc.credential.SimpleCredentialsMatcher

Fuseki UI share query links not working?

2022-02-28 Thread Shaw, Ryan
The Fuseki UI includes a “share query” button that generates a URL with the current query encoded as a parameter. But these URLs aren’t working for me — when I resolve one I just get a blank page with the Apache Jena Fuseki header and nothing else (and no errors in the JS console). Are these

Turtle-star formatted output with annotation syntax?

2022-02-09 Thread Shaw, Ryan
Jena riot handles parsing Turtle-star annotation syntax, but AFAICT Turtle-star output always uses quoted triples. Are there any plans to support the annotation syntax for output? Thanks, Ryan

Re: Disabling BNode UID generation

2022-02-09 Thread Shaw, Ryan
in Jena? > On Feb 5, 2022, at 12:48 PM, Andy Seaborne wrote: > > > > On 04/02/2022 19:09, Shaw, Ryan wrote: >> Hello, >> I am trying to experiment with generating diffable N-Triples or flat Turtle >> files. > ... >> Thanks, >> Ryan > > &g

Re: Disabling BNode UID generation

2022-02-04 Thread Shaw, Ryan
> On Feb 4, 2022, at 4:03 PM, Andy Seaborne wrote: > > Ryan, > > Please, could you show example code that illustrates what you are seeing? > Presumably it isn't a mix in one parser run because it looks like "Annn" come > from a different place than UUIDs Ids.

Disabling BNode UID generation

2022-02-04 Thread Shaw, Ryan
Hello, I am trying to experiment with generating diffable N-Triples or flat Turtle files. I was hoping that I could do this by setting JenaParameters.disableBNodeUIDGeneration to true, so that blank nodes would be assigned IDs in increasing order as the parser created them. But it seems that

Validation of XSD 1.1 datatypes (was Re: Using Xerces2 2.12.1 with Jena)

2021-09-10 Thread Shaw, Ryan
>> On 09/09/2021 23:32, Shaw, Ryan wrote: >> >> riot gives me the warning “Lexical form '' not valid for datatype XSD >> gYear”. But according to XSD 1.1 Part 2, is a permitted value for >> gYear, representing 1 BCE. > On Sep 10, 2021, at 6:25 AM, A

Re: Using Xerces2 2.12.1 with Jena

2021-09-09 Thread Shaw, Ryan
> On Sep 9, 2021, at 4:00 PM, Andy Seaborne wrote: > > What is your usage scenario? riot gives me the warning “Lexical form '' not valid for datatype XSD gYear”. But according to XSD 1.1 Part 2, is a permitted value for gYear, representing 1 BCE. > Jena supports the XSD datatypes

Using Xerces2 2.12.1 with Jena

2021-09-09 Thread Shaw, Ryan
I would like to use Xerces2 2.12.1 (with support for XML Schema 1.1) as the Jena XML parser, specifically to gain support for XSD 1.1 datatypes. I see at [1] that “any XML parser can be used with Jena … through the usual mechanism for adding to the application.” But I don’t know what that