[Pellet-users] Error: "Unresolved prefixed name: rdf:type"
Wolfgang May
may at informatik.uni-goettingen.de
Fri Jan 4 17:44:03 UTC 2008
On Fri, 4 Jan 2008, João Paulo Sousa wrote:
> Hi,
>
> When I try to run this query bellow, I got he fowlling error: "Unresolved
> prefixed name: rdf:type".
> The domains bellow are on-line.
>
> Please help me to solve this problem.
Most probably, it is very easy:
change the definiton of queryBegin:
static String queryBegin = "PREFIX actor:
<http://icas.ipb.pt/myontologies/actor.owl#> \r\n" +
"PREFIX space:
<http://icas.ipb.pt/myontologies/spatial.owl#> \r\n" +
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>";
For the SPARQL query, you need to define *all* prefixes that are used in
it (i.e. in the query string), here, this means you have to define rdf.
Wolfgang
More information about the Pellet-users
mailing list