Skip to content

Commit 4b6b0ce

Browse files
committed
fix(compare): add license and creator to Dataset JSON-LD
Google's Rich Results validator flags Dataset entries without a license URL and a creator. The repo (github.com/SemiAnalysisAI/InferenceX) is Apache-2.0 and the author is SemiAnalysis — use the canonical Apache license URL and the existing AUTHOR_NAME / AUTHOR_URL seo constants so the dataset card is eligible for rich-result rendering.
1 parent d616c5c commit 4b6b0ce

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/app/src/lib/compare-ssr.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
* and JSON-LD shape — with a `variant` knob that swaps the headline
1111
* framing between the latency+throughput view and the per-dollar view.
1212
*/
13-
import { HW_REGISTRY, sequenceToIslOsl } from '@semianalysisai/inferencex-constants';
13+
import {
14+
AUTHOR_NAME,
15+
AUTHOR_URL,
16+
HW_REGISTRY,
17+
sequenceToIslOsl,
18+
} from '@semianalysisai/inferencex-constants';
1419
import { FIXTURES_MODE, JSON_MODE, getDb } from '@semianalysisai/inferencex-db/connection';
1520
import * as jsonProvider from '@semianalysisai/inferencex-db/json-provider';
1621
import {
@@ -854,6 +859,12 @@ export function buildJsonLd(
854859
name: datasetName,
855860
description: datasetDescription,
856861
url,
862+
license: 'https://www.apache.org/licenses/LICENSE-2.0',
863+
creator: {
864+
'@type': 'Organization',
865+
name: AUTHOR_NAME,
866+
url: AUTHOR_URL,
867+
},
857868
...(imageUrl && {
858869
image: {
859870
'@type': 'ImageObject',

0 commit comments

Comments
 (0)