25 #ifndef DAPXMLNAMSPACES_H_ 26 #define DAPXMLNAMSPACES_H_ 32 enum DAPVersion { DAP_2_0, DAP_3_2, DAP_4_0 };
44 return "http://www.w3.org/2001/XMLSchema-instance";
51 return "http://www.w3.org/XML/1998/namespace";
61 throw InternalErr(__FILE__, __LINE__,
"DapXmlNamspaces::getDapXmlNamespaceString() - GRDDL Transformation undefined for DAP 2.0");
65 return "http://xml.opendap.org/transforms/ddxToRdfTriples.xsl";
69 throw InternalErr(__FILE__, __LINE__,
"DapXmlNamspaces::getDapXmlNamespaceString() - GRDDL Transformation undefined for DAP 4.0");
73 throw InternalErr(__FILE__, __LINE__,
"DapXmlNamspaces::getDapXmlNamespaceString() - Unrecognized namespace version.");
88 return "http://xml.opendap.org/ns/DAP2";
92 return "http://xml.opendap.org/ns/DAP/3.2#";
96 return "http://xml.opendap.org/ns/DAP/4.0#";
100 throw InternalErr(__FILE__, __LINE__,
"DapXmlNamspaces::getDapXmlNamespaceString() - Unrecognized namespace version.");
112 return "http://xml.opendap.org/dap/dap2.xsd";
116 return "http://xml.opendap.org/dap/dap3.2.xsd";
120 return "http://xml.opendap.org/dap/dap4.0.xsd";
124 throw InternalErr(__FILE__, __LINE__,
"DapXmlNamspaces::getSchemaLocationString() - Unrecognized namespace version.");
static std::string getGrddlTransformation(DAPVersion version)
static std::string getSchemaLocationDeclarationString(DAPVersion version)
static std::string getSchemaLocationString(DAPVersion version)
top level DAP object to house generic methods
A class for software fault reporting.
static std::string getDapNamespaceString(DAPVersion version)
static std::string getXmlXsiNamespace()
static std::string getXmlNamespace()