I used the ARC2 PHP library (https://github.com/semsol/arc2) to query my ontology from my website. It needed me to create a MySQL database on the server, which I did. Triples from the ontology are stored in this database, by the ARC2 library. SPARQL queries were working as expected.
Yesterday, I had to add a few instances to my ontology. I did that and uploaded the updated ontology to my website. However, the new instances weren't being returned by the query results. I suspected that the new triples weren't being loaded into the datastore by ARC2. So, I deleted the database from the server and created a new one with the same name, user and password.
I verified that triples are being successfully loaded into the datastore. However, queries that were working before aren't working anymore. They aren't returning any results. Sample query:
PREFIX hown: <ontology url followed by a #>
SELECT ?word
WHERE{
?word hown:belongsTo hown:Good
}
This query was working earlier. It returns no results now. What could I have messed up in? What can I do to fix it?
Thank you for reading my long question. I apologize for it being so long, but I wanted it to be as detailed as possible.