You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SELECT operator returns a solution set, not an RDF graph, so it can't be serialized to RDF/XML. You may want to do a CONSTRUCT, which can be serialized to RDF/XML.
From the readme:
query = sparql.construct([:s, :p, :o]).where([:s, :p, :o]).limit(10)
query.each_statement do |statement|
puts statement.inspect
end
You should also be able to do the following:
query.result.to_rdf
Note, there is a mailing list where you can ask questions, rather than raising issues, which might be more appropriate. Send questions or comments to public-rdf-ruby@w3.org.
I have a qurey :
result = sparql.query("SELECT * WHERE { ?s ?p ?o }")
result is "RDF::Query::Solution"
I need de result in RDF/XML, any suggest?
The text was updated successfully, but these errors were encountered: