Semantic Web Research


Semantic Web Research

Michael
Today we’re exploring knowledge graphs and the semantic web, based on Professor Ying Ding’s talk, “Knowledge Graph: Connecting Big Data Semantics.” Her central question is simple but important: how can people and computers handle information differently, especially when the amount of data keeps growing?

Corey
The key difference is that computers traditionally handle information as strings, while people handle it as things. If someone searches for “Berkeley,” a person may mean the university, the philosopher George Berkeley, or the city. A computer may treat all of those as the same sequence of letters and rank pages based on occurrences, links, and other signals.

Michael
So the goal is to move from strings to entities. Metadata helps make that possible. If we tag “Berkeley” as a city, it becomes a city entity; if we tag it as a university, it becomes a university entity. Metadata is data about data, or contextual information added to otherwise ambiguous information.

Corey
The talk uses the progression from data to information to knowledge to make that clearer. The number 40 by itself is just data: it could refer to apples, students, people, or a deadline. Add “40 degrees Fahrenheit,” and we know it describes a temperature. Add the location and date, such as 40 degrees Fahrenheit in Berkeley on February 26, 2014, and we can interpret it as chilly; in Bloomington during a difficult winter, the same temperature might seem pleasantly warm.

Michael
That example shows why context matters. The value itself stays the same, but additional metadata changes what we understand. Google launched its Knowledge Graph in 2012, and Professor Ding suggested that search would continue moving from strings, to things, and then toward relationships and context.

Corey
Relationships are especially important because entities rarely exist in isolation. A LinkedIn profile, for example, is not valuable only because of the information listed on it. Its connections matter: who you know, what organizations you belong to, and how people or resources are related.

Michael
In graph language, entities are nodes and relationships are edges connecting those nodes. When Professor Ding searched for Elinor Ostrom, the results included her books and related people. Those people could be co-authors, colleagues, or even, in one case, her husband. Other scholars provided a scientific foundation for her work, so the relationships revealed information that a simple list of search results might not make obvious.

Corey
And once we have relationships, the next useful idea is the subgraph: the pattern or path connecting two nodes. Professor Ding checked how she was connected to Marti Hearst and found fourteen direct connections. She also checked her connection to her host, John, and found no direct link, but did find an important person who could connect them.

Michael
A subgraph can therefore show not just that two people are related, but how they are related and which intermediary is important. That can help someone decide whom to contact when looking for information or collaboration. Search engines are beginning to work with entities and relationships, as seen in Google’s Knowledge Graph and Facebook’s graph search, but richer contextual paths are a further step.

Corey
Professor Ding illustrated this with a campus example involving Elinor Ostrom and computer scientist Felipe Menza. They were located in opposite parts of the university, so their connection was not obvious. But Ostrom had co-authored with Michael Jackson, and Michael Jackson had a grant with Menza. That connection only becomes visible when publication data and grant data are linked semantically.

Michael
The first major use case was VIVO, an NIH-funded project designed to collect and share information in medical schools. Its goal was to support scientific collaboration and innovation. One side of the project focused on connecting people, while the Eagle-I project focused on connecting resources, such as equipment that another laboratory might already have.

Corey
The projects later worked on connecting people with resources. Professor Ding’s group had seven partners and needed to integrate faculty annual reports, even though the reports came in different formats and used different schemas. To act as a kind of glue, the team developed an ontology.

Michael
An ontology is like a schema, but richer than the schema of a relational database. A relational schema is comparatively flat, while an ontology can represent hierarchies. It can also use object properties to connect concepts to one another, rather than limiting connections to literal strings.

Corey
The team emphasized that ontology designers should reuse existing ontologies instead of creating everything from scratch. Reuse supports interoperability. For example, they used biomedical resource ontologies, BioPortal and NCBI-related resources, DOAP for projects, BIBO for bibliographic information, SKOS for taxonomies, Dublin Core for articles, and Friend of a Friend for people and organizations.

Michael
The resulting model represented a network of scientists. Its central entities were people, the outputs they produced, and the relationships between people and outputs. It also represented the three broad ways faculty members are evaluated: research, teaching, and service.

Corey
Research could include documents, grants, projects, and laboratories. Teaching could include courses and teaching roles. Service could include editorial-board or program-committee membership. Expertise was particularly difficult to model because it depends on the domain, so the team used SKOS concepts as placeholders that could connect to different taxonomies, such as UMLS or MeSH in medicine and ACM taxonomies in computer science.

Michael
The ontology contained around 200 classes and 400 properties. A person could have identity and contact information, education and credentials, affiliations, research, teaching, publications, and roles such as principal investigator or co-principal investigator.

Corey
One technical challenge was representing a property of a property. Suppose a person has a position. That position also has a start date and an end date. Instead of treating the position as a simple property, the model turns it into a class, sometimes called a reified row, so dates can be attached to it.

Michael
The same technique can represent author order. A paper may have an authorship relationship, and that relationship can include the author’s rank, such as first author or second author. Turning the relationship into a class makes those additional details possible, although it also creates longer paths and more triples.

Corey
Another challenge is that one ontology cannot perfectly fit every institution. One university might classify a doctor as faculty, another as a researcher, and another as a student. VIVO handled this through localization: the shared core ontology provided common concepts, while an institution could use its own namespace to add local subclasses, such as professional staff or administrative service.

Michael
That distinction matters during search. An institutional search can use the local extensions, while a federated search across institutions relies on the shared core concepts. The approach gives organizations flexibility without destroying interoperability.

Corey
The talk also showed how a publication can be represented as a graph. One person is an instance of a faculty member and has an authorship relationship. That authorship connects the person to an article. Another person has a separate authorship relationship to the same article, perhaps with an author rank of two. The graph then represents both the co-authorship and the details of each authorship.

Michael
After converting faculty annual reports into RDF, VIVO could provide federated search. RDF data is queried with SPARQL, a graph-pattern language rather than SQL. A SPARQL query describes a pattern, and the system finds instances that match it.

Corey
Because SPARQL can be difficult to write, Professor Ding’s team created a query builder. To find papers published by Katy Borner in 2005, a user could select a person, specify her name, connect her to publications, select research papers, and add a publication date of 2005. The interface would generate the SPARQL query automatically.

Michael
VIVO also offered faceted search. A search for people working on stem cells could be divided into categories such as people, publications, organizations, activities, events, courses, and equipment. Results could also be grouped by institution, and users could open a scientist’s unified profile, view teaching and research information, and follow links to co-author networks.

Corey
The second major use case was life science and drug discovery. This field combines structured experimental databases with unstructured scientific literature. There are millions of compounds and bioactivity records, along with databases about proteins, pathways, drugs, patients, and electronic medical records.

Michael
The literature adds another enormous source of information. PubMed contained around 22 million articles in the talk’s example, with a large subset in full text. Relationships between entities can also be very detailed: a drug and a gene might co-occur in an abstract, appear together in a methods section, or be connected through an assay, statistical test, docking result, or crystal structure.

Corey
The goal was to combine these sources into a heterogeneous network of entities and relationships. Once the network exists, researchers can build tools and algorithms to discover patterns, generate biomedical insights, and eventually make predictions.

Michael
There were more than 1,700 openly available life-science databases, using formats such as tables, XML, text, and relational databases. The team used RDF as a common data model. RDF represents information as a subject, predicate, and object, much like an ordinary sentence: “I give a talk,” where “I” is the subject, “give” is the predicate, and “a talk” is the object.

Corey
The important difference is that RDF should identify entities with URIs rather than leaving them as ambiguous strings. If separate datasets use the same URI for an entity, their graphs can be connected. For example, one dataset might say that a drug binds to a protein, while another identifies that protein and links it to a pathway.

Michael
The team integrated roughly 25 open databases related to drug discovery. They converted records into triples, linked their data to other linked-data projects, and loaded the result into a triple store, which functions like a graph-oriented database. Users could browse connections, submit SPARQL queries, visualize networks with tools such as Cytoscape, and use services designed to help generate meaningful paths.

Corey
One example followed a side effect called hepatomegaly, or an enlarged fatty liver. The graph connected two compounds to targets in DrugBank, connected those targets to proteins in UniProt, connected the corresponding genes to a pathway, and moved across several databases in one query. That demonstrates the power of linked data: a single query can cross datasets that were originally separate.

Michael
But simply linking data is not enough. Different names may refer to the same drug. Troglitazone and another name might appear as separate triples even though they identify the same compound. The team therefore developed an ontology focused on drugs, diseases, side effects, and interactions, using domain ontologies where possible and unifying entities more carefully than simply adding a broad “same as” link.

Corey
That semantic integration makes queries more intuitive. Without it, a query for a drug’s target might have to search separate databases and union the results. With a unified ontology, the query can simply ask for a drug, its interaction, and the target connected through that interaction.

Michael
Once the knowledge graph was built, the team wanted to rank paths between entities. A drug and a target might be connected by thousands of possible paths, and showing all of them would not be useful. They used topic modeling on PubMed titles and abstracts, creating a biomedical version of latent Dirichlet allocation, or LDA.

Corey
The model learned topic distributions for biomedical entities. A topic might represent depression-related disorders, and its associated drugs, genes, and diseases would reflect that theme. The researchers then compared the topic vectors of entities along a path using a measure based on KL divergence, normalized the result, and used the resulting path weight to rank paths.

Michael
They also developed ways to control the types of nodes shown in a subgraph. A biologist might want a graph containing only genes, while another researcher might want a mixture of genes, drugs, and diseases. The system could encourage or penalize particular entity types and could search for paths that pass through a specified third node.

Corey
A diabetes-drug example showed why this matters. Troglitazone was withdrawn because of liver problems, rosiglitazone was associated with cardiac disease, and pioglitazone remained on the market but was associated with bladder tumors and kidney problems. By examining genes connecting the drugs, the graph revealed different biological patterns, including connections to genes associated with myocardial infarction and congestive heart failure.

Michael
The larger point was that connected data might help identify harmful associations early enough to prevent future problems. It can also support drug repurposing. A map of drugs and human targets showed that some drugs associated with one disease could also be connected to another disease, suggesting possible uses across conditions.

Corey
Prediction was the next step. In social networks, common neighbors are often used to predict future connections: if two people share many friends, they may become connected. That principle is less useful in biology because common neighbors may already be well-known and therefore not surprising.

Michael
The team instead looked for meaningful indirect patterns. A compound might be predicted to interact with a target if it resembles another compound that interacts with that target, shares side effects, has related chemical features, or produces similar gene-expression patterns. The reverse logic can apply to targets that share sequence, structure, gene-ontology relationships, or ligands.

Corey
Their prediction pipeline began with raw data, used ontologies to form a knowledge graph, represented the graph as linked data, searched for connections and patterns, assigned weights to those patterns, and produced normalized prediction scores. They compared results with an existing study and were able to identify a substantial portion of experimentally supported compound-target pairs, although some could not be found because the necessary data was absent.

Michael
Professor Ding then turned to the major challenges. First is entity identification. Giving an entity a unique identifier is difficult in a decentralized web, where different people may assign different URIs to the same person, drug, or organization. Systems also need to understand that tags such as “city” and “university” carry different meanings.

Corey
The second challenge is relationship management. Relationships can have their own properties, such as dates, author order, evidence, or confidence. Representing those details as additional classes is useful, but it produces longer paths, more triples, and more complicated queries. Search engines also need new ways to rank results based on relationships rather than only on individual pages.

Michael
The third challenge is context and provenance. A graph should record where information came from, who made a claim, how data was generated, and how one result was derived from a workflow. A simple triple may not be enough, so some systems use quads or additional structures to represent the source and context of a statement.

Corey
Other challenges include query efficiency, data security, data quality, and versioning. New evidence can change what a knowledge graph should say, but semantic systems are not especially good at rapid updates. A new fact may require updating the ontology, annotating the new data, and adding it to the knowledge base.

Michael
The question-and-answer discussion also addressed whether ontologies can work in ordinary language. Professor Ding’s answer was that semantic-web technology works best in established, specialized domains such as medicine, mathematics, or finance, where there is more agreement about concepts and relationships.

Corey
Social concepts are less stable. Even a term like “adult” can have different legal definitions in different countries. In those settings, it may be better to use a small number of shared classes and many properties, allowing local communities to define more specific categories rather than forcing one universal classification.

Michael
Another question concerned new evidence that contradicts a prediction. Professor Ding explained that the system would need continual updating. She also distinguished statistical discovery from logical explanation: statistical methods can reveal correlations, while ontologies and provenance can make the reasoning process more explainable and trustworthy. Correlation, however, is not the same as causation.

Corey
The speakers also discussed the difficulty of integrating all chemical databases. Even experts may disagree about how compounds should be identified or divided into smaller molecules. Integration therefore happens at different levels and requires domain expertise rather than a single automatic solution.

Michael
Looking further ahead, Professor Ding discussed semantic publishing. Scientific papers are usually read by people in formats such as PDFs, which makes it difficult for computers to extract and combine their findings. One proposed solution is for researchers to publish machine-readable representations of their results alongside the natural-language article.

Corey
Those machine-readable results could enter knowledge bases immediately. If many papers independently report the same result, a knowledge graph could help identify that agreement and make the finding easier to discover, compare, and evaluate. Publishers might also benefit because structured results could make articles more visible and useful.

Michael
Finally, provenance is not necessarily in conflict with imperfect or socially constructed ontologies. Provenance can be represented with a relatively simple model: who said something, which organization issued it, or how a value such as a temperature was obtained. It can therefore provide context even when a domain ontology cannot capture every meaning.

Corey
So the overall vision is a progression: from strings to things, from things to relationships, and from relationships to contextual subgraphs. Knowledge graphs use metadata, ontologies, RDF, URIs, and graph queries to connect information across sources. Their promise is to help people share data, discover hidden connections, explain results, and eventually make useful predictions.

Michael
And the caution is just as important: entity identity, semantic agreement, relationship modeling, provenance, updates, efficiency, security, and data quality remain difficult problems. Still, Professor Ding’s conclusion is optimistic: big data combined with big challenges creates enormous potential to connect, share, and discover knowledge.

Ask anything
We've read this whole study set, so questions about it get the best answers.