Help importing N-Quads (.nq) RDF file into Dgraph

Welcome @JoaoRodrigues!
Please try this:

{
   query(func: has(<http://www.w3.org/2004/02/skos/core#hasTopConcept>)) {
        uid
        <http://purl.org/dc/terms/title>@en
        <http://purl.org/dc/terms/created>
        <http://purl.org/dc/terms/creator>
        <http://www.w3.org/2004/02/skos/core#hasTopConcept>{
          <http://www.w3.org/2004/02/skos/core#prefLabel>@en
    }
  }
}

You should get results like this:

{
  "data": {
    "query": [
      {
        "uid": "0x2",
        "http://purl.org/dc/terms/title@en": "Home",
        "http://purl.org/dc/terms/created": "2020-12-01T17:17:18.36Z",
        "http://www.w3.org/2004/02/skos/core#hasTopConcept": [
          {
            "http://www.w3.org/2004/02/skos/core#prefLabel@en": "Text Text F"
          }
        ]
      }
    ]
  }
}
1 Like