I am doing some work over a subscribe/publish system. With a ontology we can provide with some attributes for users to fill in and then we turn it into a sparql query to match with the items in our database, but there is a function in our system that the users are allowed to view their own queries, as they are stored in the database in sparql format and it is not very good to show them sparql sentences directly, so I am wondering if there is a way to visualize the sparql sentences?
For example, below is a sparql stored in the database, it is about a subscription of auction event:
SELECT ?News1 WHERE {?News1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sps.kse.seu.edu.cn/ontologydemo.owl#News> .?News1 <http://sps.kse.seu.edu.cn/ontologydemo.owl#aboutEvent> ?Auction1 .
?Auction1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sps.kse.seu.edu.cn/ontologydemo.owl#Auction> .}
With this, can I get some hints like "you're asking for Auction news" to show to the users?By the way, I am using java language and the MyEclipse as the development tool, Thanks!