Package com.iotics.api
Enum Class SparqlResultType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SparqlResultType>,Constable
public enum SparqlResultType
extends Enum<SparqlResultType>
implements com.google.protobuf.ProtocolMessageEnum
SparqlResultType defines the result content types for SPARQL requests. Note that applicable content types depend on the type of query.Protobuf enum
iotics.api.SparqlResultType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionApplicable to CONSTRUCT/DESCRIBE (RDF 1.1 N-Triples)Applicable to CONSTRUCT/DESCRIBE (Terse RDF Triple Language)Applicable to CONSTRUCT/DESCRIBE (RDF 1.1 XML)Applicable to SELECT/ASK (SPARQL 1.1.Applicable to SELECT/ASK (SPARQL 1.1 Query Results JSON Format)Applicable to SELECT/ASK (SPARQL 1.1 Query Results XML Format) -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intApplicable to CONSTRUCT/DESCRIBE (RDF 1.1 N-Triples)static final intApplicable to CONSTRUCT/DESCRIBE (Terse RDF Triple Language)static final intApplicable to CONSTRUCT/DESCRIBE (RDF 1.1 XML)static final intApplicable to SELECT/ASK (SPARQL 1.1.static final intApplicable to SELECT/ASK (SPARQL 1.1 Query Results JSON Format)static final intApplicable to SELECT/ASK (SPARQL 1.1 Query Results XML Format) -
Method Summary
Modifier and TypeMethodDescriptionstatic SparqlResultTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SparqlResultType>static SparqlResultTypevalueOf(int value) Deprecated.static SparqlResultTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static SparqlResultTypeReturns the enum constant of this class with the specified name.static SparqlResultType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPARQL_JSON
Applicable to SELECT/ASK (SPARQL 1.1 Query Results JSON Format)
SPARQL_JSON = 0; -
SPARQL_XML
Applicable to SELECT/ASK (SPARQL 1.1 Query Results XML Format)
SPARQL_XML = 1; -
SPARQL_CSV
Applicable to SELECT/ASK (SPARQL 1.1. Query Results CSV Format)
SPARQL_CSV = 2; -
RDF_TURTLE
Applicable to CONSTRUCT/DESCRIBE (Terse RDF Triple Language)
RDF_TURTLE = 3; -
RDF_XML
Applicable to CONSTRUCT/DESCRIBE (RDF 1.1 XML)
RDF_XML = 4; -
RDF_NTRIPLES
Applicable to CONSTRUCT/DESCRIBE (RDF 1.1 N-Triples)
RDF_NTRIPLES = 5; -
UNRECOGNIZED
-
-
Field Details
-
SPARQL_JSON_VALUE
public static final int SPARQL_JSON_VALUEApplicable to SELECT/ASK (SPARQL 1.1 Query Results JSON Format)
SPARQL_JSON = 0;- See Also:
-
SPARQL_XML_VALUE
public static final int SPARQL_XML_VALUEApplicable to SELECT/ASK (SPARQL 1.1 Query Results XML Format)
SPARQL_XML = 1;- See Also:
-
SPARQL_CSV_VALUE
public static final int SPARQL_CSV_VALUEApplicable to SELECT/ASK (SPARQL 1.1. Query Results CSV Format)
SPARQL_CSV = 2;- See Also:
-
RDF_TURTLE_VALUE
public static final int RDF_TURTLE_VALUEApplicable to CONSTRUCT/DESCRIBE (Terse RDF Triple Language)
RDF_TURTLE = 3;- See Also:
-
RDF_XML_VALUE
public static final int RDF_XML_VALUEApplicable to CONSTRUCT/DESCRIBE (RDF 1.1 XML)
RDF_XML = 4;- See Also:
-
RDF_NTRIPLES_VALUE
public static final int RDF_NTRIPLES_VALUEApplicable to CONSTRUCT/DESCRIBE (RDF 1.1 N-Triples)
RDF_NTRIPLES = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-