This document describes a framework for implementing semantic queries in online social networks. The framework uses Semantic Web technologies to represent relationships between users in social networks as semantic triples. It extracts data from Facebook, converts it to an RDF representation using ontologies like FOAF and SIOC, and stores it in a semantic repository. This allows complex semantic queries to be run over the social network data to discover hidden relationships between users.