Hello there,

I just wanted to try out some RDF* and SPARQL* examples with arq and did not 
get the expected result.
Actually I get no result at all.

I tried with the examples listed here: 
https://jena.apache.org/documentation/rdfstar/

My data.ttl file contains

```turtle
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix : <http://example.org/> .


<< :john foaf:name "John Smith" >> dct:source <http://example/directory> .

```
My query.rq file contains:

```sparql
prefix dct: <http://purl.org/dc/terms/>
prefix foaf: <http://xmlns.com/foaf/0.1/>
prefix : <http://example.org>

SELECT ?name { <<:john foaf:name ?name >> dct:source <http://example/directory> 
}
```

I query with the following command: `arq —query=query.rq —data=data.ttl 
--results=json`

My result looks like this:

```json
{ "head": {
    "vars": [ "name" ]
  } ,
  "results": {
    "bindings": [

    ]
  }
}
```

A simple s-p-o query returns this, which made me feel like RDF* is generally 
supported by arq:

```json
{ "head": {
    "vars": [ "s" , "p" , "o" ]
  } ,
  "results": {
    "bindings": [
      {
        "s": {
          "type": "triple" ,
          "value": {
            "subject":  { "type": "uri" , "value": "http://example.org/john"; } ,
            "property": { "type": "uri" , "value": 
"http://xmlns.com/foaf/0.1/name"; } ,
            "object":   { "type": "literal" , "value": "John Smith" }
          }
        } ,
        "p": { "type": "uri" , "value": "http://purl.org/dc/terms/source"; } ,
        "o": { "type": "uri" , "value": "http://example/directory"; }
      }
    ]
  }
}

```

So I guess my SPARQL* query approach is somehow wrong, but I just can’t figure 
out.
Do you have an idea?
Thank you!

Steffen

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to