Questions tagged [sparql-generate]

SPARQL-Generate is an extension of SPARQL 1.1 for querying not only RDF datasets but also documents in arbitrary formats. It offers a simple template-based option to generate RDF Graphs from documents and different streams.

SPARQL-Generate is an extension of SPARQL 1.1 for querying not only RDF datasets but also documents in arbitrary formats. It offers a simple template-based option to generate RDF Graphs from documents and different streams. It presents the following advantages:

  • Anyone familiar with SPARQL can easily learn SPARQL-Generate;
  • SPARQL-Generate leverages the expressivity of SPARQL 1.1: Aggregates, Solution Sequences and Modifiers, SPARQL functions and their extension mechanism.
  • It integrates seamlessly with existing standards for consuming Semantic Web data, such as SPARQL or Semantic Web programming frameworks.
8 questions
3
votes
3 answers

Converting a CSV to RDF where one column is a set of values

I want to convert a CSV to RDF. One of the column of that CSV is, in fact, a set of values joined with a separator character (in my case, the space character). Here is a sample CSV (with header): col1,col2,col3 "A","B C D","John" "M","X Y…
lOlive
  • 209
  • 1
  • 5
1
vote
1 answer

Count column values in SPARQL

I am writing a query in SPARQL for a knowledge graph. I have a column having Country and names of countries repeating. For example: Japan, India, US, India, India, US, US, Romania etc. and so on. I need to write a SPARQL query that gives me the…
Rahul
  • 11
  • 2
1
vote
1 answer

I can't change output of CONSTRUCT Query - concat doesn't work as expected

I use Protege v5.5.0 to create a query from RDF/XML file with the content:
andsemenov
  • 51
  • 8
0
votes
0 answers

How to output multiple types in Sparql? With minimal system load

Using this code, the system takes a long time to boot. With three types, the processing was 23 minutes. How to simplify it? So that the system can process the request faster. PREFIX cim: SELECT ?type…
0
votes
0 answers

Selecting from different csv in SPARQL

Hi I have two csv data sources. The csv contains name of employees. csv1 with heading: Name Contents: Jack, Tom, Andy, Jim, Stella. csv2 with heading: EmployeeName Contents: Bella, Stefan, Jim, Cathy, Jack Now I need a SPARQL query, where I can…
Rahul
  • 11
  • 2
0
votes
1 answer

Make case insensitive in SPARQL

I am creating a knowledge graph in SPARQL. I am importing data from a csv file. Now I want to filter a data corresponding to a country. In the csv I don't want to make data in column to all lower or upper case. Now I want to filter a data, such that…
Rahul
  • 11
  • 2
0
votes
0 answers

Sparql, distance and very long response times

I am using sparql in a spring boot project. I created a query that will calculate the distance and then filter if the distance is less than x. However, I have a very long processing time (around 2 seconds, sometimes +). On my computer I have 32GB of…
0
votes
0 answers

Sparql Query to fetch and delete duplicate records

in allegro-graph database i have created an rdf type Product which has id, barcode, name predicates. Barcode is made as optional. Here in database, there are multiple duplicate records for barcode (which of type string). Now, i want to fetch the…
Pallavi
  • 1
  • 2