Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
XmlSchema.cs
1using System;
3
5{
9 public class XmlSchema : IOntology
10 {
14 public XmlSchema()
15 {
16 }
17
21 public string OntologyNamespace => Namespace;
22
26 public string OntologyPrefix => "xsd";
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/2001/XMLSchema#";
47
51 public static readonly Uri base64Binary = new Uri(Namespace + "base64Binary");
52
56 public static readonly Uri boolean = new Uri(Namespace + "boolean");
57
61 public static readonly Uri date = new Uri(Namespace + "date");
62
66 public static readonly Uri dateTime = new Uri(Namespace + "dateTime");
67
71 public static readonly Uri dayTimeDuration = new Uri(Namespace + "dayTimeDuration");
72
76 public static readonly Uri @decimal = new Uri(Namespace + "decimal");
77
81 public static readonly Uri @double = new Uri(Namespace + "double");
82
86 public static readonly Uri duration = new Uri(Namespace + "duration");
87
91 public static readonly Uri @short = new Uri(Namespace + "short");
92
96 public static readonly Uri @int = new Uri(Namespace + "int");
97
101 public static readonly Uri @long = new Uri(Namespace + "long");
102
106 public static readonly Uri @byte = new Uri(Namespace + "byte");
107
111 public static readonly Uri integer = new Uri(Namespace + "integer");
112
116 public static readonly Uri @float = new Uri(Namespace + "float");
117
121 public static readonly Uri @string = new Uri(Namespace + "string");
122
126 public static readonly Uri time = new Uri(Namespace + "time");
127
131 public static readonly Uri unsignedShort = new Uri(Namespace + "unsignedShort");
132
136 public static readonly Uri unsignedInt = new Uri(Namespace + "unsignedInt");
137
141 public static readonly Uri unsignedLong = new Uri(Namespace + "unsignedLong");
142
146 public static readonly Uri unsignedByte = new Uri(Namespace + "unsignedByte");
147
151 public static readonly Uri anyURI = new Uri(Namespace + "anyURI");
152 }
153}
static readonly Uri integer
http://www.w3.org/2001/XMLSchema#byte
Definition: XmlSchema.cs:111
static readonly Uri unsignedByte
http://www.w3.org/2001/XMLSchema#unsignedByte
Definition: XmlSchema.cs:146
Grade Supports(string Uri)
If the interface understands objects such as Uri .
Definition: XmlSchema.cs:38
const string Namespace
http://www.w3.org/2001/XMLSchema#
Definition: XmlSchema.cs:46
string OntologyNamespace
Ontology namespace.
Definition: XmlSchema.cs:21
static readonly Uri duration
http://www.w3.org/2001/XMLSchema#duration
Definition: XmlSchema.cs:86
static readonly Uri dateTime
http://www.w3.org/2001/XMLSchema#boolean
Definition: XmlSchema.cs:66
static readonly Uri base64Binary
http://www.w3.org/2001/XMLSchema#base64Binary
Definition: XmlSchema.cs:51
static readonly Uri unsignedShort
http://www.w3.org/2001/XMLSchema#unsignedShort
Definition: XmlSchema.cs:131
static readonly Uri unsignedInt
http://www.w3.org/2001/XMLSchema#unsignedInt
Definition: XmlSchema.cs:136
static readonly Uri dayTimeDuration
http://www.w3.org/2001/XMLSchema#dayTimeDuration
Definition: XmlSchema.cs:71
static readonly Uri decimal
http://www.w3.org/2001/XMLSchema#decimal
Definition: XmlSchema.cs:76
bool ShowByDefault
If the ontology should be shown by default in query interfaces.
Definition: XmlSchema.cs:31
static readonly Uri unsignedLong
http://www.w3.org/2001/XMLSchema#unsignedLong
Definition: XmlSchema.cs:141
string OntologyPrefix
Well-known ontology prefix.
Definition: XmlSchema.cs:26
static readonly Uri anyURI
http://www.w3.org/2001/XMLSchema#anyURI
Definition: XmlSchema.cs:151
static readonly Uri time
http://www.w3.org/2001/XMLSchema#time
Definition: XmlSchema.cs:126
static readonly Uri date
http://www.w3.org/2001/XMLSchema#date
Definition: XmlSchema.cs:61
Interface for semantic ontologies.
Definition: IOntology.cs:9
Grade
Grade enumeration
Definition: Grade.cs:7