protected override IdTitle Map(OntologyResource instance)
 {
     return(MapIdTitle(instance));
 }
Ejemplo n.º 2
0
 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");
 }
Ejemplo n.º 3
0
 public static OntologyGraph OntologyGraph(this OntologyResource resource)
 {
     return resource.Graph as OntologyGraph;
 }
Ejemplo n.º 4
0
 public static IEnumerable<INode> GetNodesViaProperty(this OntologyResource resource, INode property)
 {
     return resource.Graph.GetTriplesWithSubjectPredicate(resource.Resource, property).Select(triple => triple.Object);
 }
Ejemplo n.º 5
0
 public static Uri GetNamespace(this OntologyResource ontResource)
 {
     return ontResource.GetUriNode().GetNamespace();
 }
Ejemplo n.º 6
0
 public static string GetLocalName(this OntologyResource ontResource)
 {
     return ontResource.GetUriNode().GetLocalName();
 }
Ejemplo n.º 7
0
 public static Uri GetIri(this OntologyResource ontResource)
 {
     return ontResource.GetUriNode().Uri;
 }
Ejemplo n.º 8
0
 public static bool IsNamed(this OntologyResource ontResource)
 {
     return ontResource.Resource.IsUri();
 }