public override object Visit(SwrlDifferentFrom e)
        {
            var inst = e.I.accept(this) as org.apache.jena.graph.Node;
            var jnst = e.J.accept(this) as org.apache.jena.graph.Node;

            AddIfNotExists(inst, org.apache.jena.vocabulary.OWL2.differentFrom.asNode(), jnst);
            if (!swrlOnly)
            {
                AddIfNotExists(inst, org.apache.jena.vocabulary.RDF.type.asNode(), org.apache.jena.vocabulary.OWL2.Thing.asNode());
                AddIfNotExists(inst, org.apache.jena.vocabulary.RDF.type.asNode(), org.apache.jena.vocabulary.OWL2.NamedIndividual.asNode());
                AddIfNotExists(jnst, org.apache.jena.vocabulary.RDF.type.asNode(), org.apache.jena.vocabulary.OWL2.Thing.asNode());
                AddIfNotExists(jnst, org.apache.jena.vocabulary.RDF.type.asNode(), org.apache.jena.vocabulary.OWL2.NamedIndividual.asNode());
            }
            return(null);
        }
Exemple #2
0
        public override object Visit(SwrlDifferentFrom e)
        {
            var inst = e.I.accept(this);
            var jnst = e.J.accept(this);

            if (inSwrlBody)
            {
                sb.Append("notEqual(");
                sb.Append(inst);
                sb.Append(",");
                sb.Append(jnst);
                sb.Append(")");
            }
            else
            {
                sb.Append("(");
                sb.Append(inst);
                sb.Append(", owl:differentFrom, ");
                sb.Append(jnst);
                sb.Append(")");

                if (!swrlOnly)
                {
                    sb.Append("(");
                    sb.Append(inst);
                    sb.Append(" rdf:type ");
                    sb.Append("owl:NamedIndividual");
                    sb.Append(")");
                    sb.Append("(");
                    sb.Append(jnst);
                    sb.Append(" rdf:type ");
                    sb.Append("owl:NamedIndividual");
                    sb.Append(")");
                }
            }
            return(null);
        }
Exemple #3
0
 public virtual object Visit(SwrlDifferentFrom e)
 {
     e.I.accept(this);
     e.J.accept(this);
     return(e);
 }
Exemple #4
0
 public override object Visit(SwrlDifferentFrom e)
 {
     e.I.accept(this);
     e.J.accept(this);
     return(e);
 }
Exemple #5
0
 public object Visit(SwrlDifferentFrom e)
 {
     return(CreateNull());
 }
Exemple #6
0
 public override object Visit(SwrlDifferentFrom e)
 {
     return(base.Visit(e));
 }