SELECT ?column ?dataTypeFROM <file:dataset.csv>WHERE {}
SELECT ?column ?dataTypeFROM <file:dataset.csv>WHERE {
...
VALUES(?column ?dataType){(<a> xsd:string)(<b> xsd:float)(<c> xsd:string) .. (<z> xsd:URI)}
}
--
You received this message because you are subscribed to the Google Groups "Tarql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tarql+un...@googlegroups.com.
To post to this group, send email to ta...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tarql/e2c19891-dac6-4b8e-87ce-f0efa97eaf6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tarql/01652289-2d63-409b-b151-9bc786f4ae6b%40googlegroups.com.
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX qb: <http://purl.org/linked-data/cube#>
PREFIX prov: <http://www.w3.org/ns/prov#>
CONSTRUCT{
?Observation a qb:Observation ;
qb:dataSet ?Dataset ;
#repeat for each column
?Component_n_property ?Value_n .
}
FROM <file:dataset.csv>
WHERE {
BIND(<dataset> as ?Dataset)
BIND(<dataset/observation/rownum> as ?Observation)
#repeat for each column
BIND (<property_n> as ?Component_n_property)
BIND (<mappingformula>(<value_n> )as ?Value_n)
}
SELECT ?columnFROM <file:dataset.csv>WHERE {}
This would provide enough information to initialize the grid
CONSTRUCT{
?Observation a qb:Observation ;
qb:dataSet ?Dataset ;
#repeat for each column
?Component_n_property ?Value_n .
}
FROM <file:dataset.csv>
WHERE {
BIND(<dataset> as ?Dataset)
BIND(<dataset/observation/rownum> as ?Observation)
#repeat for each column
BIND (<property_n> as ?Component_n_property)
BIND (<mappingformula>(<value_n> )as ?Value_n)
}
Since the intention would be to directly load this into another triple store, one could speculate on a combined insert and service call to TARQL endpoint (not syntactically correct)
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX qb: <http://purl.org/linked-data/cube#>PREFIX prov: <http://www.w3.org/ns/prov#>
INSERT {
?Observation a qb:Observation ;qb:dataSet ?Dataset ;#repeat for each column?Component_n_property ?Value_n .}
WHERE {SERVICE <TARQL Endpoint>{FROM <file:dataset.csv>
BIND(<dataset> as ?Dataset)BIND(<dataset/observation/rownum> as ?Observation)#repeat for each columnBIND (<property_n> as ?Component_n_property)BIND (<mappingformula>(<value_n> )as ?Value_n)}}
INSERT {?Observation a qb:Observation ;qb:dataSet ?Dataset ;#repeat for each column?Component_n_property ?Value_n .}WHERE {
SERVICE<tarql#dataset.csv> {SELECT ?Dataset ?Observation ?Component_n_property ?Value_n
WHERE {BIND(<dataset> as ?Dataset)BIND(<dataset/observation/rownum> as ?Observation)#repeat for each columnBIND (<property_n> as ?Component_n_property)BIND (<mappingformula>(<value_n> )as ?Value_n)
Thanks} LIMIT 10}}