How to query RDF/OWL using SWI prolog semantic web?


How can I use the swi-prolog-semantic web to make a query into the OWL/RDF file and extract some information?

The OWL/RDF file is having informaton about all the Debian packages so I need to make the query in order to find package dependencies.

For Example:

The OWL file is structured as follows:

package: A


package: B

pacakge: C

So, I'd like to know the syntax to make a query with A as a parameter which outputs B and C.