Semantic data is stored in RDF which can be queried using SPARQL . This PHP file runs a set of Sparql queries and mysql queries combines both the data and saves data into a JSON file