protected override IdTitle Map(OntologyResource instance) { return(MapIdTitle(instance)); }
public static bool IsDeprecated(this OntologyResource resource) { IUriNode deprecated = resource.Graph.CreateUriNode(VocabularyHelper.OWL.deprecated); return resource.GetNodesViaProperty(deprecated).LiteralNodes().Any(node => node.Value == "true"); }
public static OntologyGraph OntologyGraph(this OntologyResource resource) { return resource.Graph as OntologyGraph; }
public static IEnumerable<INode> GetNodesViaProperty(this OntologyResource resource, INode property) { return resource.Graph.GetTriplesWithSubjectPredicate(resource.Resource, property).Select(triple => triple.Object); }
public static Uri GetNamespace(this OntologyResource ontResource) { return ontResource.GetUriNode().GetNamespace(); }
public static string GetLocalName(this OntologyResource ontResource) { return ontResource.GetUriNode().GetLocalName(); }
public static Uri GetIri(this OntologyResource ontResource) { return ontResource.GetUriNode().Uri; }
public static bool IsNamed(this OntologyResource ontResource) { return ontResource.Resource.IsUri(); }