My aim is to be able to perform the following kind of queries within Virtuoso, without being dependent on whether DBpedia's SPARQL endpoint is currently up or not:
SELECT ?label WHERE {
?prop rdfs:domain <http://dbpedia.org/ontology/SpaceMission> .
?prop rdfs:label ?label .
FILTER (lang(?label) = 'en')
}
The problem is that I cannot seem to be able to identify the correct data set to download that would also include the labels of these properties. I currently have the mapping-based properties installed: http://downloads.dbpedia.org/3.9/en/mappingbased_properties_en.nt.bz2 and I do get the properties but there are no property labels there.
Is there another installation I am missing or is the only way to query that data from DBpedia's live endpoint?
Related
I am trying to make a map with drill down levels (outside of the US) and am running into some issues. I understand that it should be possible to, in the geospatial field, add multiple levels of geolocations. I have made "coordinates" (hierarchies) of latitudes and longitudes but have not been able to add them at the same time. A single hierarchy on its own does what I expect but multiple ones does not seem to be possible.
Because of this I have been trying to figure out a workaround where I make a custom calculated field that changes which latitude/longitude information it outputs depending on an outside parameter. This is however not recognised as latitude/longitude by Quicksight and I am not allowed to add it to the geospatial field well.
ifelse(
${MapDrillDownLevel} = 'Region', {region_latitude},
${MapDrillDownLevel} = 'City', {city_latitude},
${MapDrillDownLevel} = 'Block', {block_latitude},
1 /*Default value shouldn't be reached*/
)
So, the questions are:
Why doesn't Quicksight allow me to add a drill down level here?
How can I make Quicksight recognise my custom calculated field as geospatial information?
Is there a better way of doing this?
I want a lookup service for Wikidata similiar to what DBpedia lookup (https://lookup.dbpedia.org/) is for dbpedia but for Wikidata.
Because I didn't find any I try to create a query which searches the labels of Wikidata.
Here is my problem. I have this object https://www.wikidata.org/wiki/Q67639471 (Standards of Conduct Committee - Fourth Assembly)
The following Sparql query should find the object shouldn't it?
select distinct ?o ?oLabel where {
?o rdfs:label ?oLabel.
filter(contains(?oLabel, "Standards of Conduct Committee - Fourth Assembly"#en)).
}
But the query times out everytime. When I add the line ?o wdt:P31 wd:Q865588.(?o is an instance of comitee) then it finds it.
Why doesn't the query find the exiting object?
Does anybody know how to make or find such a lookup service?
I want to get Features corresponding to search text based on properties present in geojsons from geoserver. Search should be performed on value of each property from properties in geojson.
There are some ways I found to filter results with use of cql_filters but in order to perform global search on every attribute I need to send a request to filter on a parameter.
Is there a way by which I can get all shape files matching my search text from every layer present in a workspace of geoserver.
#Raviraj-walke Please go through the geoserver discussion forum. There is a topic that discuss this problem https://sourceforge.net/p/geoserver/mailman/message/25471393/
I am trying to find entities from text using stanford NER. It is working fine so far. Now I want to find the dbpedia link of the entities.
I have seen it is available in alchemy API.
Is it possible to find the dbpedia links of entities using stanford NER?
Normally all the entities in Dbpedia have rdfs:label that is a string assigned to the entity. Therefore, when you are faced with a name extracted by your NER, you can use it for filtering purposes. The following example will provide he URI of all the entities that have label Sulfuric acid:
select distinct *
where {
?URI rdfs:label ?name.
filter(str(?name)="Sulfuric acid")
}
However, labels are not always what you seek, you sometimes need to actually look for the name assigned to your URI. For example, if you open sulfuric acid page, you can see that it contains dbpprop:iupacname. As a result you need to change the query to:
select distinct *
where {
?URI dbpprop:iupacname ?name.
filter(str(?name)="Sulfuric acid")
}
In this particular example the result sets are the same. But imagine you are tasked with finding London then you need to change your property to foaf:name and when running both the following queries, the result sets are quite different.
select distinct *
where {
?URI rdfs:label ?name.
filter(str(?name)="London")
}
this contains 8 results while the following query contains 21 results.
select distinct *
where {
?URI foaf:name ?name.
filter(str(?name)="London")
}
So my point is that you need to decide if you want to use labels or names. And if you decide to use names, you need to find the appropriate property to write a SPARQL query. After that, you just need a method to access DBpedia with your query.
You can use Stanford NER to extract the entity names and DBpedia Spotlight to link to the DBpedia URIs.
I've created a view that utilizes Search API integration and allows searching node fields. I have related content to ol_locator_location (Location) which is comprised of Address and GeoField. I have indexed the GeoField (ALL possibile iterations including WKT). I'd like to perform Proximity (Distance) searches against the indexed nodes based on the WKT data that is available. The problem is that GeoField:Proximity doesn't seem to relate well.
I'm able to add the GeoField of the related nodes and I'm able to see this on the OpenLayers map but I'm not offered any option for Proximity searching. How can I get this working?
You need to use the search_api_location module. That module adds new abilities to your geopoint filter, namely, being able to specify a point and search for nearby (proximity) places based on a radius.
Alternatively, if you like to program, you can query the solr search yourself and create the view you want using PHP or Javascript.
http://wiki.apache.org/solr/SpatialSearch
http://docs.lucidworks.com/display/solr/Spatial+Search