Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Rdf.cs
1using System;
3
5{
9 public class Rdf : IOntology
10 {
14 public Rdf()
15 {
16 }
17
21 public string OntologyNamespace => Namespace;
22
26 public string OntologyPrefix => "rdf";
27
31 public bool ShowByDefault => true;
32
38 public Grade Supports(string Uri)
39 {
40 return Uri.StartsWith(Namespace) ? Grade.Ok : Grade.NotAtAll;
41 }
42
46 public const string Namespace = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
47
51 public static readonly Uri type = new Uri(Namespace + "type");
52
56 public static readonly Uri first = new Uri(Namespace + "first");
57
61 public static readonly Uri rest = new Uri(Namespace + "rest");
62
66 public static readonly Uri nil = new Uri(Namespace + "nil");
67
71 public static readonly Uri subject = new Uri(Namespace + "subject");
72
76 public static readonly Uri predicate = new Uri(Namespace + "predicate");
77
81 public static readonly Uri @object = new Uri(Namespace + "object");
82
86 public static readonly Uri Statement = new Uri(Namespace + "Statement");
87
91 public static readonly Uri Seq = new Uri(Namespace + "Seq");
92
96 public static readonly Uri Bag = new Uri(Namespace + "Bag");
97
102 public static readonly Uri Alt = new Uri(Namespace + "Alt");
103
107 public static readonly Uri List = new Uri(Namespace + "List");
108
112 public static readonly Uri li = new Uri(Namespace + "li");
113
117 public static readonly Uri XMLLiteral = new Uri(Namespace + "XMLLiteral");
118
124 public static Uri ListItem(int Index) => new Uri(listItem + Index.ToString());
125
126 private const string listItem = Namespace + "_";
127 }
128}
static readonly Uri XMLLiteral
URI representing rdf:XMLLiteral
Definition: Rdf.cs:117
static readonly Uri nil
URI representing rdf:nil
Definition: Rdf.cs:66
static readonly Uri Alt
URI representing rdf:Alt, an unordered set of alternatives, where the first one is the default option...
Definition: Rdf.cs:102
static readonly Uri Bag
URI representing rdf:Bag, an unordered container.
Definition: Rdf.cs:96
static readonly Uri Seq
URI representing rdf:Seq, an ordered container.
Definition: Rdf.cs:91
static readonly Uri type
URI representing rdf:type
Definition: Rdf.cs:51
static readonly Uri first
URI representing rdf:first
Definition: Rdf.cs:56
static readonly Uri rest
URI representing rdf:rest
Definition: Rdf.cs:61
static readonly Uri subject
URI representing rdf:subject
Definition: Rdf.cs:71
string OntologyNamespace
Ontology namespace.
Definition: Rdf.cs:21
const string Namespace
http://www.w3.org/1999/02/22-rdf-syntax-ns#
Definition: Rdf.cs:46
static Uri ListItem(int Index)
URI representing an item in a list.
static readonly Uri li
URI representing rdf:li
Definition: Rdf.cs:112
Grade Supports(string Uri)
If the interface understands objects such as Uri .
Definition: Rdf.cs:38
string OntologyPrefix
Well-known ontology prefix.
Definition: Rdf.cs:26
static readonly Uri predicate
URI representing rdf:predicate
Definition: Rdf.cs:76
bool ShowByDefault
If the ontology should be shown by default in query interfaces.
Definition: Rdf.cs:31
static readonly Uri List
URI representing rdf:List
Definition: Rdf.cs:107
static readonly Uri Statement
URI representing rdf:Statement
Definition: Rdf.cs:86
Interface for semantic ontologies.
Definition: IOntology.cs:9
Grade
Grade enumeration
Definition: Grade.cs:7