[Virtuoso-users] content:encoded
Hi All, Slight question about content:encoded (I know it's a bit of a special case). assumption(s): 1 - the following is valid content:encoded 2 - the following is invalid content:encodedsome html.
question / problem virtuoso consumes [1] perfectly, yet returns http://
Re: [Virtuoso-users] Loops and conditionals with SPARQL
Hello Leyla, Maybe I've missed something but the query yon need does not require even using subqueries, just a plain SPARQL: SELECT * WHERE { ?sub xxx:hasPrice ?obj, ?obj1 . ?obj xxx:hasMinPrice ?min . ?obj xxx:hasMaxPrice ?max . ?obj1 xxx:hasMinPrice ?min1 . ?obj1 xxx:hasMaxPrice ?max1 .
[Virtuoso-users] Loops and conditionals with SPARQL
Hello there, I have an object property which can appear more than once. It defines min and max values for prices which should not overlap and I need to check it. 300.0 450.0 100.0 200.0 I think I can do it with SPARQL and loops. For each
Re: [Virtuoso-users] virtuoso / isql / ubuntu [mini howto]
Tim Haynes wrote: > Nathan wrote: >> ahh well deduced, and as you say all works (virtuoso isql is much better)! >> >> # /usr/local/virtuoso-opensource/bin/isql localhost: dba dba >> Connected to OpenLink Virtuoso >> Driver: 06.00.3124 OpenLink Virtuoso ODBC Driver >> >> consider it symlink'd; >
Re: [Virtuoso-users] virtuoso / isql / ubuntu [mini howto]
Nathan wrote: > ahh well deduced, and as you say all works (virtuoso isql is much better)! > > # /usr/local/virtuoso-opensource/bin/isql localhost: dba dba > Connected to OpenLink Virtuoso > Driver: 06.00.3124 OpenLink Virtuoso ODBC Driver > > consider it symlink'd; [] This is not so much an
Re: [Virtuoso-users] VSP and Sparql use VPL variables in query.
Lourens > My first intuition would say that a sparql query containing > > { _:hidden_bnode skos:prefLabel ?v1_lab . > FILTER (_:hidden_bnode = iri(?:_uri)) } > > could be inefficient. Will Virtuoso internally optimize this into a query > equivalent to { $:some_uri skos:prefLabel ?v1_lab. } ?
Re: [Virtuoso-users] VSP and Sparql use VPL variables in query.
Thanks, Ivan. My first intuition would say that a sparql query containing { _:hidden_bnode skos:prefLabel ?v1_lab . FILTER (_:hidden_bnode = iri(?:_uri)) } could be inefficient. Will Virtuoso internally optimize this into a query equivalent to { $:some_uri skos:prefLabel ?v1_lab. } ? Lourens
Re: [Virtuoso-users] VSP and Sparql use VPL variables in query.
Lourens, I gues that this will work: CREATE PROCEDURE VAS_PROPERTY_LABEL (in _uri varchar) { for (sparql select ?v1_lab where { `iri(?:_uri)` skos:prefLabel ?v1_lab}) do { RETURN "v1_lab"; } RETURN _uri; } Colon in ?:_uri indicates an external variable, iri() con