Lin Clark

drupal-planet

Exploring Drupal module interactions with pidgin UML

Submitted by Lin on

The essence of Drupal is complex interactions between modules. These interactions currently take the form of hooks. The most difficult (and most useful) thing for a Drupal developer to understand is how different sets of modules interact using these hooks and in which order.

Even though they are the heart of our system, we don't have a good way of documenting these interactions. While the API docs do contain this information for some hooks (eg, hook_node_load), it's hard to grasp the overall picture from reading docblocks.

This causes a bigger problem than just the learning curve. It also makes it harder for us to discuss changes in APIs and architecture. We have been seeing this in the Drupal 8 development cycle—we are considering major overhauls of systems, and it's unclear to many what the impacts of these decisions are. The only people who can intelligently participate are those who are intensely involved in the architecting process or those who take a considerable amount of time to step through the code. As sun points out in Drupal 8: The Path Forward, this communication challenge remains unresolved.

We need to find a way to communicate about these interactions which are so central to what we do. I have recently starting working with a visualization technique that helps me understand these interactions better, and I would be interested to hear whether others find it helpful as well.

Microdata in Drupal early preview

Submitted by Lin on

On June 2, the big three search engines (Google, Yahoo, and Bing) announced Schema.org, which helps them show search results in a more useful way. The announcement has gotten people really interested in inline structured data such as microdata and RDFa.

This screencast shows how you can use the microdata module to place Schema.org terms. This is an early preview—very few field formatters have microdata support at this time and the module is still changing quite a bit—but I thought people might be interested in the direction the module is heading.

Building modules on top of SPARQL Views

Submitted by Lin on

I posted this video a couple of weeks ago but didn't get a chance to write it up. It demonstrates building a module that creates a view using SPARQL on whatever site it is installed on.

If you provide a dataset and it is available with SPARQL, this can be a really great way to help people understand how to use your data. Because users who install the module can use the Views user interface to alter the view that is created, it can be a great starting point for experimentation by users who don't know so much about your data or building views.

On being a woman in tech: some of my experiences

Submitted by Lin on

Recently, there has been quite a row about a tweet sent out by the DrupalCon Twitter account. The tweet suggested that people look at the attendees page to reconnect with the attractive developer/designer they met at last year's DrupalCon. A number of people pointed out that this subtly (though inadvertently) promotes a sexually charged environment at the conference.

For the most part I have stayed out of the discussion, but in catching up on some blog posts last night I saw some troubling reactions, with people being quite callous to the experiences of those who found the tweet off-putting.

I don't usually blog about these kinds of issues, but I wanted to share some of my experiences that I think can help inform the discussion and help people understand some of the sensitivities.

Not all of these experiences are directly related to the tweet at hand, but I do believe the "Drupal isn't immune" section does directly relate and is a very concrete example of how women can sometimes be treated at these events.

Microdata in Drupal: challenges for field formatters

Submitted by Lin on

Interest in microdata has been on the rise since the schema.org announcement in June.

I had fortunately already been looking at the microdata spec and thinking about how the work to get RDFa output in core could be repurposed for microdata, so I started a project that day.

Since microdata is based on RDFa, there is a lot that can be repurposed. But as I noted in my last post on the subject, there are also small differences between the specs... and in some cases, these small differences have a big impact.

We need to start thinking about those impacts.

More fun with CIA data: SPARQL Views with relationships and contextual filters

Submitted by Lin on

Yesterday, I posted about reusing the CIA's data on your site. I demonstrated how you can use Views to access the CIA World Factbook data and turn it into charts.

You can enhance these views further by using relationships to get information about related things, such as bordering countries, and you can use contextual filters to tailor the SPARQL results to your node content.

Turning the CIA's data into pretty pictures on your site using Views

Submitted by Lin on

There are a lot of data providers who publish their data openly for reuse. Surprisingly, the CIA is one of them.

Because of this, data geeks can take it and turn it into something that's easy for others to reuse, using open data formats. And because it's available in an open data format, platforms like Kasabi can load it on to their big servers and provide ways for other sites to access and query it, like a SPARQL endpoint. And because it is provided in a SPARQL endpoint, it is easy to reuse it in your Drupal site using Views.

Writing scripts to clone contrib projects from git.drupal.org

Submitted by Lin on

As part of my masters thesis, I’m looking into innovation diffusion within Drupal (I think y'all know which one ;).

In order to ‘grep’ against the codebase, I needed a copy of the most recent versions of ALL of Drupal 7 contrib, which was easy to do back when we used CVS (even a little too easy when you realized that you accidentally started downloading 7,000 projects). However, this is not so easy with git.

Before starting, I asked in #drupal-contribute whether pulling all of contrib for research purposes would be frowned upon, since it can really soak up a lot of server resources. Folks said it was ok and encouraged me to share whatever script I came up with... so here it is.

The two meanings of semantics in HTML5

Submitted by Lin on

There is a lot of confusion around HTML5 and RDFa, both in the Drupal community and outside of it. That’s why I decided to redevelop my site in Drupal 7 with HTML5, using a base theme available on Drupal.org, to see for myself what it's like using HTML5 and RDFa together.

HTML5 is the incontestable future of the Web, and it is becoming more and more clear that inline structured data is also going to be a fundamental part of the future Web... and, with the current core support for RDFa and the future core support for HTML5, Drupal has an interest in both.

Pages

Subscribe to RSS - drupal-planet