|
| RDF () throws IOException |
|
Model | getModelObject () |
|
String | getPrefixItem (String shortDesc) |
|
String | getPREFIXSPARQL () |
|
void | setModelLiteral (String subject, String predicate, String object) throws RdfException |
|
void | setModelLiteralLanguage (String subject, String predicate, String object, String lang) throws RdfException |
|
void | setModelURI (String subject, String predicate, String object) throws RdfException |
|
void | setModelTriple (String subject, String predicate, String object) throws RdfException |
|
String | getModel () throws RdfException |
|
String | getModel (String format) throws UnsupportedEncodingException, RdfException |
|
CLASS for set up a RDF graph and export it.
- Author
- Florian Thiery M.Sc.
-
i3mainz - Institute for Spatial Information and Surveying Technology
- Version
- 27.06.2015
RDF |
( |
| ) |
throws IOException |
63 model = ModelFactory.createDefaultModel();
76 Instance_VOCABULARY_ITEM =
Instance_VOCABULARY_ITEM.replace(
"$host", ConfigProperties.getPropertyParam(
"host")).replace(
"$item", ConfigProperties.getPropertyParam(
"item")).replace(
"$vocabulary", ConfigProperties.getPropertyParam(
"vocabulary"));
77 Instance_LABEL_ITEM =
Instance_LABEL_ITEM.replace(
"$host", ConfigProperties.getPropertyParam(
"host")).replace(
"$item", ConfigProperties.getPropertyParam(
"item")).replace(
"$label", ConfigProperties.getPropertyParam(
"label"));
78 Instance_AGENT_ITEM =
Instance_AGENT_ITEM.replace(
"$host", ConfigProperties.getPropertyParam(
"host")).replace(
"$item", ConfigProperties.getPropertyParam(
"item")).replace(
"$agent", ConfigProperties.getPropertyParam(
"agent"));
79 Instance_REVISION_ITEM =
Instance_REVISION_ITEM.replace(
"$host", ConfigProperties.getPropertyParam(
"host")).replace(
"$item", ConfigProperties.getPropertyParam(
"item")).replace(
"$revision", ConfigProperties.getPropertyParam(
"revision"));
81 .replace(
"$host", ConfigProperties.getPropertyParam(
"host"))
82 .replace(
"$item", ConfigProperties.getPropertyParam(
"item"))
83 .replace(
"$vocabulary", ConfigProperties.getPropertyParam(
"vocabulary"))
84 .replace(
"$label", ConfigProperties.getPropertyParam(
"label"))
85 .replace(
"$agent", ConfigProperties.getPropertyParam(
"agent"))
86 .replace(
"$revision", ConfigProperties.getPropertyParam(
"revision"));
References ConfigProperties.getPropertyParam(), RDF.Instance_AGENT_ITEM, RDF.Instance_LABEL_ITEM, RDF.Instance_REVISION_ITEM, RDF.Instance_VOCABULARY_ITEM, RDF.model, RDF.PREFIX_DCAT, RDF.PREFIX_DCELEMENTS, RDF.PREFIX_DCTERMS, RDF.PREFIX_FOAF, RDF.PREFIX_GEO, RDF.PREFIX_LABELINGSYSTEM, RDF.PREFIX_OWL, RDF.PREFIX_PROV, RDF.PREFIX_RDF, RDF.PREFIX_RDFS, RDF.PREFIX_SKOS, RDF.PREFIX_XSD, and RDF.PREFIXSPARQL.
String getPrefixItem |
( |
String |
shortDesc | ) |
|
94 if (shortDesc.startsWith(
"ls:")) {
96 }
else if (shortDesc.startsWith(
"skos:")) {
98 }
else if (shortDesc.startsWith(
"dct:")) {
100 }
else if (shortDesc.startsWith(
"dc:")) {
102 }
else if (shortDesc.startsWith(
"rdfs:")) {
104 }
else if (shortDesc.startsWith(
"owl:")) {
106 }
else if (shortDesc.startsWith(
"rdf:")) {
108 }
else if (shortDesc.startsWith(
"foaf:")) {
110 }
else if (shortDesc.startsWith(
"prov:")) {
112 }
else if (shortDesc.startsWith(
"xsd:")) {
114 }
else if (shortDesc.startsWith(
"geo:")) {
116 }
else if (shortDesc.startsWith(
"dcat:")) {
118 }
else if (shortDesc.startsWith(
"ls_voc:")) {
120 }
else if (shortDesc.startsWith(
"ls_lab:")) {
122 }
else if (shortDesc.startsWith(
"ls_age:")) {
124 }
else if (shortDesc.startsWith(
"ls_rev:")) {
References RDF.Instance_AGENT_ITEM, RDF.Instance_LABEL_ITEM, RDF.Instance_REVISION_ITEM, RDF.Instance_VOCABULARY_ITEM, RDF.PREFIX_DCAT, RDF.PREFIX_DCELEMENTS, RDF.PREFIX_DCTERMS, RDF.PREFIX_FOAF, RDF.PREFIX_GEO, RDF.PREFIX_LABELINGSYSTEM, RDF.PREFIX_OWL, RDF.PREFIX_PROV, RDF.PREFIX_RDF, RDF.PREFIX_RDFS, RDF.PREFIX_SKOS, and RDF.PREFIX_XSD.
Referenced by RDF.setModelLiteral(), RDF.setModelLiteralLanguage(), and RDF.setModelURI().