{"id":3803,"date":"2015-08-20T11:06:46","date_gmt":"2015-08-20T16:06:46","guid":{"rendered":"http:\/\/blog.law.cornell.edu\/voxpop\/?p=3803"},"modified":"2015-08-20T11:06:46","modified_gmt":"2015-08-20T16:06:46","slug":"legal-research-ontology-part-ii","status":"publish","type":"post","link":"https:\/\/blog.law.cornell.edu\/voxpop\/2015\/08\/20\/legal-research-ontology-part-ii\/","title":{"rendered":"Legal Research Ontology, Part II"},"content":{"rendered":"

My blog post last year<\/a> about developing a legal research ontology was such an optimistic (i.e., naive), linear narrative. This was one of my final notes:<\/p>\n

At this point, I am in the beginning stages of taking advantage of all the semantic web has to offer. The ontology’s classes now have subclasses. I am building the relationships between the classes and subclasses and using Protege to bring them all together.<\/p><\/blockquote>\n

I should have known better.<\/p>\n

What I didn’t realize then was that I really didn’t understand anything about the semantic web. While I could use the term in a sentence and reference RDF and OWL and Protege, once you scratched the surface I was lost. Based on Sara Frug’s recommendation during a presentation at CALI Con 2014, I started reading Semantic Web for Dummies<\/a>.<\/p>\n

\"0470396792\"<\/a><\/p>\n

It has been, and continues to be, slow going. I don’t have a computer science or coding background, and so much of my project feels like trying to teach myself a new language without immersion or much of a guide. But the process of this project has become just as interesting to me as the end product. How are we equipped to teach ourselves anything? At a certain point, you just have to jump in and do something, anything, to get the project moving.<\/p>\n

I had already identified the classes:
\n* Type of research material;
\n* Type of research problem;
\n* Source of law;
\n* Area of law;
\n* Legal action; and
\n* Final product.<\/p>\n

I knew that each class has subclasses. Yet in my readings, as I learned how ontologies are used for constructing relationships between entities, I missed the part where I had to construct relationships between the entities. They didn’t just magically appear when you enter the terms into Protege.<\/p>\n

I’m using Web Protege<\/a>, an open-source product developed by the Stanford Center for Biomedical Informatics Research<\/a>, using the OWL ontology language<\/a>.<\/p>\n

Ontology engineering is a hot topic these days, and there is a growing body of papers, tutorials, and presentations on OWL<\/a> and ontology<\/a> engineering<\/a>. That’s also part of the problem: There’s a little too much out there. I knew that anything I would do with my ontology would happen in Protege, so I decided to start there with the extensive user documentation and user support. Their user guide<\/a> takes you through setting up your first ontology with step-by-step illustrations and a few short videos. I also discovered a tutorial on the web titled Pizzas in 10 minutes<\/a>.<\/p>\n

Following the tutorial, you construct a basic ontology of pizza using different toppings and sauces. While it took me longer than 10 minutes to complete, it did give me enough familiarity with constructing relationships to take a stab at it with my ontology and its classes. Here’s what I came up with:<\/p>\n

\"ontology<\/a><\/p>\n

This representation doesn’t list every subclass; e.g., in Types of research material, I only listed primary source and in Area of law, I only listed contracts, torts and property. But it gives you an idea of how the classes relate to each other. Something I learned in building the sample pizza ontology in Protege is the importance of creating two properties: the relational “_property and the modifier_” property. The recommendation is to use has<\/span> or is<\/span> as prefixes1<\/a> for the properties. You can see how classes relate to each other in the above diagram as well as how classes are modified by subclasses and individuals.<\/p>\n

I’m continuing to read Semantic Web for Dummies, and I’m currently focusing on Chapter 8: Speaking the Web Ontology Language. It has all kinds of nifty Venn diagrams and lines of computer code, and I’m working on understanding it all. This line keeps me going. However, if you’re looking for a system to draw inferences or to interpret the implications of your assertions (for example, to supply a dynamic view of your data), OWL is for you2<\/a>.<\/p>\n

One of my concerns is that a few of my subclasses belong to more than class. But the beauty of the Semantic web and OWL is that class and subclass are dynamic sets, and when you run the ontology individual members can change from one set to another. This means that Case Law can be both a subclass of Source of Law and an instance of Primary Source in the class Type of Research Material.<\/p>\n

The way in which I set up my classes, subclasses, and the relationships between them are simple assertions3<\/a>. Two equivalent classes would look like a enn diagram with the two sets as completely overlapping. This helps in dealing with synonyms. You can assert equivalence between individuals as well as classes, but it is better to set up each individual’s relationships with its classes, and then let the OWL reasoning system decide if the individuals are truly interchangeable. This is very helpful in a situation in which you are combining ontologies. There are more complicated assertions (equivalence, disjointness, and subsumption), and I am working on applying them and building out the ontology.<\/p>\n

Next I need to figure out the characteristics of the properties relating the classes, subclasses, and individuals in my ontology: inverse, symmetric, transitive, intersection, union, complement, and restriction. As I continue to read (and reread) Semantic Web for Dummies, I am gaining a new appreciation for set theory and descriptive logic. Math seems to always have a way of finding you! I am also continuing to fill in the ontology with terms (using simple assertions), and I also need to figure out SPARQL so I can query the ontology. It still feels like one of those one step forward, two steps back endeavors, but it is interesting.<\/p>\n

I hope to keep you posted, and I am grateful to the Vox PopuLII blog for having me back to write an update.<\/p>\n

\"Amy_Taylor\"<\/a>
\nAmy Taylor is the Access Services Librarian and Adjunct Professor at American University Washington College of Law. Her main research interests are legal ontologies, organization of legal information and the influence of online legal research on the development of precedent. You can reach her on Twitter @taylor_amy or email: amytaylor@wcl.american.edu.<\/p>\n

VoxPopuLII is edited by Judith Pratt<\/a>. Editors-in-Chief are Stephanie Davidson<\/a> and Christine Kirchberger<\/a>, to whom queries should be directed.<\/p>\n


\n
1 <\/a>Matthew Horridge, A Practical Guide to Building OWL Ontologies, 20, http:\/\/phd.jabenitez.com\/wp-content\/uploads\/2014\/03\/A-Practical-Guide-To-Building-OWL-Ontologies-Using-Protege-4.pdf (last visited May 19, 2015.<\/p>\n

2 <\/a>Jeffrey Pollock, Semantic Web for Dummies 195 (Wiley 2009).<\/p>\n

<\/a>3\u00a0 Id. at 200.<\/p>\n","protected":false},"excerpt":{"rendered":"

My blog post last year about developing a legal research ontology was such an optimistic (i.e., naive), linear narrative. This was one of my final notes: At this point, I am in the beginning stages of taking advantage of all the semantic web has to offer. The ontology’s classes now have subclasses. I am building […]<\/a><\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[295,237],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/posts\/3803"}],"collection":[{"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/comments?post=3803"}],"version-history":[{"count":10,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/posts\/3803\/revisions"}],"predecessor-version":[{"id":3825,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/posts\/3803\/revisions\/3825"}],"wp:attachment":[{"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/media?parent=3803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/categories?post=3803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.law.cornell.edu\/voxpop\/wp-json\/wp\/v2\/tags?post=3803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}