@@ -34,7 +34,7 @@ public class Metadata {
3434
3535 private final URI acl ;
3636 private final URI storage ;
37- private final Set <URI > type = new HashSet <>();
37+ private final Set <URI > types = new HashSet <>();
3838 private final Map <String , Set <String >> wacAllow = new HashMap <>();
3939 private final Set <String > allowedMethods = new HashSet <>();
4040 private final Set <String > allowedPatchSyntaxes = new HashSet <>();
@@ -58,9 +58,23 @@ public Optional<URI> getStorage() {
5858 * {@code rdf:type} data explicitly set on a resource.
5959 *
6060 * @return the type values for a resource
61+ * @deprecated as of Beta3, please use the {@link #getTypes} method
6162 */
63+ @ Deprecated
6264 public Set <URI > getType () {
63- return type ;
65+ return getTypes ();
66+ }
67+
68+ /**
69+ * The Solid Resource types.
70+ *
71+ * <p>This data typically comes from HTTP Link headers and may be different than
72+ * {@code rdf:type} data explicitly set on a resource.
73+ *
74+ * @return the type values for a resource
75+ */
76+ public Set <URI > getTypes () {
77+ return types ;
6478 }
6579
6680 /**
@@ -294,7 +308,7 @@ public Builder contentType(final String type) {
294308 public Metadata build () {
295309 final Metadata metadata = new Metadata (builderStorage , builderAcl , builderContentType );
296310 metadata .wacAllow .putAll (builderWacAllow );
297- metadata .type .addAll (builderType );
311+ metadata .types .addAll (builderType );
298312 metadata .allowedMethods .addAll (builderAllowedMethods );
299313 metadata .allowedPatchSyntaxes .addAll (builderAllowedPatchSyntaxes );
300314 metadata .allowedPostSyntaxes .addAll (builderAllowedPostSyntaxes );
0 commit comments