public static final java.lang.String |
SPARQL_ALL_GRAPHS |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT DISTINCT ?g WHERE {graph ?g {?s ?p ?o }.}" |
public static final java.lang.String |
SPARQL_ALL_NEEDS |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE { ?need won:hasContent ?x; won:isInState ?state. ?x dc:description ?desc; won:hasTag ?tag; dc:title ?title. ?x won:hasContentDescription ?y. OPTIONAL {?y won:hasLocationSpecification ?loc. ?loc won:hasAddress ?address; geo:latitude ?lat; geo:longitude ?lng.} OPTIONAL {?y won:hasTimespecification ?time. ?time won:hasEndTime ?endtime; won:hasStartTime ?starttime; won:hasRecurInfiniteTimes ?recinf; won:hasRecursIn ?recin.}}" |
public static final java.lang.String |
SPARQL_ALL_TRIPLES |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE { graph ?g {?s ?p ?o} . }" |
public static final java.lang.String |
SPARQL_CONNECTIONS_FILTERED_BY_NEED_URI |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE { ?need won:hasConnections ?connections. ?connections rdfs:member ?connection. ?connection won:hasConnectionState ?state; won:hasRemoteNeed ?remoteNeed; won:belongsToNeed ?localNeed. FILTER (?need in (::need::))}" |
public static final java.lang.String |
SPARQL_NEED2 |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE{?connection won:hasEventContainer ?container. ?container rdfs:member ?event. ?event won:hasTextMessage ?text.}" |
public static final java.lang.String |
SPARQL_NEEDS_AND_CONNECTIONS |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT ?need ?connection ?need2 ?stateWHERE {?need won:hasConnections ?connections .?connections rdfs:member ?connection .?connection won:hasRemoteNeed ?need2;won:hasConnectionState ?state.}" |
public static final java.lang.String |
SPARQL_NEEDS_FILTERED_BY_URI |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE { ?need won:hasContent ?x; won:isInState ?state. ?x dc:description ?desc; won:hasTag ?tag; dc:title ?title. ?x won:hasContentDescription ?y. OPTIONAL {?y won:hasLocationSpecification ?loc. ?loc won:hasAddress ?address; geo:latitude ?lat; geo:longitude ?lng.} OPTIONAL {?y won:hasTimespecification ?time. ?time won:hasEndTime ?endtime; won:hasStartTime ?starttime; won:hasRecurInfiniteTimes ?recinf; won:hasRecursIn ?recin.}FILTER (?need in (::need::))}" |
public static final java.lang.String |
SPARQL_PREFIX |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>" |
public static final java.lang.String |
SPARQL_TEXTMESSAGES_BY_CONNECTION_ORDERED_BY_TIMESTAMP |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>SELECT * WHERE { graph ?g { ?s won:hasTextMessage ?msg .} graph ?g2 { ?s msg:hasReceivedTimestamp ?timestamp} graph ?g3 { ?s msg:hasSenderNeed ?needUri }} ORDER BY DESC(?timestamp)" |
public static final java.lang.String |
SPARQL_UPDATE_STATE_FOR_NEED |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>DELETE {GRAPH ?graph {::need:: won:isInState ?state.}} INSERT {GRAPH ?graph {::need:: won:isInState ::state::}} WHERE {GRAPH ?graph{::need:: won:isInState ?state.}}" |
public static final java.lang.String |
SPARQL_UPDATE_TITLE_OF_NEED |
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX won: <http://purl.org/webofneeds/model#>PREFIX gr: <http://purl.org/goodrelations/v1#>PREFIX sioc: <http://rdfs.org/sioc/ns#>PREFIX ldp: <http://www.w3.org/ns/ldp#>PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX msg: <http://purl.org/webofneeds/message#>DELETE {GRAPH ?graph {?content dc:title ?title.}} INSERT {GRAPH ?graph {?content dc:title \"::title::\"}} WHERE {GRAPH ?graph {::need:: won:hasContent ?content. ?content dc:title ?title.}}" |