@Test void testShouldUseRelativeIRIs() { assertTrue(JenaIOService.shouldUseRelativeIRIs(true)); assertTrue(JenaIOService.shouldUseRelativeIRIs(false, Trellis.SerializationRelative)); assertTrue(JenaIOService.shouldUseRelativeIRIs(false, Trellis.SerializationRelative, Trellis.SerializationAbsolute)); assertTrue(JenaIOService.shouldUseRelativeIRIs(true, Trellis.PreferUserManaged)); assertFalse(JenaIOService.shouldUseRelativeIRIs(false)); assertFalse(JenaIOService.shouldUseRelativeIRIs(true, Trellis.SerializationAbsolute)); assertFalse(JenaIOService.shouldUseRelativeIRIs(true, Trellis.SerializationAbsolute, Trellis.SerializationRelative)); assertFalse(JenaIOService.shouldUseRelativeIRIs(false, Trellis.PreferServerManaged)); }
static boolean shouldUseRelativeIRIs(final boolean defaultValue, final IRI... profiles) { for (final IRI profile : profiles) { if (Trellis.SerializationRelative.equals(profile)) { return true; } else if (Trellis.SerializationAbsolute.equals(profile)) { return false; } } return defaultValue; }
JenaIOService implements IOService { static boolean shouldUseRelativeIRIs(final boolean defaultValue, final IRI... profiles) { for (final IRI profile : profiles) { if (Trellis.SerializationRelative.equals(profile)) { return true; } else if (Trellis.SerializationAbsolute.equals(profile)) { return false; } } return defaultValue; } }
JenaIOService implements IOService { static boolean shouldUseRelativeIRIs(final boolean defaultValue, final IRI... profiles) { for (final IRI profile : profiles) { if (Trellis.SerializationRelative.equals(profile)) { return true; } else if (Trellis.SerializationAbsolute.equals(profile)) { return false; } } return defaultValue; } JenaIOService();  JenaIOService(final NamespaceService namespaceService);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer); @Inject  JenaIOService(final NamespaceService namespaceService,
            final RDFaWriterService htmlSerializer,
            @TrellisProfileCache final CacheService<String, String> cache); private  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Config config);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final String allowedContexts, final String allowedContextDomains,
            final boolean relativeIRIs);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Set<String> allowedContexts,
            final Set<String> allowedContextDomains, final boolean relativeIRIs); }
JenaIOService implements IOService { static boolean shouldUseRelativeIRIs(final boolean defaultValue, final IRI... profiles) { for (final IRI profile : profiles) { if (Trellis.SerializationRelative.equals(profile)) { return true; } else if (Trellis.SerializationAbsolute.equals(profile)) { return false; } } return defaultValue; } JenaIOService();  JenaIOService(final NamespaceService namespaceService);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer); @Inject  JenaIOService(final NamespaceService namespaceService,
            final RDFaWriterService htmlSerializer,
            @TrellisProfileCache final CacheService<String, String> cache); private  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Config config);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final String allowedContexts, final String allowedContextDomains,
            final boolean relativeIRIs);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Set<String> allowedContexts,
            final Set<String> allowedContextDomains, final boolean relativeIRIs); @Override List<RDFSyntax> supportedReadSyntaxes(); @Override List<RDFSyntax> supportedWriteSyntaxes(); @Override List<RDFSyntax> supportedUpdateSyntaxes(); @Override void write(final Stream<Triple> triples, final OutputStream output, final RDFSyntax syntax,
            final String baseUrl, final IRI... profiles); @Override Stream<Triple> read(final InputStream input, final RDFSyntax syntax, final String base); @Override void update(final Graph graph, final String update, final RDFSyntax syntax, final String base); }
JenaIOService implements IOService { static boolean shouldUseRelativeIRIs(final boolean defaultValue, final IRI... profiles) { for (final IRI profile : profiles) { if (Trellis.SerializationRelative.equals(profile)) { return true; } else if (Trellis.SerializationAbsolute.equals(profile)) { return false; } } return defaultValue; } JenaIOService();  JenaIOService(final NamespaceService namespaceService);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer); @Inject  JenaIOService(final NamespaceService namespaceService,
            final RDFaWriterService htmlSerializer,
            @TrellisProfileCache final CacheService<String, String> cache); private  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Config config);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final String allowedContexts, final String allowedContextDomains,
            final boolean relativeIRIs);  JenaIOService(final NamespaceService namespaceService, final RDFaWriterService htmlSerializer,
            final CacheService<String, String> cache, final Set<String> allowedContexts,
            final Set<String> allowedContextDomains, final boolean relativeIRIs); @Override List<RDFSyntax> supportedReadSyntaxes(); @Override List<RDFSyntax> supportedWriteSyntaxes(); @Override List<RDFSyntax> supportedUpdateSyntaxes(); @Override void write(final Stream<Triple> triples, final OutputStream output, final RDFSyntax syntax,
            final String baseUrl, final IRI... profiles); @Override Stream<Triple> read(final InputStream input, final RDFSyntax syntax, final String base); @Override void update(final Graph graph, final String update, final RDFSyntax syntax, final String base); static final String CONFIG_IO_JSONLD_PROFILES; static final String CONFIG_IO_JSONLD_DOMAINS; static final String CONFIG_IO_RELATIVE_IRIS; }