I've read ways on how to insert data using SPARQL. Some references use INSERT while other references use INSERT DATA. So, I'm confused on how will I do the query. My goal is to insert a data property which is the CourseName to a class "Course" in my ontology. Here is my query:
INSERT{
<http://www.semanticweb.org/rocky/ontologies/2015/3/CurriculumOntology#Course> curr:CourseName "IT222".
}
I've tried this query and an exception appears which says:
SparqlReasonerException: org.openrdf.query.MalformedQueryException: Encountered " "insert" "INSERT "" at line 9, column 1.
Was expecting one of:
"base" ...
"prefix" ...
"select" ...
"construct" ...
"describe" ...
"ask" ...
is the subject of the triple wrong? or what should i really need to put on the subject of the triple? and why does an exception appears? btw, I'm using Protege in modeling my ontology.