import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.lang.*;
import java.util.regex.*;
import java.
As William's succinct answer implies the problem is that you haven't defined what the rdfs
prefix represents. Prefixed Names in SPARQL and other related RDF standards are purely a syntactic convenience for writing queries and data in a more compact and readable way. You can assign a prefix to represent any namespace URI you want so you must always explicitly define your prefixes using the mechanism of the format you are using.
In the case of SPARQL this is the PREFIX
keyword which is used to define prefixes. These definitions must appear before the main body of your query and you can have as many definitions as you want present.
String queryString ="SELECT ?ds ?o WHERE {?ds rdfs:subClassOf ?o }";
Should be
String queryString ="PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?ds ?o WHERE {?ds rdfs:subClassOf ?o }";