@ApplicationScoped public class JenaIOService extends Object implements IOService
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_IO_JSONLD_DOMAINS
The configuration key listing valid JSON-LD profile domains.
|
static String |
CONFIG_IO_JSONLD_PROFILES
The configuration key listing valid JSON-LD profile documents.
|
Constructor and Description |
---|
JenaIOService()
Create a serialization service.
|
JenaIOService(NamespaceService namespaceService)
Create a serialization service.
|
JenaIOService(NamespaceService namespaceService,
RDFaWriterService htmlSerializer)
Create a serialization service.
|
JenaIOService(NamespaceService namespaceService,
RDFaWriterService htmlSerializer,
CacheService<String,String> cache)
Create a serialization service.
|
JenaIOService(NamespaceService namespaceService,
RDFaWriterService htmlSerializer,
CacheService<String,String> cache,
Set<String> whitelist,
Set<String> whitelistDomains)
Create a serialization service.
|
JenaIOService(NamespaceService namespaceService,
RDFaWriterService htmlSerializer,
CacheService<String,String> cache,
String whitelist,
String whitelistDomains)
Create a serialization service.
|
Modifier and Type | Method and Description |
---|---|
Stream<Triple> |
read(InputStream input,
RDFSyntax syntax,
String base)
Read an input stream into a stream of triples.
|
List<RDFSyntax> |
supportedReadSyntaxes()
Retrieve the set of valid syntaxes for read operations.
|
List<RDFSyntax> |
supportedUpdateSyntaxes()
Retrieve the set of valid syntaxes for update operations.
|
List<RDFSyntax> |
supportedWriteSyntaxes()
Retrieve the set of valid syntaxes for write operations.
|
void |
update(Graph graph,
String update,
RDFSyntax syntax,
String base)
Apply a Sparql-Update operation over a Graph.
|
void |
write(Stream<Triple> triples,
OutputStream output,
RDFSyntax syntax,
IRI... profiles)
Serialize the triple stream in a concrete RDF syntax.
|
public static final String CONFIG_IO_JSONLD_PROFILES
public static final String CONFIG_IO_JSONLD_DOMAINS
public JenaIOService()
public JenaIOService(NamespaceService namespaceService)
namespaceService
- the namespace servicepublic JenaIOService(NamespaceService namespaceService, RDFaWriterService htmlSerializer)
namespaceService
- the namespace servicehtmlSerializer
- the HTML serializer service@Inject public JenaIOService(NamespaceService namespaceService, RDFaWriterService htmlSerializer, @CacheService.TrellisProfileCache CacheService<String,String> cache)
namespaceService
- the namespace servicehtmlSerializer
- the HTML serializer servicecache
- a cache for custom JSON-LD profile resolutionpublic JenaIOService(NamespaceService namespaceService, RDFaWriterService htmlSerializer, CacheService<String,String> cache, String whitelist, String whitelistDomains)
namespaceService
- the namespace servicehtmlSerializer
- the HTML serializer servicecache
- a cache for custom JSON-LD profile resolutionwhitelist
- a whitelist of JSON-LD profileswhitelistDomains
- a whitelist of JSON-LD profile domainspublic JenaIOService(NamespaceService namespaceService, RDFaWriterService htmlSerializer, CacheService<String,String> cache, Set<String> whitelist, Set<String> whitelistDomains)
namespaceService
- the namespace servicehtmlSerializer
- the HTML serializer servicecache
- a cache for custom JSON-LD profile resolutionwhitelist
- a whitelist of JSON-LD profileswhitelistDomains
- a whitelist of JSON-LD profile domainspublic List<RDFSyntax> supportedReadSyntaxes()
IOService
supportedReadSyntaxes
in interface IOService
public List<RDFSyntax> supportedWriteSyntaxes()
IOService
supportedWriteSyntaxes
in interface IOService
public List<RDFSyntax> supportedUpdateSyntaxes()
IOService
supportedUpdateSyntaxes
in interface IOService
public void write(Stream<Triple> triples, OutputStream output, RDFSyntax syntax, IRI... profiles)
IOService
public Stream<Triple> read(InputStream input, RDFSyntax syntax, String base)
IOService