Recently we discovered an issue in the installation guide’s import script that was causing the ontologies to be incorrectly imported. There was an extra call to DeleteResource that was resulting in previously imported ontologies to be removed.
Here is the updated script below. Remember to set your timeout really high as this takes several minutes to complete.
import "/imm/semanticmetadataservice/ontology.rql";
debug=true;
consoleOutput=true;
var ontologyUri = "http://purl.org/dc/elements/1.1/";
var tempOntologyDs = new datasource("inet?parsetype=rdf&context=" + server.urlencode(ontologyUri) + "&url=" + server.urlencode(ontologyUri));
InsertOntology(ontologyUri, tempOntologyDs);
var ontologyUri = "http://purl.org/dc/terms/";
var ontologyUri = "http://purl.org/dc/dcmitype/";
var ontologyUri = "http://schemas.microsoft.com/imm/2.0/core/";
var ontologyPath = "C:\\Program Files\\Microsoft Interactive Media Manager\\Samples\\Data\\LitwareInc.owl";
var ontologyUri = "http://imm.litwareinc.com/samples/2.0/";
var tempOntologyDs = new datasource("inet?parsetype=rdf&context=" + server.urlencode(ontologyUri) + "&url=" + server.urlencode(ontologyPath));
After importing the Ontologies, you can run this SQL Script and you should see a row for each imported ontology.
exec sw_Sparql '
SELECT ?s ?o
FROM <http://schemas.microsoft.com/IMM/ontology>
WHERE { graph ?g { ?s <http://schemas.microsoft.com/imm/2.0/core/InferenceIndex> ?o }}',
1