im still a newbe for implementing swrl using protege 4.3 Here i have class resep_makanan and class usia_bayi. the two class connected by each other through object property. memiliki_resep
resep_untuk Then i make swrl like this : swrl :
Then i get this for the result : result
Then i want to retrieve data using sparql, here is my code
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX mpasi:<http://www.semanticweb.org/astrid/ontologies/2019/5/mpasiv2#>
>
> SELECT ?resep_makanan ?usia_bayi
> WHERE { ?resep_makanan mpasi:resep_untuk ?usia_bayi.
> }
But i didnt get anything... whats wrong with my sparql?