Closed (fixed)
Project:
RDF Extensions
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Mar 2011 at 17:41 UTC
Updated:
3 Jan 2014 at 02:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Blooniverse commented... I am referring to the version from '2011-Mar-11', btw.
Comment #2
Blooniverse commented... I am aware, btw, that the modification of 'page.php.tpl' with
<?php if ($tabs && $logged_in): ?>(e.g. Bartik: on line 196) gets rid of this occurence. But generally this modification is not necessary -- RDF seems to be the only module which doesn't differentiate between authenticated and non-authenticated users. Thanks for noticing this! RDF is a great piece of work!!!Comment #3
scor commentedThat's a good feature request. It's there because it makes it easy to show that there is an RDF output available, but there could be an option to turn this tab off. patches welcome.
Comment #4
Anonymous (not verified) commentedIt sounds from your description that just being able to turn off the RDF tab for anonymous users would be fine... that you don't need node-by-node options.
If this is the case, then this patch should fix the problem. It adds a permission for accessing RDF content. You can grant this to different roles, so only those people will see the tab.
Comment #5
Anonymous (not verified) commentedUpdated some language in hook_permission in the patch.
Comment #6
milesw commented@linclark: I wonder if two separate permissions would be better. One permission could be used to allow roles to administer RDF settings. The other permission could simply be used to control access to the RDF version of content, just like you're doing in #4 patch. Perhaps "administer rdf settings" and "access rdf content"? What do you think?
Comment #7
milesw commentedThis patch builds on #4, adding another permission.
The two permissions are:
- Administer RDF settings
"Configure RDF publishing settings, including namespaces used by the site."
- Access RDF content
"View RDF versions of site content."
The first one is used for admin pages, the second is simply for viewing serialized RDF.
It still doesn't feel quite right. It seems like the RDF representation should be accessible (with the right permissions) without making it a local task. Maybe including it as a local task should be an option?
Comment #8
Anonymous (not verified) commentedThis also gets to a bigger question.... can we turn off RDFa-output based on permissioning as well. I think if people see a permission called Access RDF, they will think it can permission RDFa as well.
How to permission RDFa is actually a question we've been getting a lot at Drupal events, and I think it's something people want. It will also probably be more necessary with some of the stuff I'm planning for SPARQL Views. Basically, you'll be able to visit a site and get a JSON string that has the content type schema with fields and RDF mappings. Then you can take that JSON and import it on your site as a SPARQL Views resource. This will mean that if Joe has a Person content type on his site, Jane will be able to query it with SPARQL Views just by copying the JSON from Joe's site and pasting it into her site.
I think this has the chance to be extremely useful for many people because it will make getting content from other sites much easier... but it will also be super scary for others. We need to give them the option of restricting RDFa output while still having access to the RDF mapping API for anything else they need.
I'm making my head spin in circles just thinking about the permutations of permission and config options on this... I'll think about it more later.
Comment #9
milesw commentedHmm, I can imagine people getting confusing about RDF vs. RDFa. The description for the permission could mention something along the lines of "This does not affect RDFa output in pages."
Do you think it makes sense to start with the two permissions in #7? I assume a permission for RDFa isn't as simple as adding a hook_permission() and some elements to hook_menu(). ;)
I think my patch in #7 might be bad. Will test it again later.
Comment #10
Anonymous (not verified) commentedOk, so I think that there should be a configuration option to turn on RDF/XML. I do not think this should be on by default, but that the user should have to turn on RDF/XML. Most people will not want these tabs, so I think that is a sensible default.
I think that it makes sense to also allow configuration of visibility by role. I think this configuration should take the place of permissions because permissions imply that access has been restricted to content when in this case the access isn't restricted (since RDF is still available in RDFa). This also means one less permission to add to the hella-confusing permissions page.
Any thoughts? If folks agree, I think we should be able to get this one committed soon.
Comment #11
milesw commentedI agree with the first part, but I'm wary about managing permissions for something outside the standard permissions page. It seems like this would add unnecessary complexity. For example, you would have to require users to have "Administer Permissions" to even access the configuration page containing these options.
What about "View content as RDFa" and "View content as RDF/XML" on the permissions page? Obviously the RDFa one would take quite a bit of effort.
Comment #12
Anonymous (not verified) commentedOk, I broke out the permissions issue into #1128700: Add permissions for RDF content.
I think that in the short term for this issue, we could just add the configuration to turn RDF/XML tabs on or off.
I think this may be a new configuration page in the RDF publishing settings config section. I'm guessing that we will have other config options that make sense to go with this one eventually. This may make sense to be our MENU_DEFAULT_LOCAL_TASK page?
Comment #13
milesw commentedHard to say at this point whether it's appropriate for the miscellaneous settings to be MENU_DEFAULT_LOCAL_TASK. It depends on what kind of config options end up there. For now, let's go ahead and try it that way.
This patch adds a settings page as the default local task for "RDF publishing settings". The only setting on there is an option to turn on/off RDF tabs for User and Node. If the tab is turned off, the RDF/XML version is still accessible.
Comment #14
milesw commentedTweaked wording in form description, adding a screenshot.
Comment #15
scor commentedThe RDF tab should eventually die, in favor of optional links for each serialization formats, see #781972: Use RestWS for non-RDFa serializations and content negotiation in Drupal 7.
Comment #16
scor commentedComment #17
scor commentedI suggest to drop this issue in favor of #1171030: Advertise the various formats supported by RestWS. (and remove the current RDF menu item of course)
Comment #18
Anonymous (not verified) commentedI agree, changing issue title to reflect. We can remove the tab without removing the page for now.
Comment #19
scor commentedeasy patch...
Comment #20
Anonymous (not verified) commentedBack to needs work since it only needs the change in comment #17-18
Comment #21
Anonymous (not verified) commentedThis patch simply removes the tags. The menu item itself will be removed as a part of #781972: Use RestWS for non-RDFa serializations and content negotiation in Drupal 7
Comment #22
scor commentedGood bye RDF tab! 2b64aeb