Example #1
0
        public DlName ToDL(string uri, ARS.EntityKind makeFor)
        {
            var owlName = new CogniPy.ARS.OwlName()
            {
                iri = IRI.create(uri)
            };

            return(owlNameingConvention.ToDL(owlName, lex, ns2pfx, makeFor));
        }
Example #2
0
        public static string entName(ARS.EntityKind kind)
        {
            switch (kind)
            {
            case EntityKind.Concept: return("C");

            case EntityKind.Instance: return("I");

            case EntityKind.Role: return("R");

            case EntityKind.DataRole: return("D");

            case EntityKind.DataType: return("T");

            case EntityKind.Annotation: return("N");

            case EntityKind.Statement: return("S");
            }
            throw new InvalidOperationException();
        }
Example #3
0
 public DlName ToDL(string uri, ARS.EntityKind makeFor)
 {
     return(owlNC.ToDL(uri, makeFor));
 }
Example #4
0
 public string ToOwlName(string name, ARS.EntityKind whatFor)
 {
     return("<" + owlNC.getIRIFromId(name, whatFor).toString() + ">");
 }