What is your input data? And what do you mean by "the model just has
(blank node, column_name, test)"

column_name must be a URI to be valid data so either you are creating your
data in such a way that all your URIs are relative (which is a bad idea)
or all your predicates are being resolved against whatever Base URI is in
effect which will depend on how you are loading your data.

Please provide a minimal reproducible test case I.e. full code, data and
query if you want further assistance.

Rob


On 6/27/13 8:54 AM, "Kurt Landen" <[email protected]> wrote:

>I get an error. If I specify a prefix will I have to update all my data?
>Currently the model just has (blank node, column_name, test) for each
>triplet.
>
>
>On Thu, Jun 27, 2013 at 10:48 AM, David Jordan <[email protected]>
>wrote:
>
>>
>> When you say it does not work, what do you mean? You get no results, or
>> you get an error?
>> Your column_name in the where clause should be a predicate.
>> For example, rdfs:subClassOf
>>
>> -----Original Message-----
>> From: Kurt Landen [mailto:[email protected]]
>> Sent: Thursday, June 27, 2013 11:35 AM
>> To: [email protected]
>> Subject: Do query predicates require a prefix?
>>
>> I can execute this command using QueryFactory:
>>
>> SELECT ?x ?y ?z WHERE {?x ?y ?z }
>>
>> but if I want to specify the predicate
>>
>> SELECT ?x ?y ?z WHERE {?x column_name ?z }
>>
>> it does not work.
>>
>> Does the predicate and/or subject require a prefix?
>>
>> If I specify a prefix I don't get an error, but I will have to change
>>all
>> my data so that the query will work. Is this even a correct query?
>>
>>

Reply via email to