Skip to content

Archive from an API response #554

@kvistgaard

Description

@kvistgaard

I'm trying to triplify the contents of a zip file served from an open API, following the approach described for a local archive.

The zip is successfully triplified at the zip/file level but not at file/content level. In other words, the first SERVICE clause in the following query works, but the second throws an error that it cannot find the archiver

PREFIX xyz: <http://sparql.xyz/facade-x/data/>
PREFIX fx:  <http://sparql.xyz/facade-x/ns/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>


CONSTRUCT {
    ?s1 ?p1 ?o1 .
}

WHERE {
  SERVICE <x-sparql-anything:> {
    fx:properties
    fx:location     "https://oeffentlichevergabe.de/api/notice-exports?pubDay=2024-12-12" ;
    fx:media-type   "application/zip" ;
    fx:archive.matches ".*xml" .

?s fx:anySlot ?file .

 SERVICE <x-sparql-anything:> {

      fx:properties
        fx:location  ?file ;
        fx:from-archive "https://oeffentlichevergabe.de/api/notice-exports?pubDay=2024-12-12".
       ?s1 ?p1 ?o1
    }
  }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions