Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress JCR types from RDF representation #935

Closed
wants to merge 2 commits into from
Closed

suppress JCR types from RDF representation #935

wants to merge 2 commits into from

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Nov 1, 2015

@@ -35,12 +41,25 @@

private static final Model model = createDefaultModel();

private static final Set<URI> managedTypes = of(
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to try to reconcile the following as opposed to propagating more flavors of managed and internal and protected, etc:

FedoraTypesUtils.isProtectedAndShouldBeHidden
FedoraTypesUtils.EXPOSED_PROTECTED_JCR_TYPES
FedoraTypesUtils.isSuppressedProperty
FedoraTypesUtils.isInternalProperty
FedoraTypesUtils.isInternalNode

ManagedRdf.isManagedTriple
ManagedRdf.isManagedMixin

RdfLexicon.isManagedPredicate
RdfLexicon.isManagedPredicateURI
RdfLexicon.managedProperties
RdfLexicon.isManagedNamespace
RdfLexicon.managedNamespaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we understand what we mean by "managed" and "internal"? Do those qualities overlap?

/**
* No public constructor on utility class
*/
private ManagedRdf() {
}

public static final Predicate<URI> isManagedType =
p -> managedTypes.contains(p);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just isManagedType = managedTypes::contains. Do we even need the constant?

@acoburn
Copy link
Contributor Author

acoburn commented Nov 3, 2015

This PR has been updated. A question though -- I could have added many of the jcr-related properties and types to FedoraJcrTypes (e.g. mix:created, jcr:uuid, nt:base); however, I don't think these values should be defined in the fcrepo-kernel-api module at all.

In my opinion, the FedoraJcrTypes interface should be renamed to FedoraTypes and all of the MODE- and JCR-related properties moved into the fcrepo-kernel-modeshape module. But that should be part of a separate PR.

@ajs6f
Copy link
Contributor

ajs6f commented Nov 3, 2015

👍 to moving all JCR stuff to -modeshape.

@awoods
Copy link

awoods commented Nov 4, 2015

Resolved with: 0014cd7

@awoods awoods closed this Nov 4, 2015
@acoburn acoburn deleted the fcrepo-1541 branch November 6, 2015 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants