TL;DR
While semantic web markup (like schema.org) is embedded in nearly 40% of web pages, individual annotations are notoriously sparse and noisy, often omitting critical categorical details. This paper introduces a supervised machine learning approach that leverages contextual features—such as the hosting domain and surrounding page vocabulary—to automatically infer missing attributes. By treating this as a classification problem and introducing a domain-aware sampling strategy, the authors achieve F1 scores of up to 83%, significantly outperforming traditional knowledge graph completion baselines.
What Problem Does This Paper Address?
Structured data markup (such as RDFa and Microdata) helps search engines and applications understand web content. However, web developers rarely provide complete descriptions. For instance, in a massive crawl of 26 million event annotations, 59% contained fewer than six statements, and less than 1% specified a precise subtype (like s:Festival or s:TheaterEvent), defaulting instead to the generic, uninformative s:Event.
Traditional Knowledge Graph (KG) completion methods fail in this environment. They rely on dense graph structures and explicit links between entities. Web markup, by contrast, consists of isolated nodes, missing links, typos, and vocabulary misuse. The authors tackle the challenge of automatically inferring missing categorical information (such as movie genres or specific event subtypes) within this noisy, disconnected web ecosystem.
Methods
The authors frame the inference problem as a supervised classification task, utilizing a three-stage pipeline:
- Data Cleansing: Heuristics are applied to fix common developer mistakes, such as correcting malformed namespaces (e.g.,
httpsvshttp) and fixing capitalization errors in schema terms. - Feature Extraction: Instead of relying on non-existent graph links, the model extracts three types of features:
tld/pld: The top-level domain and pay-level domain (e.g.,imdb.com), capturing the intuition that specific websites specialize in specific topics.node-vocab: The frequency of schema.org predicates used within the specific target node.page-vocab: The frequency of schema.org predicates used anywhere on the same web page, providing broader context.- Classification Models: The authors evaluate several standard classifiers, including Naïve Bayes, Decision Trees, Support Vector Machines (SVM), and Random Forests.
Crucially, they introduce a pld-aware sampling strategy. Because web markup is heavily dominated by a few massive websites (like ticket-selling giants), standard random sampling causes models to overfit to those dominant players. This new sampling strategy ensures that the long-tail of smaller, diverse websites is fairly represented in the training data.
Datasets
The training and evaluation datasets were extracted from the Web Data Commons (WDC) October 2016 corpus, which is derived from the Common Crawl. The authors evaluated their approach on two distinct tasks:
- Event Classification: Predicting 19 specific subtypes of
s:Event. The dataset was balanced to focus on the top 7 most frequent subtypes plus an "Other" category. - Movie Genre Classification: A multi-label problem mapped to 22 standard IMDB genres, evaluated as 7 individual binary classification tasks for the top genres.
The cleansed and labeled datasets have been made publicly available by the authors.
Key Insights and Ideas
- Context Over Structure: Traditional KG completion relies on structural graph connections. In web markup, where the data lives (the domain and the surrounding page vocabulary) is a far more powerful predictor of missing attributes than the internal structure of the sparse node itself.
- The Power-Law Trap: Web markup data distributions follow a strict power law. A tiny fraction of pay-level domains provide the vast majority of web annotations.
- Sampling Matters: Switching from standard stratified random sampling to a domain-aware (pld-aware) sampling method drastically improves model generalization, boosting F1 scores by up to 17 percentage points depending on the category.
Key Results
The Random Forest classifier consistently emerged as the top-performing model across all metrics.
- Event Subtype Prediction: The proposed approach achieved a 79.59% F1 score using pld-aware sampling. This vastly outperformed the adapted state-of-the-art baseline, SD-Type (56.99%), and a traditional Knowledge Graph baseline (2.96%).
- Movie Genre Prediction: The Random Forest model achieved an 83.14% F1 score, compared to 67.62% for SD-Type and 47.42% for the KG baseline.
The significant performance jump highlights the benefit of using domain-balanced training data:
Limitations and Future Work
- Unknown Domains: Because the model relies heavily on the
tld/pldfeature, its performance is expected to degrade when classifying markup from entirely new or unseen web domains (though the authors note thatpage-vocabacts as a partial buffer). - Evaluation Scope: The experiments were limited to two specific domains (movies and events). Feature importance and vocabulary correlations may vary significantly when applied to other schema types, like products or local businesses.
- Ground Truth Bias: The evaluation dataset was built using nodes that already contained the target categorical information. This introduces a potential bias toward higher-quality markup overall.
In future work, the authors plan to test their approach on unconstrained, randomly selected data, explore graph embedding techniques tailored for web markup, and integrate this method directly into data fusion and knowledge graph augmentation pipelines.
Summary updated