RdfDelta and RDFPatch javadocs, documentation and examples

2019-04-24 Thread agate . marc
Hi, We are planning to use RDF Patch and RDF Delta (https://github.com/afs/rdf-delta) to edit our TDB dataset served through a fuseki endpoint. We took a look at various docs pertaining to Delta and Patch and browse the github repo, but we are still wondering about what could be the best

Re: pattern matching and extraction function on strings in syntaxARQ

2019-04-24 Thread Marco Neumann
great, simple is good here Lorenz. I tried $1 but was surprised to get full strings bound to ?email on non-matches here as well. I had to combine it with a filter of the same pattern to get the desired results. so I read the replacement semantics here now that backreference $0 is the input string

Re: pattern matching and extraction function on strings in syntaxARQ

2019-04-24 Thread Lorenz B.
Or maybe even more simple |BIND(REPLACE(STR(?url),".*/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+)/.*","$1") AS ?email)| >> BIND (REPLACE(STR(?s),"[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+","$0") AS ?email) > replaces the matching email address by the email address itself, so it's > the same as before. > > You need

Re: pattern matching and extraction function on strings in syntaxARQ

2019-04-24 Thread Lorenz B.
> BIND (REPLACE(STR(?s),"[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+","$0") AS ?email) replaces the matching email address by the email address itself, so it's the same as before. You need to replace everything else by the email address, replace is not an "extract" function, you can try BIND