RedWhiteMiko
RedWhiteMiko

Reputation: 3

use more than 1 input inference in Virtuoso

I have one input inference in Virtuoso Open Source, that was defined from goodrelations site --

rdfs_rule_set('http://purl.org/goodrelations/v1', 'http://purl.org/goodrelations/v1');

-- that I used in query using --

define input:inference <http://purl.org/goodrelations/v1> .

Now I want to consolidate all brand which have same name, give owl:sameAs inference to it, and insert in into rule set --

rdfs_rule_set('samebrands', 'samebrands');

However, when I add more inference, Virtuoso told me I can't add more than 1 inference to query.

How should I do it? Thank you :).

Upvotes: 0

Views: 1061

Answers (2)

Martin Hepp
Martin Hepp

Reputation: 1595

You have to use another pragma:

DEFINE input:same-as "yes"

See the documentation.

Another approach is to define an inference rule which contains two graphs (GR and samebrands).

Upvotes: 1

William Greenly
William Greenly

Reputation: 3989

You might need to create a separate ontology that includes the terms that you want to use for inference. If it is all terms from another ontology then use owl:imports

Upvotes: 0

Related Questions