0.0.1 init, main page prepare
This commit is contained in:
36
BaseModels/search_optimization/ld_json/ld_QA.py
Normal file
36
BaseModels/search_optimization/ld_json/ld_QA.py
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
def get_ld_QA(data_Dict):
|
||||
|
||||
data = {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "QAPage",
|
||||
"mainEntity": {
|
||||
"@type": "Question",
|
||||
"name": "How many ounces are there in a pound?",
|
||||
"text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?",
|
||||
"answerCount": 3,
|
||||
"upvoteCount": 26,
|
||||
"acceptedAnswer": {
|
||||
"@type": "Answer",
|
||||
"text": "1 pound (lb) is equal to 16 ounces (oz).",
|
||||
"upvoteCount": 1337,
|
||||
"url": "https://example.com/question1#acceptedAnswer"
|
||||
},
|
||||
"suggestedAnswer": [
|
||||
{
|
||||
"@type": "Answer",
|
||||
"text": "Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.",
|
||||
"upvoteCount": 42,
|
||||
"url": "https://example.com/question1#suggestedAnswer1"
|
||||
}, {
|
||||
"@type": "Answer",
|
||||
"text": " I can't remember exactly, but I think 18 ounces in a lb. You might want to double check that.",
|
||||
"upvoteCount": 0,
|
||||
"url": "https://example.com/question1#suggestedAnswer2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
return data
|
||||
Reference in New Issue
Block a user